PATH 
ADC Home > Documentation > Hardware > Device Managers and Drivers > PCI Card Services > Designing PCI Cards and Drivers for Power Macintosh Computers


  

Data Structures and Constants

Modifiers are specified as bits in a 32-bit word. The low-order 16 bits are reserved for modifiers applicable to both names and properties. The next 8 bits are reserved by the name space and are redefined for each name space. The high-order 8 bits are reserved for each name and property set and are redefined for each name entry.

The following types are used to declare modifier words:

typedef unsigned long   RegModifiers;
typedef RegModifiers    RegEntryModifiers;
typedef RegModifiers    RegPropertyModifiers;

The following constants are used to mask bits in modifier words:

Name

Value

Description

kRegNoModifiers 0x00000000 No entry modifiers in place
kRegUniversalModifierMask 0x0000FFFF Modifiers to all entries
kRegNameSpaceModifierMask 0x00FF0000 Modifiers to all entries within the name space
kRegModifierMask 0xFF000000 Modifiers to just this entry

The following constants have meaning for property modifiers:

Name

Value

Description

kRegPropertyValueIsSavedToNVRAM 0x00000001 Saved in NVRAM
kRegPropertyValueIsSavedToDisk 0x00000002 Saved to disk

© 1999 Apple Computer, Inc. – (Last Updated 26 March 99)