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 Support Functions


SCSIReregisterBus

You can use the SCSIReregisterBus function to reregister a bus if its entry points change or if the XPT is replaced.

OSErr SCSIReregisterBus(SIMInitInfo *SIMinfoPtr);
SIMinfoPtr
A pointer to a SIM initialization record, which is described on page 4-36.
-->SIMstaticPtrUInt8 *A pointer to the SIM's existing static storage.
-->staticSizeSInt32The size of the SIM's static storage.
-->SIMInitSIMInitProcA pointer to the SIMInit function.
-->SIMActionSIMActionProcA pointer to the SIMAction function.
-->SIMInterruptPollInterruptPollProcA pointer to the SIMInterruptPoll function.
-->NewOldCallSIMActionProcA pointer to the NewOldCall function.
-->ioPBSizeUInt16The SCSI I/O parameter block size for this SIM.
-->oldCallCapableBooleanSet to true if the SIM emulates original SCSI Manager functions.
<--EnteringSIMSCSIProcA pointer to the EnteringSIM function.
<--ExitingSIMSCSIProcA pointer to the ExitingSIM function.
<--MakeCallbackMakeCallbackProcA pointer to the MakeCallback function.
-->busIDUInt16The bus number requested.

DESCRIPTION
You normally call the SCSIReregisterBus function in response to a SCSIRegisterWithNewXPT request. This function is identical to SCSIRegisterBus except that the bus number and static storage pointer are passed to the XPT, rather than being returned by it. In addition, the XPT does not call the SIMInit function.

This function allows a SIM to retain its bus number and static storage if the XPT changes. It is also useful if you need to change the SIM's function entry points or other information.

SPECIAL CONSIDERATIONS
The SCSIReregisterBus function may move memory; you should not call it at interrupt time.

RESULT CODES
noErr0No error
scsiBusInvalid-7869The bus ID is invalid
scsiTooManyBuses-7888SIM registration failed because the XPT registry is full

Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996