=================================================================== RCS file: /cvs/funnyos/sys/bus.h,v retrieving revision 1.5 retrieving revision 1.7 diff -u -r1.5 -r1.7 --- funnyos/sys/bus.h 2007/10/16 21:40:47 1.5 +++ funnyos/sys/bus.h 2007/10/25 20:58:47 1.7 @@ -1,17 +1,17 @@ /* - * $Id: bus.h,v 1.5 2007/10/16 20:40:47 init Exp $ + * $Id: bus.h,v 1.7 2007/10/25 19:58:47 init Exp $ */ #ifndef _SYS_BUS_H #define _SYS_BUS_H -#include +#include /* * Each bus (bus driver instance) has its own bus_handle. * Device drivers attached to bus aquire bus_handle to perform all bus i/o. */ 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); uint16_t (*bus_read_2)(void *ddp, uint32_t addr); uint32_t (*bus_read_4)(void *ddp, uint32_t addr);