1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-30 17:40:16 +02:00

quick and dirty buffalo hack

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@107 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
mbm 2004-07-20 02:37:57 +00:00
parent 03c6782388
commit 055be4b875

View File

@ -52,6 +52,9 @@ static void v1_set_dmz(u8 state) {
}
}
// - - - - -
static void ignore(u8 ignored) {};
// - - - - -
#define BIT_DMZ 0x01
#define BIT_DIAG 0x04
@ -114,6 +117,12 @@ static int __init diag_init()
board_type=1;
set_diag=v1_set_diag;
set_dmz=v1_set_dmz;
if (board_type==0x41d) {
printk(KERN_INFO "buffalo hack.\n");
set_diag=ignore;
set_dmz=v2_set_dmz;
}
} else {
board_type=2;
set_diag=v2_set_diag;