Simtec USB technical

From RISC OS

(Difference between revisions)
Jump to: navigation, search
(Start of Simtec USB information (dump of notes))
m (Formatting)
Line 1: Line 1:
 +
==MassFS==
 +
Plug in USB drive and appears with name on the iconbar, eg USB FLASH DISK
Plug in USB drive and appears with name on the iconbar, eg USB FLASH DISK
To save off a DOSDisc image of the disc, do
To save off a DOSDisc image of the disc, do
-
*Copy MassFS::USB FLASH DISK adfs::HardDisc.$.temp.usbimage
+
*Copy MassFS::USB FLASH DISK adfs::HardDisc.$.temp.usbimage
!PCformat from PC card tools almost works, but not quite.
!PCformat from PC card tools almost works, but not quite.
-
SWI MassFS_GetDriveCount
+
''SWI MassFS_GetDriveCount''
-
On exit:
+
:On exit:
-
r0 = number of drives managed by MassFS
+
:r0 = number of drives managed by MassFS
-
 
+
-
SWI MassFS_GetDriveInfo
+
-
On entry:
+
-
r0 = drive number
+
-
On exit:
+
''SWI MassFS_GetDriveInfo''
-
r0 = ?
+
:On entry:
-
r1 -> drive name
+
:r0 = drive number
-
r1+20 -> connection?:drive_name:vendor_id:product_id (separated by colons, &3A)
+
:On exit:
-
r2 = size in sectors (512 bytes each)
+
:r0 = ?
-
r3 = flags?
+
:r1 -> drive name
 +
:r1+20 -> connection?:drive_name:vendor_id:product_id (separated by colons, &3A)
 +
:r2 = size in sectors (512 bytes each)
 +
:r3 = flags?

Revision as of 21:46, 22 April 2006

MassFS

Plug in USB drive and appears with name on the iconbar, eg USB FLASH DISK To save off a DOSDisc image of the disc, do

*Copy MassFS::USB FLASH DISK adfs::HardDisc.$.temp.usbimage

!PCformat from PC card tools almost works, but not quite.

SWI MassFS_GetDriveCount

On exit:
r0 = number of drives managed by MassFS

SWI MassFS_GetDriveInfo

On entry:
r0 = drive number
On exit:
r0 = ?
r1 -> drive name
r1+20 -> connection?:drive_name:vendor_id:product_id (separated by colons, &3A)
r2 = size in sectors (512 bytes each)
r3 = flags?
Personal tools