version 1.5, 2007/10/16 21:40:47 |
version 1.6, 2007/10/16 21:41:35 |
|
|
* Device drivers attached to bus aquire bus_handle to perform all bus i/o. |
* Device drivers attached to bus aquire bus_handle to perform all bus i/o. |
*/ |
*/ |
struct bus_handle { |
struct bus_handle { |
struct device *bh_ownerdd; /* devdata of device that owns this handler XXX kill that it is ugly */ |
void *bh_ownerdd; /* devdata of device that owns this handler XXX kill that it is ugly */ |
uint8_t (*bus_read_1)(void *ddp, uint32_t addr); |
uint8_t (*bus_read_1)(void *ddp, uint32_t addr); |
uint16_t (*bus_read_2)(void *ddp, uint32_t addr); |
uint16_t (*bus_read_2)(void *ddp, uint32_t addr); |
uint32_t (*bus_read_4)(void *ddp, uint32_t addr); |
uint32_t (*bus_read_4)(void *ddp, uint32_t addr); |