if_ed_cbus.c (166901) | if_ed_cbus.c (190794) |
---|---|
1/*- 2 * Copyright (c) 1995, David Greenman 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 --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * | 1/*- 2 * Copyright (c) 1995, David Greenman 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 --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * |
27 * $FreeBSD: head/sys/dev/ed/if_ed_cbus.c 166901 2007-02-23 12:19:07Z piso $ | 27 * $FreeBSD: head/sys/dev/ed/if_ed_cbus.c 190794 2009-04-07 05:41:38Z imp $ |
28 */ 29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/socket.h> 33#include <sys/kernel.h> 34 35#include <sys/module.h> --- 207 unchanged lines hidden (view full) --- 243 ed_alloc_irq(dev, sc->irq_rid, 0); 244 245 error = bus_setup_intr(dev, sc->irq_res, INTR_TYPE_NET | INTR_MPSAFE, 246 NULL, edintr, sc, &sc->irq_handle); 247 if (error) { 248 ed_release_resources(dev); 249 return (error); 250 } | 28 */ 29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/socket.h> 33#include <sys/kernel.h> 34 35#include <sys/module.h> --- 207 unchanged lines hidden (view full) --- 243 ed_alloc_irq(dev, sc->irq_rid, 0); 244 245 error = bus_setup_intr(dev, sc->irq_res, INTR_TYPE_NET | INTR_MPSAFE, 246 NULL, edintr, sc, &sc->irq_handle); 247 if (error) { 248 ed_release_resources(dev); 249 return (error); 250 } |
251 | 251 if (sc->sc_media_ioctl == NULL) 252 ed_gen_ifmedia_init(sc); |
252 return ed_attach(dev); 253} 254 255/* 256 * Interrupt conversion table for EtherEZ98 257 */ 258static uint16_t ed_EZ98_intr_val[] = { 259 0, --- 1367 unchanged lines hidden --- | 253 return ed_attach(dev); 254} 255 256/* 257 * Interrupt conversion table for EtherEZ98 258 */ 259static uint16_t ed_EZ98_intr_val[] = { 260 0, --- 1367 unchanged lines hidden --- |