Writing Device Drivers

Device Attribute Representations

Device attribute (or device-related) information may be represented with a name=value pair notation called a property.

For example, a reg property is used to represent device registers and onboard memory. The reg property is a software abstraction that describes device hardware registers; its value encodes the device register address location and size. Drivers use the reg property to access device registers.

As another example, an interrupt property is a software abstraction used to represent the device interrupt; its value encodes the device-interrupt pin number. For more information on properties, see "Properties".