home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
MISC
/
scsiutil.lzh
/
SCSIUTIL
/
Readme.OSK
< prev
next >
Wrap
Text File
|
1997-01-28
|
3KB
|
76 lines
This is a utility, ported to OS-9/68000 from Amiga sources, to send
SCSI commands to the devices on the bus. The list of all commands can
be obtained by typing "scsiutil -?". The original documentation file is
included.
The OS-9 port opens a SCSI device in the raw mode and then uses the
SS_Dcmd getstat and setstat services. These services have to be
supported by the driver. For instance, the hard disk driver 'rbvccs'
implements them. If the driver does not support SCSI direct commands,
you will be notified by the "unknown service code" error. The program
does not use the ordinary 'read' or 'write' entries.
Please note that the direct command code in many drivers is broken.
It does not allow SCSI commands with no data transfer. If you have such
a driver, you will get "no permission" error when trying, for instance,
to eject a CDROM disk. This bug is caused by using certain
uninitialized variables inside the driver.
The function of reading the audio data from a CDROM has been
simplified - only as much data can be read as it fits in the memory.
This is because there are better programs for this task. Reading the
audio data can be done from the Toshiba drives (tested) or from the Sony
drives (not tested).
As an example, here are the results of sending the INQUIRY command to my
hard drive:
[/dd/.] > scsiutil /h0@
Peripherial qualifier: 0
Peripherial device type: $0, Direct-access device (e.g., magnetic disk)
Removable medium: no
Device type modifier: 0
ISO Version: 0
ECMA Version: 0
ANSI-Approved Version: 2, The device complies to (SCSI-2).
AENC: no
TrmIOP: doesn't support TERMINATE I/O PROCESS message
Response data format: $1, conforms to CCS
Additional length: $7d
INQUIRY[5-6] (Reserved): $0, $0
RelAdr: doesn't support relative addressing
WBus32: doesn't support 32 wide data transfers
WBus16: doesn't support 16 wide data transfers
Sync: does support synchronous transfers
Linked: does support linked commands
CmdQue: doesn't support tagged command queueing
SftRe: responds to RESET condition with hard RESET alternative
Vendor identification: QUANTUM
Product identification: LP105S 910109405
Product revision level: 2.8
Vendor specific: 07/30/900102264436
Reserved:
and of reading the info about one of my audio CDROMs:
[/dd/.] > scsiutil /cdr@ -u 64 3 1
Byte 0 (reserved): 00
Audio status Audio status byte not supported or not valid
Sub-Channel Data Length 20
Sub-Channel Data Format code (should be 0x03!): 3
ADR: Sub-channel Q mode information not supplied.
Audio without pre-emphasis. Digital copy prohibited
Audio track. Two channel audio.
Track Number: 0
Byte 7 (reserved): 00
Byte 8 (reserved): 00
TCVal is false
Track International-Standard-Recording-Code (ISRC):
0000 = 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ...............
Andrzej Kotanski Cracow, January 1997
(kotanski@if.uj.edu.pl)