if_ral_pci.c (158651) | if_ral_pci.c (166901) |
---|---|
1/* $FreeBSD: head/sys/dev/ral/if_ral_pci.c 158651 2006-05-16 14:37:58Z phk $ */ | 1/* $FreeBSD: head/sys/dev/ral/if_ral_pci.c 166901 2007-02-23 12:19:07Z piso $ */ |
2 3/*- 4 * Copyright (c) 2005, 2006 5 * Damien Bergamini <damien.bergamini@free.fr> 6 * 7 * Permission to use, copy, modify, and distribute this software for any 8 * purpose with or without fee is hereby granted, provided that the above 9 * copyright notice and this permission notice appear in all copies. 10 * 11 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 12 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 13 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 14 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 15 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 16 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 17 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 18 */ 19 20#include <sys/cdefs.h> | 2 3/*- 4 * Copyright (c) 2005, 2006 5 * Damien Bergamini <damien.bergamini@free.fr> 6 * 7 * Permission to use, copy, modify, and distribute this software for any 8 * purpose with or without fee is hereby granted, provided that the above 9 * copyright notice and this permission notice appear in all copies. 10 * 11 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 12 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 13 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 14 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 15 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 16 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 17 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 18 */ 19 20#include <sys/cdefs.h> |
21__FBSDID("$FreeBSD: head/sys/dev/ral/if_ral_pci.c 158651 2006-05-16 14:37:58Z phk $"); | 21__FBSDID("$FreeBSD: head/sys/dev/ral/if_ral_pci.c 166901 2007-02-23 12:19:07Z piso $"); |
22 23/* 24 * PCI/Cardbus front-end for the Ralink RT2560/RT2561/RT2561S/RT2661 driver. 25 */ 26 27#include <sys/param.h> 28#include <sys/sysctl.h> 29#include <sys/sockio.h> --- 174 unchanged lines hidden (view full) --- 204 error = (*psc->sc_opns->attach)(dev, pci_get_device(dev)); 205 if (error != 0) 206 return error; 207 208 /* 209 * Hook our interrupt after all initialization is complete. 210 */ 211 error = bus_setup_intr(dev, psc->irq, INTR_TYPE_NET | INTR_MPSAFE, | 22 23/* 24 * PCI/Cardbus front-end for the Ralink RT2560/RT2561/RT2561S/RT2661 driver. 25 */ 26 27#include <sys/param.h> 28#include <sys/sysctl.h> 29#include <sys/sockio.h> --- 174 unchanged lines hidden (view full) --- 204 error = (*psc->sc_opns->attach)(dev, pci_get_device(dev)); 205 if (error != 0) 206 return error; 207 208 /* 209 * Hook our interrupt after all initialization is complete. 210 */ 211 error = bus_setup_intr(dev, psc->irq, INTR_TYPE_NET | INTR_MPSAFE, |
212 psc->sc_opns->intr, psc, &psc->sc_ih); | 212 NULL, psc->sc_opns->intr, psc, &psc->sc_ih); |
213 if (error != 0) { 214 device_printf(dev, "could not set up interrupt\n"); 215 return error; 216 } 217 218 return 0; 219} 220 --- 45 unchanged lines hidden --- | 213 if (error != 0) { 214 device_printf(dev, "could not set up interrupt\n"); 215 return error; 216 } 217 218 return 0; 219} 220 --- 45 unchanged lines hidden --- |