patch-2.3.14 linux/drivers/net/7990.c
Next file: linux/drivers/net/7990.h
Previous file: linux/drivers/net/3c59x.c
Back to the patch index
Back to the overall index
- Lines: 99
- Date:
Wed Aug 18 11:36:41 1999
- Orig file:
v2.3.13/linux/drivers/net/7990.c
- Orig date:
Thu Jun 25 11:03:42 1998
diff -u --recursive --new-file v2.3.13/linux/drivers/net/7990.c linux/drivers/net/7990.c
@@ -101,7 +101,7 @@
#define DEBUG_IRING 0
/* Set up the Lance Rx and Tx rings and the init block */
/* Sets dev->tbusy */
-static void lance_init_ring (struct device *dev)
+static void lance_init_ring (struct net_device *dev)
{
struct lance_private *lp = (struct lance_private *) dev->priv;
volatile struct lance_init_block *ib = lp->init_block;
@@ -219,7 +219,7 @@
return 0;
}
-static int lance_reset (struct device *dev)
+static int lance_reset (struct net_device *dev)
{
struct lance_private *lp = (struct lance_private *)dev->priv;
int status;
@@ -242,7 +242,7 @@
return status;
}
-static int lance_rx (struct device *dev)
+static int lance_rx (struct net_device *dev)
{
struct lance_private *lp = (struct lance_private *) dev->priv;
volatile struct lance_init_block *ib = lp->init_block;
@@ -320,7 +320,7 @@
return 0;
}
-static int lance_tx (struct device *dev)
+static int lance_tx (struct net_device *dev)
{
struct lance_private *lp = (struct lance_private *) dev->priv;
volatile struct lance_init_block *ib = lp->init_block;
@@ -405,7 +405,7 @@
static void lance_interrupt (int irq, void *dev_id, struct pt_regs *regs)
{
- struct device *dev = (struct device *)dev_id;
+ struct net_device *dev = (struct net_device *)dev_id;
struct lance_private *lp = (struct lance_private *)dev->priv;
int csr0;
DECLARE_LL;
@@ -460,7 +460,7 @@
dev->interrupt = 0;
}
-int lance_open (struct device *dev)
+int lance_open (struct net_device *dev)
{
struct lance_private *lp = (struct lance_private *)dev->priv;
DECLARE_LL;
@@ -472,7 +472,7 @@
return lance_reset(dev);
}
-int lance_close (struct device *dev)
+int lance_close (struct net_device *dev)
{
struct lance_private *lp = (struct lance_private *) dev->priv;
DECLARE_LL;
@@ -489,7 +489,7 @@
return 0;
}
-int lance_start_xmit (struct sk_buff *skb, struct device *dev)
+int lance_start_xmit (struct sk_buff *skb, struct net_device *dev)
{
struct lance_private *lp = (struct lance_private *)dev->priv;
volatile struct lance_init_block *ib = lp->init_block;
@@ -560,7 +560,7 @@
return status;
}
-struct net_device_stats *lance_get_stats (struct device *dev)
+struct net_device_stats *lance_get_stats (struct net_device *dev)
{
struct lance_private *lp = (struct lance_private *) dev->priv;
@@ -568,7 +568,7 @@
}
/* taken from the depca driver via a2065.c */
-static void lance_load_multicast (struct device *dev)
+static void lance_load_multicast (struct net_device *dev)
{
struct lance_private *lp = (struct lance_private *) dev->priv;
volatile struct lance_init_block *ib = lp->init_block;
@@ -619,7 +619,7 @@
}
-void lance_set_multicast (struct device *dev)
+void lance_set_multicast (struct net_device *dev)
{
struct lance_private *lp = (struct lance_private *) dev->priv;
volatile struct lance_init_block *ib = lp->init_block;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)