Important: The information in this document is obsolete and should not be used for new development.
InitSDeclMgr
This function is used only by the Macintosh Operating System.
FUNCTION InitSDeclMgr (spBlkPtr: SpBlockPtr): OSErr;
- spBlkPtr
- A pointer to a Slot Manager parameter block.
DESCRIPTION
TheInitSDeclMgr
function initializes the Slot Manager. The contents of the parameter block are undefined. This function allocates the slot information record and checks each slot for a card. If a card is present, the Slot Manager validates the card's firmware and the resulting information is placed in the slot'ssInfoRecord
. For empty slots, or cards that fail to initialize, the Slot Manager stores the appropriate error code in theinitStatusA
field of thesInfoRecord
for the slot.SPECIAL CONSIDERATIONS
TheInitSDeclMgr
function allocates memory.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theInitSDeclMgr
function are
Trap macro Selector _SlotManager $0020 On entry, register D0 contains the routine selector and register A0 contains the address of the Slot Manager parameter block. When
_SlotManager
returns, register D0 contains the result code.
Registers on entry A0 Address of the parameter block D0 $0020
Registers on exit D0 Result code RESULT CODES
noErr 0 No error smUnExBusErr
-308 A bus error occurred smDisposePErr
-312 An error occurred during execution of DisposePtr
smBadsPtrErr
-346 Bad spsPointer
valuesmByteLanesErr
-347 Bad spByteLanes
valueSEE ALSO
For more information about Slot Manager initialization, see "About the Slot Manager," beginning on page 2-15.