Lines Matching refs:iobase
315 static int ewrk3_hw_init(struct net_device *dev, u_long iobase);
322 static int DevicePresent(u_long iobase);
326 static int Read_EEPROM(u_long iobase, u_char eaddr);
327 static int Write_EEPROM(short data, u_long iobase, u_char eaddr);
330 static void isa_probe(struct net_device *dev, u_long iobase);
331 static void eisa_probe(struct net_device *dev, u_long iobase);
332 static struct net_device *alloc_device(struct net_device *dev, u_long iobase);
334 static struct net_device *insert_device(struct net_device *dev, u_long iobase, int (*init) (struct …
363 u_long iobase = dev->base_addr; in ewrk3_probe() local
367 if ((iobase == 0) && loading_module) { in ewrk3_probe()
372 isa_probe(dev, iobase); in ewrk3_probe()
373 eisa_probe(dev, iobase); in ewrk3_probe()
375 if ((tmp == num_ewrk3s) && (iobase != 0) && loading_module) { in ewrk3_probe()
377 iobase); in ewrk3_probe()
387 if (iobase == 0) in ewrk3_probe()
395 ewrk3_hw_init(struct net_device *dev, u_long iobase) in ewrk3_hw_init() argument
407 if (iobase > 0x400) in ewrk3_hw_init()
426 tmp.val = (short) Read_EEPROM(iobase, (i >> 1)); in ewrk3_hw_init()
438 dev->base_addr = iobase; in ewrk3_hw_init()
440 if (iobase > 0x400) { in ewrk3_hw_init()
448 printk("%s: %s at %#4lx", dev->name, name, iobase); in ewrk3_hw_init()
450 } else if ((iobase & 0x0fff) == EWRK3_EISA_IO_PORTS) { in ewrk3_hw_init()
453 dev->name, name, iobase, ((iobase >> 12) & 0x0f)); in ewrk3_hw_init()
455 printk("%s: %s at %#4lx", dev->name, name, iobase); in ewrk3_hw_init()
461 DevicePresent(iobase); /* need after EWRK3_INIT */ in ewrk3_hw_init()
553 request_region(iobase, EWRK3_TOTAL_SIZE, lp->adapter_name); in ewrk3_hw_init()
610 release_region(iobase, EWRK3_TOTAL_SIZE); in ewrk3_hw_init()
650 u_long iobase = dev->base_addr; in ewrk3_open() local
714 u_long iobase = dev->base_addr; in ewrk3_init() local
755 u_long iobase = dev->base_addr; in ewrk3_timeout() local
790 u_long iobase = dev->base_addr; in ewrk3_queue_pkt() local
908 u_long iobase; in ewrk3_interrupt() local
912 iobase = dev->base_addr; in ewrk3_interrupt()
959 u_long iobase = dev->base_addr; in ewrk3_rx() local
1087 u_long iobase = dev->base_addr; in ewrk3_tx() local
1123 u_long iobase = dev->base_addr; in ewrk3_close() local
1169 u_long iobase = dev->base_addr; in set_multicast_list() local
1203 u_long iobase = dev->base_addr; in SetMulticastFilter() local
1280 u_long iobase; in isa_probe() local
1288 iobase = EWRK3_IO_BASE; /* Get the first slot address */ in isa_probe()
1291 iobase = ioaddr; in isa_probe()
1295 for (; (i < maxSlots) && (dev != NULL); iobase += EWRK3_IOP_INC, i++) { in isa_probe()
1296 if (!check_region(iobase, EWRK3_TOTAL_SIZE)) { in isa_probe()
1297 if (DevicePresent(iobase) == 0) { in isa_probe()
1298 if ((dev = alloc_device(dev, iobase)) != NULL) { in isa_probe()
1299 if (ewrk3_hw_init(dev, iobase) == 0) { in isa_probe()
1306 printk("%s: region already allocated at 0x%04lx.\n", dev->name, iobase); in isa_probe()
1320 u_long iobase; in eisa_probe() local
1329 iobase = EISA_SLOT_INC; /* Get the first slot address */ in eisa_probe()
1333 iobase = ioaddr; in eisa_probe()
1338 for (i = 1; (i < maxSlots) && (dev != NULL); i++, iobase += EISA_SLOT_INC) { in eisa_probe()
1340 if (!check_region(iobase, EWRK3_TOTAL_SIZE)) { in eisa_probe()
1341 if (DevicePresent(iobase) == 0) { in eisa_probe()
1342 if ((dev = alloc_device(dev, iobase)) != NULL) { in eisa_probe()
1343 if (ewrk3_hw_init(dev, iobase) == 0) { in eisa_probe()
1350 printk("%s: region already allocated at 0x%04lx.\n", dev->name, iobase); in eisa_probe()
1364 static struct net_device * __init alloc_device(struct net_device *dev, u_long iobase) in alloc_device() argument
1376 } else if ((dev->priv == NULL) && (dev->base_addr == iobase)) { in alloc_device()
1399 dev = insert_device(dev, iobase, ewrk3_probe); in alloc_device()
1409 insert_device(struct net_device *dev, u_long iobase, int (*init) (struct net_device *)) in insert_device() argument
1426 dev->base_addr = iobase; /* assign the io address */ in insert_device()
1452 static int Read_EEPROM(u_long iobase, u_char eaddr) in Read_EEPROM() argument
1467 static int Write_EEPROM(short data, u_long iobase, u_char eaddr) in Write_EEPROM() argument
1519 static int __init DevicePresent(u_long iobase) in DevicePresent() argument
1561 u_long iobase = dev->base_addr; in get_hw_addr() local
1643 u_long iobase = dev->base_addr; in ewrk3_ethtool_ioctl() local
1830 u_long iobase = dev->base_addr; in ewrk3_ioctl() local
2021 tmp->val[i] = (short) Read_EEPROM(iobase, i); in ewrk3_ioctl()
2043 Write_EEPROM(tmp->val[i], iobase, i); in ewrk3_ioctl()