]> git.pld-linux.org Git - packages/kernel.git/blame - linux-2.4.2-eepro100-alpha.patch
run depmod before geninitrd and rc-boot
[packages/kernel.git] / linux-2.4.2-eepro100-alpha.patch
CommitLineData
95e83f51
JR
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
3@@ -341,14 +341,17 @@
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.
8 */
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);
15 #else
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
21+# else
22+# error Unsupported byteorder
23+# endif
24 #endif
25
26 enum SCBCmdBits {
This page took 0.06243 seconds and 4 git commands to generate.