From 2e57111a03af9f59728bf6a6dd39e28f76c1f7d2 Mon Sep 17 00:00:00 2001 From: Marcel Telka Date: Tue, 3 Jun 2003 19:19:52 +0000 Subject: [PATCH] 2003-06-03 Marcel Telka * brux/cmd.h (cmds): Added external variable declaration. * brux/bus.h (bus): Ditto. git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@471 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- include/ChangeLog | 5 +++++ include/brux/bus.h | 2 ++ include/brux/cmd.h | 2 ++ 3 files changed, 9 insertions(+) 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 );