=================================================================== RCS file: /cvs/funnyos/sys/bus.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- funnyos/sys/bus.h 2007/10/16 09:41:05 1.1 +++ funnyos/sys/bus.h 2007/10/16 18:58:43 1.2 @@ -1,5 +1,5 @@ /* - * $Id: bus.h,v 1.1 2007/10/16 08:41:05 init Exp $ + * $Id: bus.h,v 1.2 2007/10/16 17:58:43 init Exp $ */ #ifndef _SYS_BUS_H #define _SYS_BUS_H @@ -7,9 +7,10 @@ #include /* - * Bus operations. + * 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 busops { +struct bus_handle { uint8_t (*bus_read_1)(struct device *devp, uint32_t addr); uint16_t (*bus_read_2)(struct device *devp, uint32_t addr); uint32_t (*bus_read_4)(struct device *devp, uint32_t addr);