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 2 - Slot Manager / Slot Manager Reference
Low-Level Routines /


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
The InitSDeclMgr 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's sInfoRecord. For empty slots, or cards that fail to initialize, the Slot Manager stores the appropriate error code in the initStatusA field of the sInfoRecord for the slot.

SPECIAL CONSIDERATIONS
The InitSDeclMgr function allocates memory.

ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for the InitSDeclMgr function are
Trap macroSelector
_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
A0Address of the parameter block
D0$0020
Registers on exit
D0Result code

RESULT CODES
noErr0No error
smUnExBusErr-308A bus error occurred
smDisposePErr-312An error occurred during execution of DisposePtr
smBadsPtrErr-346Bad spsPointer value
smByteLanesErr-347Bad spByteLanes value
SEE ALSO
For more information about Slot Manager initialization, see "About the Slot Manager," beginning on page 2-15.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996