Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 41460
b: refs/heads/master
c: 3470cb1
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro authored and Jeff Garzik committed Dec 2, 2006
1 parent 930c4b8 commit c7e6b55
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b936889c8f95b601d3ef6caac6ac653a8adb4fec
refs/heads/master: 3470cb1d4fb27572273079e7095734ac4f9caa43
4 changes: 0 additions & 4 deletions trunk/drivers/net/8390.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,6 @@ struct ei_device {
* - removed AMIGA_PCMCIA from this list, handled as ISA io now
*/

#if defined(CONFIG_NE_H8300) || defined(CONFIG_NE_H8300_MODULE)
#define EI_SHIFT(x) (ei_local->reg_offset[x])
#endif

#ifndef ei_inb
#define ei_inb(_p) inb(_p)
#define ei_outb(_v,_p) outb(_v,_p)
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ obj-$(CONFIG_NE3210) += ne3210.o 8390.o
obj-$(CONFIG_NET_SB1250_MAC) += sb1250-mac.o
obj-$(CONFIG_B44) += b44.o
obj-$(CONFIG_FORCEDETH) += forcedeth.o
obj-$(CONFIG_NE_H8300) += ne-h8300.o 8390.o
obj-$(CONFIG_NE_H8300) += ne-h8300.o

obj-$(CONFIG_MV643XX_ETH) += mv643xx_eth.o
obj-$(CONFIG_QLA3XXX) += qla3xxx.o
Expand Down
23 changes: 15 additions & 8 deletions trunk/drivers/net/ne-h8300.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ static const char version1[] =
#include <asm/io.h>
#include <asm/irq.h>

#define EI_SHIFT(x) (ei_local->reg_offset[x])

#include "8390.h"

#define DRV_NAME "ne-h8300"
Expand All @@ -52,6 +54,11 @@ static const char version1[] =

/* ---- No user-serviceable parts below ---- */

static const char version[] =
"8390.c:v1.10cvs 9/23/94 Donald Becker (becker@cesdis.gsfc.nasa.gov)\n";

#include "lib8390.c"

#define NE_BASE (dev->base_addr)
#define NE_CMD 0x00
#define NE_DATAPORT (ei_status.word16?0x20:0x10) /* NatSemi-defined port window offset. */
Expand Down Expand Up @@ -162,7 +169,7 @@ static void cleanup_card(struct net_device *dev)
#ifndef MODULE
struct net_device * __init ne_probe(int unit)
{
struct net_device *dev = alloc_ei_netdev();
struct net_device *dev = ____alloc_ei_netdev(0);
int err;

if (!dev)
Expand Down Expand Up @@ -283,7 +290,7 @@ static int __init ne_probe1(struct net_device *dev, int ioaddr)

/* Snarf the interrupt now. There's no point in waiting since we cannot
share and the board will usually be enabled. */
ret = request_irq(dev->irq, ei_interrupt, 0, name, dev);
ret = request_irq(dev->irq, __ei_interrupt, 0, name, dev);
if (ret) {
printk (" unable to get IRQ %d (errno=%d).\n", dev->irq, ret);
goto err_out;
Expand Down Expand Up @@ -318,9 +325,9 @@ static int __init ne_probe1(struct net_device *dev, int ioaddr)
dev->open = &ne_open;
dev->stop = &ne_close;
#ifdef CONFIG_NET_POLL_CONTROLLER
dev->poll_controller = ei_poll;
dev->poll_controller = __ei_poll;
#endif
NS8390_init(dev, 0);
__NS8390_init(dev, 0);

ret = register_netdev(dev);
if (ret)
Expand All @@ -335,15 +342,15 @@ static int __init ne_probe1(struct net_device *dev, int ioaddr)

static int ne_open(struct net_device *dev)
{
ei_open(dev);
__ei_open(dev);
return 0;
}

static int ne_close(struct net_device *dev)
{
if (ei_debug > 1)
printk(KERN_DEBUG "%s: Shutting down ethercard.\n", dev->name);
ei_close(dev);
__ei_close(dev);
return 0;
}

Expand Down Expand Up @@ -584,7 +591,7 @@ static void ne_block_output(struct net_device *dev, int count,
if (time_after(jiffies, dma_start + 2*HZ/100)) { /* 20ms */
printk(KERN_WARNING "%s: timeout waiting for Tx RDC.\n", dev->name);
ne_reset_8390(dev);
NS8390_init(dev,1);
__NS8390_init(dev,1);
break;
}

Expand Down Expand Up @@ -620,7 +627,7 @@ int init_module(void)
int err;

for (this_dev = 0; this_dev < MAX_NE_CARDS; this_dev++) {
struct net_device *dev = alloc_ei_netdev();
struct net_device *dev = ____alloc_ei_netdev(0);
if (!dev)
break;
if (io[this_dev]) {
Expand Down

0 comments on commit c7e6b55

Please sign in to comment.