--- zzzz-none-000/linux-2.4.17/drivers/net/8390.c 2001-09-30 19:26:06.000000000 +0000 +++ sangam-fb-322/linux-2.4.17/drivers/net/8390.c 2004-11-24 13:23:32.000000000 +0000 @@ -100,6 +100,10 @@ #define ei_block_input (ei_local->block_input) #define ei_get_8390_hdr (ei_local->get_8390_hdr) +#ifdef CONFIG_REDWOOD_4 +#include "8390_redwood.h" +#endif + /* use 0 for production, 1 for verification, >2 for debug */ #ifndef ei_debug int ei_debug = 1; @@ -725,7 +729,11 @@ ei_local->stat.rx_errors++; ei_local->stat.rx_length_errors++; } +#ifdef CONFIG_REDWOOD_4 + else if ((pkt_stat & 0x1F) == ENRSR_RXOK) +#else else if ((pkt_stat & 0x0F) == ENRSR_RXOK) +#endif { struct sk_buff *skb; @@ -1059,9 +1067,15 @@ long e8390_base = dev->base_addr; struct ei_device *ei_local = (struct ei_device *) dev->priv; int i; +#ifdef CONFIG_REDWOOD_4 + int endcfg = ei_local->word16 + ? (0x28 | ENDCFG_WTS ) + : 0x28; +#else int endcfg = ei_local->word16 ? (0x48 | ENDCFG_WTS | (ei_local->bigendian ? ENDCFG_BOS : 0)) : 0x48; +#endif if(sizeof(struct e8390_pkt_hdr)!=4) panic("8390.c: header struct mispacked\n");