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
Data Structures


Slot Information Record

The Slot Manager creates a slot information record for each slot. This structure is defined by the SInfoRecord data type.

   TYPE SInfoRecord =               {slot information record}
   PACKED RECORD
      siDirPtr:       Ptr;          {pointer to sResource directory}
      siInitStatusA:  Integer;      {initialization status}
      siInitStatusV:  Integer;      {status returned by vendor }
                                    { initialization routine}
      siState:        SignedByte;   {initialization state}
      siCPUByteLanes: SignedByte;   {byte lanes used}
      siTopOfROM:     SignedByte;   {highest valid address in ROM}
      siStatusFlags:  SignedByte;   {status flags}
      siTOConstant:   Integer;      {timeout constant for bus error}
      siReserved:     PACKED ARRAY [0..1] OF SignedByte; 
                                    {reserved}
      siROMAddr:      Ptr;          {address of top of ROM}
      siSlot:         Char;         {slot number}
      siPadding:      PACKED ARRAY [0..2] OF SignedByte; {reserved}
   END;
Field Description
siDirPtr
A pointer to the sResource directory (described in "The sResource Directory" on page 2-12).
siInitStatusA
The initialization status code set by the Slot Manager. A value of 0 indicates the card is installed and operational. Any other value is a Slot Manager error code indicating why the initialization failed.
siInitStatusV
The initialization status code returned by the card's PrimaryInit routine in the seStatus field of the SEBlock parameter block (described on page 2-27). Negative values cause the card initialization to fail. Values in the range svTempDisable ($8000) through svDisabled ($8080) are used to temporarily disable a card. See "Enabling and Disabling NuBus Cards" on page 2-17 for more information.
siState
Reserved for use by the Slot Manager.
siCPUByteLanes
The byte lanes used by the declaration ROM.
siTopOfROM
The least significant byte of the address stored in siROMAddr.
siStatusFlags
Slot status flag field set by the Slot Manager. If the fCardIsChanged flag (bit 1) is set, the board ID of the installed card does not match the board ID stored in parameter RAM. Other flag bits are reserved.
siTOConstant
The number of retries that will be performed when a bus error occurs while accessing the declaration ROM. The default is 100.
siReserved
Reserved for use by the Slot Manager.
siROMAddr
The highest address in the declaration ROM.
siSlot
The slot number.
siPadding
Reserved for use by the Slot Manager.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996