if_ep_eisa.c (121225) | if_ep_eisa.c (121492) |
---|---|
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 121225 2003-10-18 20:44:23Z bms $"); | 24__FBSDID("$FreeBSD: head/sys/dev/ep/if_ep_eisa.c 121492 2003-10-25 04:09:49Z imp $"); |
25 26#include <sys/cdefs.h> | 25 26#include <sys/cdefs.h> |
27__FBSDID("$FreeBSD: head/sys/dev/ep/if_ep_eisa.c 121225 2003-10-18 20:44:23Z bms $"); | 27__FBSDID("$FreeBSD: head/sys/dev/ep/if_ep_eisa.c 121492 2003-10-25 04:09:49Z imp $"); |
28 29#include <sys/param.h> 30#include <sys/systm.h> 31#include <sys/kernel.h> 32#include <sys/socket.h> 33#include <sys/module.h> 34#include <sys/bus.h> 35 --- 180 unchanged lines hidden (view full) --- 216 217 GO_WINDOW(0); 218 SET_IRQ(sc, irq); 219 220 if ((error = ep_attach(sc))) { 221 device_printf(dev, "ep_attach() failed! (%d)\n", error); 222 goto bad; 223 } | 28 29#include <sys/param.h> 30#include <sys/systm.h> 31#include <sys/kernel.h> 32#include <sys/socket.h> 33#include <sys/module.h> 34#include <sys/bus.h> 35 --- 180 unchanged lines hidden (view full) --- 216 217 GO_WINDOW(0); 218 SET_IRQ(sc, irq); 219 220 if ((error = ep_attach(sc))) { 221 device_printf(dev, "ep_attach() failed! (%d)\n", error); 222 goto bad; 223 } |
224 if ((error = bus_setup_intr(dev, sc->irq, INTR_TYPE_NET, ep_intr, | 224 if ((error = bus_setup_intr(dev, sc->irq, INTR_TYPE_NET | INTR_MPSAFE, ep_intr, |
225 sc, &sc->ep_intrhand))) { 226 device_printf(dev, "bus_setup_intr() failed! (%d)\n", error); 227 goto bad; 228 } 229 return (0); 230 231bad: 232 if (eisa_io) --- 24 unchanged lines hidden --- | 225 sc, &sc->ep_intrhand))) { 226 device_printf(dev, "bus_setup_intr() failed! (%d)\n", error); 227 goto bad; 228 } 229 return (0); 230 231bad: 232 if (eisa_io) --- 24 unchanged lines hidden --- |