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
TheInitSDeclMgrfunction 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 theinitStatusAfield of thesInfoRecordfor the slot.SPECIAL CONSIDERATIONS
TheInitSDeclMgrfunction allocates memory.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theInitSDeclMgrfunction 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
_SlotManagerreturns, 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 DisposePtrsmBadsPtrErr-346 Bad spsPointervaluesmByteLanesErr-347 Bad spByteLanesvalueSEE ALSO
For more information about Slot Manager initialization, see "About the Slot Manager," beginning on page 2-15.