diff --git a/include/ChangeLog b/include/ChangeLog index 191e917a..a90dbdf3 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,8 @@ +2003-06-03 Marcel Telka + + * brux/cmd.h (cmds): Added external variable declaration. + * brux/bus.h (bus): Ditto. + 2003-06-03 Marcel Telka * brux/cmd.h: New file extracted from jtag module, file src/cmd/cmd.h. diff --git a/include/brux/bus.h b/include/brux/bus.h index 67a979ad..38fd33d0 100644 --- a/include/brux/bus.h +++ b/include/brux/bus.h @@ -51,6 +51,8 @@ struct bus { void (*free)( bus_t *bus ); }; +extern bus_t *bus; + #define bus_prepare(bus) bus->prepare(bus) #define bus_width(bus,adr) bus->width(bus,adr) #define bus_read_start(bus,adr) bus->read_start(bus,adr) diff --git a/include/brux/cmd.h b/include/brux/cmd.h index 4234f340..37449a56 100644 --- a/include/brux/cmd.h +++ b/include/brux/cmd.h @@ -41,6 +41,8 @@ typedef struct { int (*run)( char *params[] ); } cmd_t; +extern const cmd_t *cmds[]; + int cmd_run( char *params[] ); int cmd_params( char *params[] ); int cmd_get_number( char *s, unsigned int *i );