From: <th...@us...> - 2002-12-15 11:35:39
|
Update of /cvsroot/ro-oslib/OSLib/!OsLib/Source/Computer/oslib In directory sc8-pr-cvs1:/tmp/cvs-serv12911/Source/Computer/oslib Modified Files: ADFS.swi Log Message: Defines ADFS_DiscOp64 for RISC O S 5 and adds placeholders for two other new ADFS SWIs which are, as yet, undocumented. Index: ADFS.swi =================================================================== RCS file: /cvsroot/ro-oslib/OSLib/!OsLib/Source/Computer/oslib/ADFS.swi,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ADFS.swi 9 Mar 2002 10:52:15 -0000 1.1 --- ADFS.swi 15 Dec 2002 11:35:33 -0000 1.2 *************** *** 53,63 **** SWI ADFSDiscOp_ReadSectorsViaCache = (NUMBER 0x40240, ENTRY (R1 # 9 "Reads sectors of a disc using the RMA cache", R1 | .Bits: flags, ! R2 = FileCore_DiscAddress: disc_addr, R3 = .Ref .Data: data, ! R4 = .Int: size, R6 = .Int: cache_handle), EXIT (R2 = FileCore_DiscAddress: next_disc_addr, R3 = .Ref .Data: next_data, ! R4! = .Int: unread, R6 = .Int: cache_handle_out)); --- 53,63 ---- SWI ADFSDiscOp_ReadSectorsViaCache = (NUMBER 0x40240, ENTRY (R1 # 9 "Reads sectors of a disc using the RMA cache", R1 | .Bits: flags, ! R2 = FileCore_DiscAddress: disc_addr, R3 = .Ref .Data: data, ! R4 = .Int: size, R6 = .Int: cache_handle), EXIT (R2 = FileCore_DiscAddress: next_disc_addr, R3 = .Ref .Data: next_data, ! R4! = .Int: unread, R6 = .Int: cache_handle_out)); *************** *** 229,251 **** ENTRY (R1 # 8 "Steps a floppy disc out one track", R1 | .Bits: flags)); ! SWI ADFSSectorDiscOp_ReadSectorsViaCache = ( NUMBER 0x4024D, ! ENTRY ( R1 # 9 "Reads sectors of a disc using the RMA cache", R1 | .Bits: flags, ! R2 = FileCore_SectorDiscAddress: disc_addr, R3 = .Ref .Data: data, R4 = .Int: size, R6 = .Int: cache_handle ), ! EXIT ( R2 = FileCore_SectorDiscAddress: next_disc_addr, R3 = .Ref .Data: next_data, ! R4! = .Int: unread, R6 = .Int: cache_handle_out ) ); ! SWI ADFSSectorDiscOp_Specify = (NUMBER 0x4024D, ENTRY (R1 # 15 "Does a specify operation on a hard disc", R1 | .Bits: flags, --- 229,251 ---- ENTRY (R1 # 8 "Steps a floppy disc out one track", R1 | .Bits: flags)); ! SWI ADFSSectorDiscOp_ReadSectorsViaCache = ( NUMBER 0x4024D, ! ENTRY ( R1 # 9 "Reads sectors of a disc using the RMA cache", R1 | .Bits: flags, ! R2 = FileCore_SectorDiscAddress: disc_addr, R3 = .Ref .Data: data, R4 = .Int: size, R6 = .Int: cache_handle ), ! EXIT ( R2 = FileCore_SectorDiscAddress: next_disc_addr, R3 = .Ref .Data: next_data, ! R4! = .Int: unread, R6 = .Int: cache_handle_out ) ); ! SWI ADFSSectorDiscOp_Specify = (NUMBER 0x4024D, ENTRY (R1 # 15 "Does a specify operation on a hard disc", R1 | .Bits: flags, *************** *** 262,265 **** --- 262,342 ---- EXIT (R0 = .Bits: free_lo, R1 = .Int: free_hi, R2 = .Int: max)); + + SWI ADFS_IDEDeviceInfo = (NUMBER 0x40253 "RISC O S 5+", ABSENT); + + SWI ADFS_DiscOp64 = (NUMBER 0x40254 "Performs various operations on a + disc - see individual reason codes - RISC O S 5+", ABSENT); + SWI ADFSDiscOp64_Verify = (NUMBER 0x40254, + ENTRY (R1 # 0 "Verifies a disc - RISC O S 5+", + R1 | .Bits: flags, + R2 = FileCore_DiscAddress64: disc_addr, R4 = .Int: size), + EXIT (R2 = FileCore_DiscAddress64: next_disc_addr, + R4! = .Int: unverified)); + SWI ADFSDiscOp64_ReadSectors = (NUMBER 0x40254, + ENTRY (R1 # 1 "Reads sectors from a disc - RISC O S 5+", + R1 | .Bits: flags, + R2 = FileCore_DiscAddress64: disc_addr, R3 = .Ref .Data: data, + R4 = .Int: size), + EXIT (R2 = FileCore_DiscAddress64: next_disc_addr, + R3 = .Ref .Data: next_data, + R4! = .Int: unread)); + SWI ADFSDiscOp64_WriteSectors = (NUMBER 0x40254, + ENTRY (R1 # 2 "Writes sectors to a disc - RISC O S 5+", + R1 | .Bits: flags, + R2 = FileCore_DiscAddress64: disc_addr, R3 -> .Data: data, + R4 = .Int: size), + EXIT (R2 = FileCore_DiscAddress64: next_disc_addr, + R3 -> .Data: next_data, + R4! = .Int: unwritten)); + SWI ADFSDiscOp64_ReadTrack = (NUMBER 0x40254, + ENTRY (R1 # 3 "Reads a track from a floppy disc - RISC O S 5+", + R1 | .Bits: flags, + R2 = FileCore_DiscAddress64: disc_addr, R3 = .Ref .Data: data)); + SWI ADFSDiscOp64_ReadId = (NUMBER 0x40254, + ENTRY (R1 # 3 "Reads a hard disc ID - RISC O S 5+", + R1 | .Bits: flags, + R2 = FileCore_DiscAddress64: disc_addr, R3 = .Ref .Data: data)); + SWI ADFSDiscOp64_WriteTrack = (NUMBER 0x40254, + ENTRY (R1 # 4 "Writes a track to a disc - RISC O S 5+", + R1 | .Bits: flags, + R2 = FileCore_DiscAddress64: disc_addr, R3 -> .Data: data)); + SWI ADFSDiscOp64_FormatTrack = (NUMBER 0x40254, + ENTRY (R1 # 4 "Formats a track of a disc - RISC O S 5+", + R1 | .Bits: flags, + R2 = FileCore_DiscAddress64: disc_addr, R3 # 0, + R4 -> FileCore_TrackFormat: format)); + SWI ADFSDiscOp64_Seek = (NUMBER 0x40254, + ENTRY (R1 # 5 "Seeks to a disc location - RISC O S 5+", + R1 | .Bits: flags, + R2 = FileCore_DiscAddress64: disc_addr)); + SWI ADFSDiscOp64_Restore = (NUMBER 0x40254, + ENTRY (R1 # 6 "Does a restore operation for a disc - RISC O S 5+", + R1 | .Bits: flags, + R2 = FileCore_DiscAddress64: disc_addr)); + SWI ADFSDiscOp64_StepIn = (NUMBER 0x40254, + ENTRY (R1 # 7 "Steps a floppy disc in one track - RISC O S 5+", + R1 | .Bits: flags)); + SWI ADFSDiscOp64_StepOut = (NUMBER 0x40254, + ENTRY (R1 # 8 "Steps a floppy disc out one track - RISC O S 5+", + R1 | .Bits: flags)); + + SWI ADFSDiscOp64_ReadSectorsViaCache = (NUMBER 0x40254, + ENTRY (R1 # 9 "Reads sectors of a disc using the RMA cache - RISC O S 5+", + R1 | .Bits: flags, + R2 = FileCore_DiscAddress64: disc_addr, + R3 = .Ref .Data: data, + R4 = .Int: size, + R6 = .Int: cache_handle), + EXIT (R2 = FileCore_DiscAddress64: next_disc_addr, + R3 = .Ref .Data: next_data, + R4! = .Int: unread, + R6 = .Int: cache_handle_out)); + + SWI ADFSDiscOp64_Specify = (NUMBER 0x40254, + ENTRY (R1 # 15 "Does a specify operation on a hard disc - RISC O S 5+", + R1 | .Bits: flags, + R2 = FileCore_DiscAddress64: disc_addr)); + + SWI ADFS_ATAPIOp = (NUMBER 0x40255 "RISC O S 5", ABSENT); SWI |