1 --- linux/drivers/net/eepro100.c.alpha Tue Feb 20 12:54:35 2001
2 +++ linux/drivers/net/eepro100.c Tue Feb 20 12:57:33 2001
4 /* Clear CmdSuspend (1<<30) avoiding interference with the card access to the
5 status bits. Previous driver versions used separate 16 bit fields for
6 commands and statuses. --SAW
7 - FIXME: it may not work on non-IA32 architectures.
9 -#if defined(__LITTLE_ENDIAN)
10 -#define clear_suspend(cmd) ((__u16 *)&(cmd)->cmd_status)[1] &= ~0x4000
11 -#elif defined(__BIG_ENDIAN)
12 -#define clear_suspend(cmd) ((__u16 *)&(cmd)->cmd_status)[1] &= ~0x0040
13 +#if defined(__alpha__)
14 +# define clear_suspend(cmd) clear_bit(30, &(cmd)->cmd_status);
16 -#error Unsupported byteorder
17 +# if defined(__LITTLE_ENDIAN)
18 +# define clear_suspend(cmd) ((__u16 *)&(cmd)->cmd_status)[1] &= ~0x4000
19 +# elif defined(__BIG_ENDIAN)
20 +# define clear_suspend(cmd) ((__u16 *)&(cmd)->cmd_status)[1] &= ~0x0040
22 +# error Unsupported byteorder