diff options
author | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
---|---|---|
committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
commit | ada47b5fe13d89735805b566185f4885f5a3f750 (patch) | |
tree | 644b88f8a71896307d71438e9b3af49126ffb22b /drivers/net/znet.c | |
parent | 43e98717ad40a4ae64545b5ba047c7b86aa44f4f (diff) | |
parent | 3280f21d43ee541f97f8cda5792150d2dbec20d5 (diff) |
Merge branch 'wip-2.6.34' into old-private-masterarchived-private-master
Diffstat (limited to 'drivers/net/znet.c')
-rw-r--r-- | drivers/net/znet.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/net/znet.c b/drivers/net/znet.c index b42347333750..dbfef8d70f2d 100644 --- a/drivers/net/znet.c +++ b/drivers/net/znet.c | |||
@@ -88,6 +88,7 @@ | |||
88 | #include <linux/module.h> | 88 | #include <linux/module.h> |
89 | #include <linux/kernel.h> | 89 | #include <linux/kernel.h> |
90 | #include <linux/string.h> | 90 | #include <linux/string.h> |
91 | #include <linux/slab.h> | ||
91 | #include <linux/errno.h> | 92 | #include <linux/errno.h> |
92 | #include <linux/interrupt.h> | 93 | #include <linux/interrupt.h> |
93 | #include <linux/ioport.h> | 94 | #include <linux/ioport.h> |
@@ -103,8 +104,7 @@ | |||
103 | #include <asm/io.h> | 104 | #include <asm/io.h> |
104 | #include <asm/dma.h> | 105 | #include <asm/dma.h> |
105 | 106 | ||
106 | /* This include could be elsewhere, since it is not wireless specific */ | 107 | #include <linux/i82593.h> |
107 | #include "wireless/i82593.h" | ||
108 | 108 | ||
109 | static char version[] __initdata = "znet.c:v1.02 9/23/94 becker@scyld.com\n"; | 109 | static char version[] __initdata = "znet.c:v1.02 9/23/94 becker@scyld.com\n"; |
110 | 110 | ||
@@ -170,7 +170,7 @@ static int znet_request_resources (struct net_device *dev) | |||
170 | { | 170 | { |
171 | struct znet_private *znet = netdev_priv(dev); | 171 | struct znet_private *znet = netdev_priv(dev); |
172 | 172 | ||
173 | if (request_irq (dev->irq, &znet_interrupt, 0, "ZNet", dev)) | 173 | if (request_irq (dev->irq, znet_interrupt, 0, "ZNet", dev)) |
174 | goto failed; | 174 | goto failed; |
175 | if (request_dma (znet->rx_dma, "ZNet rx")) | 175 | if (request_dma (znet->rx_dma, "ZNet rx")) |
176 | goto free_irq; | 176 | goto free_irq; |
@@ -314,7 +314,8 @@ static void znet_set_multicast_list (struct net_device *dev) | |||
314 | /* Byte D */ | 314 | /* Byte D */ |
315 | cfblk->dummy_1 = 1; /* set to 1 */ | 315 | cfblk->dummy_1 = 1; /* set to 1 */ |
316 | cfblk->tx_ifs_retrig = 3; /* Hmm... Disabled */ | 316 | cfblk->tx_ifs_retrig = 3; /* Hmm... Disabled */ |
317 | cfblk->mc_all = (dev->mc_list || (dev->flags&IFF_ALLMULTI));/* multicast all mode */ | 317 | cfblk->mc_all = (!netdev_mc_empty(dev) || |
318 | (dev->flags & IFF_ALLMULTI)); /* multicast all mode */ | ||
318 | cfblk->rcv_mon = 0; /* Monitor mode disabled */ | 319 | cfblk->rcv_mon = 0; /* Monitor mode disabled */ |
319 | cfblk->frag_acpt = 0; /* Do not accept fragments */ | 320 | cfblk->frag_acpt = 0; /* Do not accept fragments */ |
320 | cfblk->tstrttrs = 0; /* No start transmission threshold */ | 321 | cfblk->tstrttrs = 0; /* No start transmission threshold */ |
@@ -698,8 +699,8 @@ static void znet_rx(struct net_device *dev) | |||
698 | the same area of the backwards links we now have. This allows us to | 699 | the same area of the backwards links we now have. This allows us to |
699 | pass packets to the upper layers in the order they were received -- | 700 | pass packets to the upper layers in the order they were received -- |
700 | important for fast-path sequential operations. */ | 701 | important for fast-path sequential operations. */ |
701 | while (znet->rx_start + cur_frame_end_offset != znet->rx_cur | 702 | while (znet->rx_start + cur_frame_end_offset != znet->rx_cur && |
702 | && ++boguscount < 5) { | 703 | ++boguscount < 5) { |
703 | unsigned short hi_cnt, lo_cnt, hi_status, lo_status; | 704 | unsigned short hi_cnt, lo_cnt, hi_status, lo_status; |
704 | int count, status; | 705 | int count, status; |
705 | 706 | ||