Slot Manager RoutinesThis section describes the routines provided by the Slot Manager. Most of the routines in this section are used to locate sResources or read information from an entry in an sResource. Some of the routines allow you to read and set information about expansion cards, such as their parameter RAM values, and others allow you to manipulate Slot Manager data structures, like the slot resource table.
SPrimaryInitfunctions may allocate memory, your application should not call them at interrupt time; however, your can call any other Slot Manager function at interrupt time.
Because each routine uses a subset of the Slot Manager parameter block fields, each routine reference section includes a list of pertinent fields and how they are used.
FieldType Input field. <--
FieldType Output field. <-->
FieldType Input/output field. X
FieldType Affected field.
The arrows show whether you provide a value in the field, the routine returns a value in the field, or both. The X symbol designates fields that may be affected by the execution of the routine. Any value you store in one of these affected fields may be lost. Also, the meaning of these fields upon completion of the routine is undefined; your application should not depend on these values.
- Assembly-Language Note
- You can call Slot Manager routines using either the
_SlotManagertrap macro with a selector or an individual macro name consisting of the routine name preceded by an underscore. For example, you can call the
SVersionfunction using the
_SVersionmacro. Because every routine name macro is equivalent to the
_SlotManagertrap macro that specifies the corresponding routine selector, you will need to know the routine selectors to trace your code in MacsBug. The
_SlotManagertrap macro selector for each routine is included in the routine description and summarized in "Trap Macros," beginning on page 2-99.
- Determining the Version of the Slot Manager
- Finding sResources
- Getting Information From sResources
- Enabling, Disabling, Deleting, and Restoring sResources
- Loading Drivers and Executing Code From sResources
- Getting Information About Expansion Cards and Declaration ROMs
- Accessing Expansion Card Parameter RAM
- Managing the Slot Interrupt Queue