8 #include <linux/module.h>
9 #include <linux/kernel.h>
10 #include <linux/types.h>
13 #include <linux/string.h>
16 #include <linux/errno.h>
19 #include <linux/socket.h>
21 #include <linux/netdevice.h>
26 #include <asm/pgtable.h>
33 #define LANCE_LOG_TX_BUFFERS 1
34 #define LANCE_LOG_RX_BUFFERS 3
60 .ndo_open = m147lance_open,
61 .ndo_stop = m147lance_close,
75 static const char name[] =
"MVME147 LANCE";
109 printk(
"%s: MVME147 at 0x%08lx, irq %d, "
110 "Hardware Address %pM\n",
114 lp = netdev_priv(dev);
118 printk(
"%s: No memory for LANCE buffers\n", dev->
name);
123 lp->
lance.name = (
char*)name;
176 static int m147lance_close(
struct net_device *dev)
191 if (IS_ERR(dev_mvme147_lance))
192 return PTR_ERR(dev_mvme147_lance);