SCSIRegisterWithNewXPT
This function informs a SIM that a new XPT layer has been installed. The SIM should call the SCSIReregisterBus function to register itself with the new XPT.
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.
| --> | scsiPBLength | UInt16 | The size of the parameter block. |
| --> | scsiFunctionCode | UInt8 | The SCSIRegisterWithNewXPT function selector code (0x88). |
DESCRIPTION
After a new XPT installs itself, and before it removes the old XPT, it sends the SCSIRegisterWithNewXPT request to all SIMs registered with the old XPT. Each SIM should then call the SCSIReregisterBus function to register with the new XPT. This allows SIMs to keep their existing bus number and static data storage when installing themselves in a new XPT.
RESULT CODES
| noErr | 0 | No error |
| scsiQLinkInvalid | -7881 | The qLink field was not 0 |