if_ep_mca.c (121241) | if_ep_mca.c (121492) |
---|---|
1/*- 2 * Copyright (c) 1999 Matthew N. Dodd <winter@jurai.net> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1999 Matthew N. Dodd <winter@jurai.net> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sys/dev/ep/if_ep_mca.c 121241 2003-10-19 09:31:07Z bms $"); | 28__FBSDID("$FreeBSD: head/sys/dev/ep/if_ep_mca.c 121492 2003-10-25 04:09:49Z imp $"); |
29 30#include <sys/cdefs.h> | 29 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: head/sys/dev/ep/if_ep_mca.c 121241 2003-10-19 09:31:07Z bms $"); | 31__FBSDID("$FreeBSD: head/sys/dev/ep/if_ep_mca.c 121492 2003-10-25 04:09:49Z imp $"); |
32 33#include <sys/param.h> 34#include <sys/kernel.h> 35#include <sys/socket.h> 36#include <sys/module.h> 37#include <sys/bus.h> 38 39#include <machine/bus.h> --- 90 unchanged lines hidden (view full) --- 130 131 GO_WINDOW(0); 132 SET_IRQ(sc, rman_get_start(sc->irq)); 133 134 if ((error = ep_attach(sc))) { 135 device_printf(dev, "ep_attach() failed! (%d)\n", error); 136 goto bad; 137 } | 32 33#include <sys/param.h> 34#include <sys/kernel.h> 35#include <sys/socket.h> 36#include <sys/module.h> 37#include <sys/bus.h> 38 39#include <machine/bus.h> --- 90 unchanged lines hidden (view full) --- 130 131 GO_WINDOW(0); 132 SET_IRQ(sc, rman_get_start(sc->irq)); 133 134 if ((error = ep_attach(sc))) { 135 device_printf(dev, "ep_attach() failed! (%d)\n", error); 136 goto bad; 137 } |
138 if ((error = bus_setup_intr(dev, sc->irq, INTR_TYPE_NET, ep_intr, | 138 if ((error = bus_setup_intr(dev, sc->irq, INTR_TYPE_NET | INTR_MPSAFE, ep_intr, |
139 sc, &sc->ep_intrhand))) { 140 device_printf(dev, "bus_setup_intr() failed! (%d)\n", error); 141 goto bad; 142 } 143 return (0); 144bad: 145 ep_free(dev); 146 return (error); --- 20 unchanged lines hidden --- | 139 sc, &sc->ep_intrhand))) { 140 device_printf(dev, "bus_setup_intr() failed! (%d)\n", error); 141 goto bad; 142 } 143 return (0); 144bad: 145 ep_free(dev); 146 return (error); --- 20 unchanged lines hidden --- |