From 089b30cadad42e281e7d245a5c4b0b5c0c50408f Mon Sep 17 00:00:00 2001 From: Kolja Waschk Date: Tue, 6 Nov 2007 17:28:11 +0000 Subject: [PATCH] [ 909598 ] Detect 16bit flash on PXA25x 1/2 git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@682 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- include/brux/bus.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/brux/bus.h b/include/brux/bus.h index 68224181..f0d5c4cc 100644 --- a/include/brux/bus.h +++ b/include/brux/bus.h @@ -59,6 +59,7 @@ typedef struct bus_driver { uint32_t (*read_end)( bus_t *bus ); uint32_t (*read)( bus_t *bus, uint32_t adr ); void (*write)( bus_t *bus, uint32_t adr, uint32_t data ); + int (*init) (bus_t *bus); } bus_driver_t; struct bus { @@ -77,5 +78,6 @@ extern bus_t *bus; #define bus_read(bus,adr) bus->driver->read(bus,adr) #define bus_write(bus,adr,data) bus->driver->write(bus,adr,data) #define bus_free(bus) bus->driver->free_bus(bus) +#define bus_init(bus) bus->driver->init(bus) #endif /* BRUX_BUS_H */