aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/adm5120/files/include
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2007-12-12 08:43:41 +0000
committerGabor Juhos <juhosg@openwrt.org>2007-12-12 08:43:41 +0000
commitee39216f390ef58e964000c9c4bc249f71e996ff (patch)
treeae58c7602f42cb5f33274ac198568a1addffb842 /target/linux/adm5120/files/include
parentbe29e04c420c095ac093991d747d4d0d6ce79381 (diff)
downloadupstream-ee39216f390ef58e964000c9c4bc249f71e996ff.tar.gz
upstream-ee39216f390ef58e964000c9c4bc249f71e996ff.tar.bz2
upstream-ee39216f390ef58e964000c9c4bc249f71e996ff.zip
[adm5120] fix mac address setup on RouterBOARDs
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9713 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/adm5120/files/include')
-rw-r--r--target/linux/adm5120/files/include/asm-mips/mach-adm5120/prom/routerboot.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/target/linux/adm5120/files/include/asm-mips/mach-adm5120/prom/routerboot.h b/target/linux/adm5120/files/include/asm-mips/mach-adm5120/prom/routerboot.h
index 3c0898b3de..41121c9d73 100644
--- a/target/linux/adm5120/files/include/asm-mips/mach-adm5120/prom/routerboot.h
+++ b/target/linux/adm5120/files/include/asm-mips/mach-adm5120/prom/routerboot.h
@@ -26,7 +26,6 @@
#define _ROUTERBOOT_H
#define RB_MAC_SIZE 6
-#define RB_MAX_MAC_COUNT 6
struct rb_bios_settings {
u32 hs_offs; /* hard settings offset */
@@ -41,7 +40,7 @@ struct rb_hard_settings {
char *bios_ver; /* BIOS version */
u32 mem_size; /* memory size in bytes */
u32 mac_count; /* number of mac addresses */
- u8 macs[RB_MAC_SIZE][RB_MAX_MAC_COUNT]; /* mac addresses */
+ u8 *mac_base; /* mac address base */
};
/*
@@ -134,4 +133,6 @@ struct rb_hard_settings {
extern int routerboot_present(void) __init;
extern char *routerboot_get_boardname(void);
+extern struct rb_hard_settings rb_hs;
+
#endif /* _ROUTERBOOT_H */