Important: The information in this document is obsolete and should not be used for new development.
SCSIResetDevice
You use theSCSIResetDevice
function to reset a SCSI device.
OSErr SCSIAction(SCSI_PB *scsiPB);
scsiPB
- A pointer to a SCSI Manager parameter block.
--> scsiPBLength UInt16 The size of the parameter block. --> scsiFunctionCode UInt8 The SCSIResetDevice
function selector code (0x12).<-- scsiResult OSErr The returned result code. --> scsiDevice DeviceIdent The device identification record. --> scsiCompletion CallbackProc A pointer to a completion routine. If set to nil
, the function is executed synchronously.--> scsiDriverStorage UInt8 * Optional pointer to the device driver's private storage. DESCRIPTION
TheSCSIResetDevice
function attempts to send aBUS DEVICE RESET
message to the target. If the device is currently on the bus, the SIM asserts the /ATN signal and sends the message at the next message-out phase. If the target is not on the bus, the SIM selects it and sends anIDENTIFY
message followed by aBUS DEVICE RESET
message.SPECIAL CONSIDERATIONS
TheBUS DEVICE RESET
message clears all I/O transactions for all logical units of the target device. This function may result in data loss and should be used only to restore operation in the event that a device fails to respond to other messages.RESULT CODES