aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ne-h8300.c
diff options
context:
space:
mode:
authorGlenn Elliott <gelliott@cs.unc.edu>2012-03-04 19:47:13 -0500
committerGlenn Elliott <gelliott@cs.unc.edu>2012-03-04 19:47:13 -0500
commitc71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch)
treeecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /drivers/net/ne-h8300.c
parentea53c912f8a86a8567697115b6a0d8152beee5c8 (diff)
parent6a00f206debf8a5c8899055726ad127dbeeed098 (diff)
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts: litmus/sched_cedf.c
Diffstat (limited to 'drivers/net/ne-h8300.c')
-rw-r--r--drivers/net/ne-h8300.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/drivers/net/ne-h8300.c b/drivers/net/ne-h8300.c
index e0b0ef11f110..7298a34bc795 100644
--- a/drivers/net/ne-h8300.c
+++ b/drivers/net/ne-h8300.c
@@ -86,7 +86,7 @@ static u32 reg_offset[16];
86 86
87static int __init init_reg_offset(struct net_device *dev,unsigned long base_addr) 87static int __init init_reg_offset(struct net_device *dev,unsigned long base_addr)
88{ 88{
89 struct ei_device *ei_local = (struct ei_device *) netdev_priv(dev); 89 struct ei_device *ei_local = netdev_priv(dev);
90 int i; 90 int i;
91 unsigned char bus_width; 91 unsigned char bus_width;
92 92
@@ -167,7 +167,7 @@ static void cleanup_card(struct net_device *dev)
167#ifndef MODULE 167#ifndef MODULE
168struct net_device * __init ne_probe(int unit) 168struct net_device * __init ne_probe(int unit)
169{ 169{
170 struct net_device *dev = alloc_ei_netdev(); 170 struct net_device *dev = ____alloc_ei_netdev(0);
171 int err; 171 int err;
172 172
173 if (!dev) 173 if (!dev)
@@ -197,15 +197,15 @@ static const struct net_device_ops ne_netdev_ops = {
197 .ndo_open = ne_open, 197 .ndo_open = ne_open,
198 .ndo_stop = ne_close, 198 .ndo_stop = ne_close,
199 199
200 .ndo_start_xmit = ei_start_xmit, 200 .ndo_start_xmit = __ei_start_xmit,
201 .ndo_tx_timeout = ei_tx_timeout, 201 .ndo_tx_timeout = __ei_tx_timeout,
202 .ndo_get_stats = ei_get_stats, 202 .ndo_get_stats = __ei_get_stats,
203 .ndo_set_multicast_list = ei_set_multicast_list, 203 .ndo_set_multicast_list = __ei_set_multicast_list,
204 .ndo_validate_addr = eth_validate_addr, 204 .ndo_validate_addr = eth_validate_addr,
205 .ndo_set_mac_address = eth_mac_addr, 205 .ndo_set_mac_address = eth_mac_addr,
206 .ndo_change_mtu = eth_change_mtu, 206 .ndo_change_mtu = eth_change_mtu,
207#ifdef CONFIG_NET_POLL_CONTROLLER 207#ifdef CONFIG_NET_POLL_CONTROLLER
208 .ndo_poll_controller = ei_poll, 208 .ndo_poll_controller = __ei_poll,
209#endif 209#endif
210}; 210};
211 211
@@ -218,7 +218,7 @@ static int __init ne_probe1(struct net_device *dev, int ioaddr)
218 int start_page, stop_page; 218 int start_page, stop_page;
219 int reg0, ret; 219 int reg0, ret;
220 static unsigned version_printed; 220 static unsigned version_printed;
221 struct ei_device *ei_local = (struct ei_device *) netdev_priv(dev); 221 struct ei_device *ei_local = netdev_priv(dev);
222 unsigned char bus_width; 222 unsigned char bus_width;
223 223
224 if (!request_region(ioaddr, NE_IO_EXTENT, DRV_NAME)) 224 if (!request_region(ioaddr, NE_IO_EXTENT, DRV_NAME))
@@ -371,7 +371,7 @@ static int ne_close(struct net_device *dev)
371static void ne_reset_8390(struct net_device *dev) 371static void ne_reset_8390(struct net_device *dev)
372{ 372{
373 unsigned long reset_start_time = jiffies; 373 unsigned long reset_start_time = jiffies;
374 struct ei_device *ei_local = (struct ei_device *) netdev_priv(dev); 374 struct ei_device *ei_local = netdev_priv(dev);
375 375
376 if (ei_debug > 1) 376 if (ei_debug > 1)
377 printk(KERN_DEBUG "resetting the 8390 t=%ld...", jiffies); 377 printk(KERN_DEBUG "resetting the 8390 t=%ld...", jiffies);
@@ -397,7 +397,7 @@ static void ne_reset_8390(struct net_device *dev)
397 397
398static void ne_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr, int ring_page) 398static void ne_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr, int ring_page)
399{ 399{
400 struct ei_device *ei_local = (struct ei_device *) netdev_priv(dev); 400 struct ei_device *ei_local = netdev_priv(dev);
401 /* This *shouldn't* happen. If it does, it's the last thing you'll see */ 401 /* This *shouldn't* happen. If it does, it's the last thing you'll see */
402 402
403 if (ei_status.dmaing) 403 if (ei_status.dmaing)
@@ -437,7 +437,7 @@ static void ne_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr, i
437 437
438static void ne_block_input(struct net_device *dev, int count, struct sk_buff *skb, int ring_offset) 438static void ne_block_input(struct net_device *dev, int count, struct sk_buff *skb, int ring_offset)
439{ 439{
440 struct ei_device *ei_local = (struct ei_device *) netdev_priv(dev); 440 struct ei_device *ei_local = netdev_priv(dev);
441#ifdef NE_SANITY_CHECK 441#ifdef NE_SANITY_CHECK
442 int xfer_count = count; 442 int xfer_count = count;
443#endif 443#endif
@@ -507,7 +507,7 @@ static void ne_block_input(struct net_device *dev, int count, struct sk_buff *sk
507static void ne_block_output(struct net_device *dev, int count, 507static void ne_block_output(struct net_device *dev, int count,
508 const unsigned char *buf, const int start_page) 508 const unsigned char *buf, const int start_page)
509{ 509{
510 struct ei_device *ei_local = (struct ei_device *) netdev_priv(dev); 510 struct ei_device *ei_local = netdev_priv(dev);
511 unsigned long dma_start; 511 unsigned long dma_start;
512#ifdef NE_SANITY_CHECK 512#ifdef NE_SANITY_CHECK
513 int retries = 0; 513 int retries = 0;
@@ -637,7 +637,7 @@ int init_module(void)
637 int err; 637 int err;
638 638
639 for (this_dev = 0; this_dev < MAX_NE_CARDS; this_dev++) { 639 for (this_dev = 0; this_dev < MAX_NE_CARDS; this_dev++) {
640 struct net_device *dev = alloc_ei_netdev(); 640 struct net_device *dev = ____alloc_ei_netdev(0);
641 if (!dev) 641 if (!dev)
642 break; 642 break;
643 if (io[this_dev]) { 643 if (io[this_dev]) {