if_ep_eisa.c (139749) | if_ep_eisa.c (140523) |
---|---|
1/*- 2 * Product specific probe and attach routines for: 3 * 3COM 3C579 and 3C509(in eisa config mode) ethernet controllers 4 * 5 * Copyright (c) 1996 Justin T. Gibbs 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 7 unchanged lines hidden (view full) --- 16 * documentation and/or other materials provided with the distribution. 17 * 3. Absolutely no warranty of function or purpose is made by the author 18 * Justin T. Gibbs. 19 * 4. Modifications may be freely made to this file if the above conditions 20 * are met. 21 */ 22 23#include <sys/cdefs.h> | 1/*- 2 * Product specific probe and attach routines for: 3 * 3COM 3C579 and 3C509(in eisa config mode) ethernet controllers 4 * 5 * Copyright (c) 1996 Justin T. Gibbs 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 7 unchanged lines hidden (view full) --- 16 * documentation and/or other materials provided with the distribution. 17 * 3. Absolutely no warranty of function or purpose is made by the author 18 * Justin T. Gibbs. 19 * 4. Modifications may be freely made to this file if the above conditions 20 * are met. 21 */ 22 23#include <sys/cdefs.h> |
24__FBSDID("$FreeBSD: head/sys/dev/ep/if_ep_eisa.c 139749 2005-01-06 01:43:34Z imp $"); | 24__FBSDID("$FreeBSD: head/sys/dev/ep/if_ep_eisa.c 140523 2005-01-20 19:39:33Z imp $"); |
25 26#include <sys/param.h> 27#include <sys/systm.h> 28#include <sys/kernel.h> 29#include <sys/socket.h> 30#include <sys/module.h> 31#include <sys/bus.h> 32 --- 135 unchanged lines hidden (view full) --- 168 return (0); 169} 170 171static int 172ep_eisa_attach(device_t dev) 173{ 174 struct ep_softc *sc = device_get_softc(dev); 175 struct resource *eisa_io = NULL; | 25 26#include <sys/param.h> 27#include <sys/systm.h> 28#include <sys/kernel.h> 29#include <sys/socket.h> 30#include <sys/module.h> 31#include <sys/bus.h> 32 --- 135 unchanged lines hidden (view full) --- 168 return (0); 169} 170 171static int 172ep_eisa_attach(device_t dev) 173{ 174 struct ep_softc *sc = device_get_softc(dev); 175 struct resource *eisa_io = NULL; |
176 u_int32_t eisa_iobase; | 176 uint32_t eisa_iobase; |
177 int irq; 178 int error = 0; 179 int rid; 180 181 rid = 1; 182 eisa_io = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid, RF_ACTIVE); 183 if (!eisa_io) { 184 device_printf(dev, "No I/O space?!\n"); --- 68 unchanged lines hidden --- | 177 int irq; 178 int error = 0; 179 int rid; 180 181 rid = 1; 182 eisa_io = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid, RF_ACTIVE); 183 if (!eisa_io) { 184 device_printf(dev, "No I/O space?!\n"); --- 68 unchanged lines hidden --- |