Data Fields | |
| char | name [MAX_DRIVER_NAME] |
| int | id |
| unsigned long | map_base |
| void * | priv |
| struct driver_d * | driver |
| struct param_d * | param |
| char name[MAX_DRIVER_NAME] |
This member (and 'type' described below) is used to match with a driver.
This is a descriptive name and could be MPC5XXX_ether or imx_serial.
| int id |
The id is used to uniquely identify a device in the system.
The id will show up under /dev/ as the device's name. Usually this is something like eth0 or nor0.
| unsigned long size |
FIXME.
| unsigned long map_base |
For devices which are directly mapped into memory, i.e.
NOR Flash or SDRAM.
| void* priv |
board specific information about this device
Devices of a particular class normaly need to store more information than struct device holds.
In case this device is a specific device, this pointer points to the type specific device, i.e.
eth_device
struct list_head list [read] |
The driver for this device.
struct param_d* param [read] |
The parameters for this device.
This is used to carry information of board specific data from the board code to the device driver.
1.5.6