Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Devices /
Chapter 4 - SCSI Manager 4.3 / SCSI Manager 4.3 Reference
SCSI Manager 4.3 Functions / SIM Internal Functions


SIMAction

The XPT calls this function when a SCSIAction request is received that needs to be serviced by the SIM. The SIMAction 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
The SIMAction function is responsible for handling SCSIAction 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 the SCSIAction function.

In addition to supporting all client functions, the SIMAction function may optionally support two requests made by the XPT, SCSIOldCall and SCSIRegisterWithNewXPT.

RESULT CODES
The SIMAction function returns a result code in the scsiResult field of the parameter block. The code should be appropriate for the SCSIAction request being processed.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996