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
Slot Manager Routines / Accessing Expansion Card Parameter RAM


SPutPRAMRec

You can use the SPutPRAMRec function to change the values stored in a slot's parameter RAM.

FUNCTION SPutPRAMRec (spBlkPtr: SpBlockPtr): OSErr;
spBlkPtr
A pointer to a Slot Manager parameter block.
-->spsPointerPtrA pointer to an SPRAMRecord data structure (described on page 2-27).
-->spSlotSignedByteThe slot number.

DESCRIPTION
The SPutPRAMRec function allows you to change the values stored in the parameter RAM of a slot.

In the parameter block you point to in the spBlkPtr parameter, you specify the slot number with the spSlot field and provide the new parameter RAM values in a SPRAMRecord data structure pointed to by the spsPointer field.

The SPutPRAMRec function copies the information from the six vendor-use fields into the parameter RAM for the slot. This function does not copy the boardID field, which is Apple-defined.

ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for the SPutPRAMRec function are
Trap macroSelector
_SlotManager$0012

You must set up register D0 with the routine selector and register A0 with 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$0012
Registers on exit
D0Result code

RESULT CODES
noErr0No error
smEmptySlot-300No card in this slot

Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996