SCSIStat
SCSIStat Get bit map of SCSI control and status bits returns 2-byte bit map containing SCSI control and status
bits
SCSIStat returns a bit map of SCSI control and status bits; these bits are given below. See the NCR 5380 SCSI chip documentation for a description of
these signals (Bits 0-9 are complements of the SCSI bus standard signals.)
Bit Signal ÍBit Signal
15 END DMA Ï7 RST
14 DMA REQ Ï6 BSY
13 PTY ERR Ï5 REQ
12 INT REQ Ï4 MSG
11 PHS MAT Ï3 C/D
10 BSY ERR Ï2 I/O
9 ATN Ï1 SEL
8 ACK Ï0 DBP
Returns: an error code indicating success or failure of the function. It will be one of:
noErr (0) No error
scCommErr (2) Breakdown in SCSI protocols
scPhaseErr (5) Phase error
Notes: The error codes returned by SCSI Manager routines typically indicate only that a given operation has failed. To determine the actual cause of the
failure, another SCSI command needs to be sent asking the device what went
wrong.