if_ep_mca.c (121492) | if_ep_mca.c (121588) |
---|---|
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 121492 2003-10-25 04:09:49Z imp $"); | 28__FBSDID("$FreeBSD: head/sys/dev/ep/if_ep_mca.c 121588 2003-10-26 22:28:20Z imp $"); |
29 30#include <sys/cdefs.h> | 29 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: head/sys/dev/ep/if_ep_mca.c 121492 2003-10-25 04:09:49Z imp $"); | 31__FBSDID("$FreeBSD: head/sys/dev/ep/if_ep_mca.c 121588 2003-10-26 22:28:20Z 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> --- 83 unchanged lines hidden (view full) --- 123 if ((error = ep_alloc(dev))) { 124 device_printf(dev, "ep_alloc() failed! (%d)\n", error); 125 goto bad; 126 } 127 sc->stat = F_ACCESS_32_BITS; 128 129 ep_get_media(sc); 130 | 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> --- 83 unchanged lines hidden (view full) --- 123 if ((error = ep_alloc(dev))) { 124 device_printf(dev, "ep_alloc() failed! (%d)\n", error); 125 goto bad; 126 } 127 sc->stat = F_ACCESS_32_BITS; 128 129 ep_get_media(sc); 130 |
131 GO_WINDOW(0); | 131 GO_WINDOW(sc, 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 | INTR_MPSAFE, ep_intr, 139 sc, &sc->ep_intrhand))) { --- 27 unchanged lines hidden --- | 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 | INTR_MPSAFE, ep_intr, 139 sc, &sc->ep_intrhand))) { --- 27 unchanged lines hidden --- |