Important: The information in this document is obsolete and should not be used for new development.
SIMAction
The XPT calls this function when aSCSIAction
request is received that needs to be serviced by the SIM. TheSIMAction
function must conform to the following type definition:
typedef void (*SIMActionProc) (void * scsiPB, Ptr SIMGlobals);
scsiPB
- A pointer to a SCSI Manager parameter block.
SIMGlobals
- A pointer to the SIM's static data storage.
DESCRIPTION
TheSIMAction
function is responsible for handlingSCSIAction
requests directed to the SIM's bus. The XPT passes the client's parameter block to the SIM, which should then queue the request, execute it, and call the completion routine. The SIM must conform to the behavior defined for theSCSIAction
function.In addition to supporting all client functions, the
SIMAction
function may optionally support two requests made by the XPT,SCSIOldCall
andSCSIRegisterWithNewXPT
.RESULT CODES
TheSIMAction
function returns a result code in thescsiResult
field of the parameter block. The code should be appropriate for theSCSIAction
request being processed.