summaryrefslogtreecommitdiffstats
path: root/drivers/net/3c503.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1999-10-09 00:00:47 +0000
committerRalf Baechle <ralf@linux-mips.org>1999-10-09 00:00:47 +0000
commitd6434e1042f3b0a6dfe1b1f615af369486f9b1fa (patch)
treee2be02f33984c48ec019c654051d27964e42c441 /drivers/net/3c503.c
parent609d1e803baf519487233b765eb487f9ec227a18 (diff)
Merge with 2.3.19.
Diffstat (limited to 'drivers/net/3c503.c')
-rw-r--r--drivers/net/3c503.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/drivers/net/3c503.c b/drivers/net/3c503.c
index 3c0ada25e..56769686b 100644
--- a/drivers/net/3c503.c
+++ b/drivers/net/3c503.c
@@ -52,9 +52,9 @@ static const char *version =
#include "3c503.h"
#define WRD_COUNT 4
-int el2_probe(struct device *dev);
-int el2_pio_probe(struct device *dev);
-int el2_probe1(struct device *dev, int ioaddr);
+int el2_probe(struct net_device *dev);
+int el2_pio_probe(struct net_device *dev);
+int el2_probe1(struct net_device *dev, int ioaddr);
/* A zero-terminated list of I/O addresses to be probed in PIO mode. */
static unsigned int netcard_portlist[] __initdata =
@@ -71,15 +71,15 @@ struct netdev_entry el2pio_drv =
{"3c503pio", el2_pioprobe1, EL1_IO_EXTENT, netcard_portlist};
#endif
-static int el2_open(struct device *dev);
-static int el2_close(struct device *dev);
-static void el2_reset_8390(struct device *dev);
-static void el2_init_card(struct device *dev);
-static void el2_block_output(struct device *dev, int count,
+static int el2_open(struct net_device *dev);
+static int el2_close(struct net_device *dev);
+static void el2_reset_8390(struct net_device *dev);
+static void el2_init_card(struct net_device *dev);
+static void el2_block_output(struct net_device *dev, int count,
const unsigned char *buf, int start_page);
-static void el2_block_input(struct device *dev, int count, struct sk_buff *skb,
+static void el2_block_input(struct net_device *dev, int count, struct sk_buff *skb,
int ring_offset);
-static void el2_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr,
+static void el2_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr,
int ring_page);
@@ -91,7 +91,7 @@ static void el2_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr,
ethercard jumpered to programmed-I/O mode.
*/
int __init
-el2_probe(struct device *dev)
+el2_probe(struct net_device *dev)
{
int *addr, addrs[] = { 0xddffe, 0xd9ffe, 0xcdffe, 0xc9ffe, 0};
int base_addr = dev->base_addr;
@@ -126,7 +126,7 @@ el2_probe(struct device *dev)
/* Try all of the locations that aren't obviously empty. This touches
a lot of locations, and is much riskier than the code above. */
int __init
-el2_pio_probe(struct device *dev)
+el2_pio_probe(struct net_device *dev)
{
int i;
int base_addr = dev ? dev->base_addr : 0;
@@ -152,7 +152,7 @@ el2_pio_probe(struct device *dev)
returning non-zero on success. If found, set the station
address and memory parameters in DEVICE. */
int __init
-el2_probe1(struct device *dev, int ioaddr)
+el2_probe1(struct net_device *dev, int ioaddr)
{
int i, iobase_reg, membase_reg, saved_406, wordlength;
static unsigned version_printed = 0;
@@ -334,7 +334,7 @@ el2_probe1(struct device *dev, int ioaddr)
}
static int
-el2_open(struct device *dev)
+el2_open(struct net_device *dev)
{
if (dev->irq < 2) {
@@ -370,7 +370,7 @@ el2_open(struct device *dev)
}
static int
-el2_close(struct device *dev)
+el2_close(struct net_device *dev)
{
free_irq(dev->irq, dev);
dev->irq = ei_status.saved_irq;
@@ -386,7 +386,7 @@ el2_close(struct device *dev)
Bad ring buffer packet header
*/
static void
-el2_reset_8390(struct device *dev)
+el2_reset_8390(struct net_device *dev)
{
if (ei_debug > 1) {
printk("%s: Resetting the 3c503 board...", dev->name);
@@ -402,7 +402,7 @@ el2_reset_8390(struct device *dev)
/* Initialize the 3c503 GA registers after a reset. */
static void
-el2_init_card(struct device *dev)
+el2_init_card(struct net_device *dev)
{
/* Unmap the station PROM and select the DIX or BNC connector. */
outb_p(ei_status.interface_num==0 ? ECNTRL_THIN : ECNTRL_AUI, E33G_CNTRL);
@@ -434,7 +434,7 @@ el2_init_card(struct device *dev)
* out through the ASIC FIFO.
*/
static void
-el2_block_output(struct device *dev, int count,
+el2_block_output(struct net_device *dev, int count,
const unsigned char *buf, int start_page)
{
unsigned short int *wrd;
@@ -507,7 +507,7 @@ el2_block_output(struct device *dev, int count,
/* Read the 4 byte, page aligned 8390 specific header. */
static void
-el2_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, int ring_page)
+el2_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr, int ring_page)
{
int boguscount;
unsigned long hdr_start = dev->mem_start + ((ring_page - EL2_MB1_START_PG)<<8);
@@ -546,7 +546,7 @@ el2_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, int ring_page)
static void
-el2_block_input(struct device *dev, int count, struct sk_buff *skb, int ring_offset)
+el2_block_input(struct net_device *dev, int count, struct sk_buff *skb, int ring_offset)
{
int boguscount = 0;
unsigned short int *buf;
@@ -625,7 +625,7 @@ el2_block_input(struct device *dev, int count, struct sk_buff *skb, int ring_off
#define NAMELEN 8 /* #of chars for storing dev->name */
static char namelist[NAMELEN * MAX_EL2_CARDS] = { 0, };
-static struct device dev_el2[MAX_EL2_CARDS] = {
+static struct net_device dev_el2[MAX_EL2_CARDS] = {
{
NULL, /* assign a chunk of namelist[] below */
0, 0, 0, 0,
@@ -649,7 +649,7 @@ init_module(void)
int this_dev, found = 0;
for (this_dev = 0; this_dev < MAX_EL2_CARDS; this_dev++) {
- struct device *dev = &dev_el2[this_dev];
+ struct net_device *dev = &dev_el2[this_dev];
dev->name = namelist+(NAMELEN*this_dev);
dev->irq = irq[this_dev];
dev->base_addr = io[this_dev];
@@ -679,7 +679,7 @@ cleanup_module(void)
int this_dev;
for (this_dev = 0; this_dev < MAX_EL2_CARDS; this_dev++) {
- struct device *dev = &dev_el2[this_dev];
+ struct net_device *dev = &dev_el2[this_dev];
if (dev->priv != NULL) {
void *priv = dev->priv;
/* NB: el2_close() handles free_irq */