aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ne3210.c
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2006-09-13 13:24:59 -0400
committerJeff Garzik <jeff@garzik.org>2006-09-13 13:24:59 -0400
commit6aa20a2235535605db6d6d2bd850298b2fe7f31e (patch)
treedf0b855043407b831d57f2f2c271f8aab48444f4 /drivers/net/ne3210.c
parent7a291083225af6e22ffaa46b3d91cfc1a1ccaab4 (diff)
drivers/net: Trim trailing whitespace
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/ne3210.c')
-rw-r--r--drivers/net/ne3210.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/net/ne3210.c b/drivers/net/ne3210.c
index 73501d846588..0fa8e4d22769 100644
--- a/drivers/net/ne3210.c
+++ b/drivers/net/ne3210.c
@@ -14,10 +14,10 @@
14 2) The existing myriad of other Linux 8390 drivers by Donald Becker. 14 2) The existing myriad of other Linux 8390 drivers by Donald Becker.
15 3) Info for getting IRQ and sh-mem gleaned from the EISA cfg file 15 3) Info for getting IRQ and sh-mem gleaned from the EISA cfg file
16 16
17 The NE3210 is an EISA shared memory NS8390 implementation. Shared 17 The NE3210 is an EISA shared memory NS8390 implementation. Shared
18 memory address > 1MB should work with this driver. 18 memory address > 1MB should work with this driver.
19 19
20 Note that the .cfg file (3/11/93, v1.0) has AUI and BNC switched 20 Note that the .cfg file (3/11/93, v1.0) has AUI and BNC switched
21 around (or perhaps there are some defective/backwards cards ???) 21 around (or perhaps there are some defective/backwards cards ???)
22 22
23 This driver WILL NOT WORK FOR THE NE3200 - it is completely different 23 This driver WILL NOT WORK FOR THE NE3200 - it is completely different
@@ -133,7 +133,7 @@ static int __init ne3210_eisa_probe (struct device *device)
133 edev->slot, ifmap[port_index]); 133 edev->slot, ifmap[port_index]);
134 for(i = 0; i < ETHER_ADDR_LEN; i++) 134 for(i = 0; i < ETHER_ADDR_LEN; i++)
135 printk(" %02x", (dev->dev_addr[i] = inb(ioaddr + NE3210_SA_PROM + i))); 135 printk(" %02x", (dev->dev_addr[i] = inb(ioaddr + NE3210_SA_PROM + i)));
136 136
137 137
138 /* Snarf the interrupt now. CFG file has them all listed as `edge' with share=NO */ 138 /* Snarf the interrupt now. CFG file has them all listed as `edge' with share=NO */
139 dev->irq = irq_map[(inb(ioaddr + NE3210_CFG2) >> 3) & 0x07]; 139 dev->irq = irq_map[(inb(ioaddr + NE3210_CFG2) >> 3) & 0x07];
@@ -161,13 +161,13 @@ static int __init ne3210_eisa_probe (struct device *device)
161 goto out3; 161 goto out3;
162 } 162 }
163 } 163 }
164 164
165 if (!request_mem_region (phys_mem, NE3210_STOP_PG*0x100, DRV_NAME)) { 165 if (!request_mem_region (phys_mem, NE3210_STOP_PG*0x100, DRV_NAME)) {
166 printk ("ne3210.c: Unable to request shared memory at physical address %#lx\n", 166 printk ("ne3210.c: Unable to request shared memory at physical address %#lx\n",
167 phys_mem); 167 phys_mem);
168 goto out3; 168 goto out3;
169 } 169 }
170 170
171 printk("%dkB memory at physical address %#lx\n", 171 printk("%dkB memory at physical address %#lx\n",
172 NE3210_STOP_PG/4, phys_mem); 172 NE3210_STOP_PG/4, phys_mem);
173 173
@@ -210,7 +210,7 @@ static int __init ne3210_eisa_probe (struct device *device)
210 210
211 if ((retval = register_netdev (dev))) 211 if ((retval = register_netdev (dev)))
212 goto out5; 212 goto out5;
213 213
214 NS8390_init(dev, 0); 214 NS8390_init(dev, 0);
215 return 0; 215 return 0;
216 216
@@ -226,7 +226,7 @@ static int __init ne3210_eisa_probe (struct device *device)
226 release_region (ioaddr, NE3210_IO_EXTENT); 226 release_region (ioaddr, NE3210_IO_EXTENT);
227 out: 227 out:
228 free_netdev (dev); 228 free_netdev (dev);
229 229
230 return retval; 230 return retval;
231} 231}
232 232
@@ -289,7 +289,7 @@ ne3210_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr, int ring_
289 hdr->count = (hdr->count + 3) & ~3; /* Round up allocation. */ 289 hdr->count = (hdr->count + 3) & ~3; /* Round up allocation. */
290} 290}
291 291
292/* 292/*
293 * Block input and output are easy on shared memory ethercards, the only 293 * Block input and output are easy on shared memory ethercards, the only
294 * complication is when the ring buffer wraps. The count will already 294 * complication is when the ring buffer wraps. The count will already
295 * be rounded up to a doubleword value via ne3210_get_8390_hdr() above. 295 * be rounded up to a doubleword value via ne3210_get_8390_hdr() above.