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


Format Header Record

The Slot Manager uses a format header record to describe the structure of a card's format block, which is located at the highest address in the slot's NuBus address space. By reading information from the format header record, the Slot Manager can locate and validate the card's declaration ROM. The format header record is defined by the FHeaderRec data type.

Note
For more information about the format block, see Designing Cards and Drivers for the Macintosh Family, third edition.
   TYPE FHeaderRec =                {format header record}
   PACKED RECORD
      fhDirOffset:   LongInt;       {offset to sResource directory}
      fhLength:      LongInt;       {length in bytes of declaration ROM}
      fhCRC:         LongInt;       {cyclic redundancy check}
      fhROMRev:      SignedByte;    {declaration ROM revision}
      fhFormat:      SignedByte;    {declaration ROM format}
      fhTstPat:      LongInt;       {test pattern}
      fhReserved:    SignedByte;    {reserved; must be 0}
      fhByteLanes:   SignedByte;    {byte lanes used by declaration ROM}
   END;
Field Description
fhDirOffset
A self-relative signed offset to the sResource directory. This field specifies only bytes accessible by valid byte lanes; as a result, the value in this field might not be the absolute address difference.
fhLength
The number of valid bytes in the declaration ROM. The Slot Manager uses this value when computing the checksum.
fhCRC
A checksum that allows the Slot Manager to validate the entire declaration ROM.
fhROMRev
The current ROM revision level. This field should contain a value in the range 1-9; values greater than 9 cause the Slot Manager to generate the error smRevisionErr.
fhFormat
The format of the declaration ROM. A value of 1 designates the Apple format.
fhTstPat
A test pattern. This field must contain the value $5A932BC7.
fhReserved
Reserved. This field must be 0.
fhByteLanes
A signed byte that specifies which of the four byte lanes to use when communicating with the declaration ROM. Refer to Designing Cards and Drivers for the Macintosh Family, third edition, for a list of valid values.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996