if_fpa.c (46813) | if_fpa.c (50107) |
---|---|
1/*- 2 * Copyright (c) 1995, 1996 Matt Thomas <matt@3am-software.com> 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 --- 7 unchanged lines hidden (view full) --- 16 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 17 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 18 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 19 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 20 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * | 1/*- 2 * Copyright (c) 1995, 1996 Matt Thomas <matt@3am-software.com> 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 --- 7 unchanged lines hidden (view full) --- 16 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 17 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 18 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 19 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 20 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * |
24 * $Id: if_fpa.c,v 1.9 1999/04/24 20:14:00 peter Exp $ | 24 * $Id: if_fpa.c,v 1.10 1999/05/09 17:06:54 peter Exp $ |
25 * 26 */ 27 28/* 29 * DEC PDQ FDDI Controller; code for BSD derived operating systems 30 * 31 * This module supports the DEC DEFPA PCI FDDI Controller 32 */ --- 90 unchanged lines hidden (view full) --- 123#elif defined(__bsdi__) || defined(__NetBSD__) 124 (void) pdq_interrupt(sc->sc_pdq); 125 return 1; 126#endif 127} 128#endif /* __FreeBSD && BSD */ 129 130#if defined(__FreeBSD__) | 25 * 26 */ 27 28/* 29 * DEC PDQ FDDI Controller; code for BSD derived operating systems 30 * 31 * This module supports the DEC DEFPA PCI FDDI Controller 32 */ --- 90 unchanged lines hidden (view full) --- 123#elif defined(__bsdi__) || defined(__NetBSD__) 124 (void) pdq_interrupt(sc->sc_pdq); 125 return 1; 126#endif 127} 128#endif /* __FreeBSD && BSD */ 129 130#if defined(__FreeBSD__) |
131static void pdq_pci_shutdown(int, void *); | 131static void pdq_pci_shutdown(void *, int); |
132 133/* 134 * This is the PCI configuration support. Since the PDQ is available 135 * on both EISA and PCI boards, one must be careful in how defines the 136 * PDQ in the config file. 137 */ 138static const char * 139pdq_pci_probe( --- 47 unchanged lines hidden (view full) --- 187 if (sc->sc_pdq == NULL) { 188 free((void *) sc, M_DEVBUF); 189 return; 190 } 191 bcopy((caddr_t) sc->sc_pdq->pdq_hwaddr.lanaddr_bytes, sc->sc_ac.ac_enaddr, 6); 192 pdqs_pci[unit] = sc; 193 pdq_ifattach(sc, pdq_pci_ifwatchdog); 194 pci_map_int(config_id, pdq_pci_ifintr, (void*) sc, &net_imask); | 132 133/* 134 * This is the PCI configuration support. Since the PDQ is available 135 * on both EISA and PCI boards, one must be careful in how defines the 136 * PDQ in the config file. 137 */ 138static const char * 139pdq_pci_probe( --- 47 unchanged lines hidden (view full) --- 187 if (sc->sc_pdq == NULL) { 188 free((void *) sc, M_DEVBUF); 189 return; 190 } 191 bcopy((caddr_t) sc->sc_pdq->pdq_hwaddr.lanaddr_bytes, sc->sc_ac.ac_enaddr, 6); 192 pdqs_pci[unit] = sc; 193 pdq_ifattach(sc, pdq_pci_ifwatchdog); 194 pci_map_int(config_id, pdq_pci_ifintr, (void*) sc, &net_imask); |
195 at_shutdown(pdq_pci_shutdown, (void *) sc, SHUTDOWN_POST_SYNC); | 195 EVENTHANDLER_REGISTER(shutdown_post_sync, pdq_pci_shutdown, sc, 196 SHUTDOWN_PRI_DEFAULT); |
196 197} 198 199static void 200pdq_pci_shutdown( | 197 198} 199 200static void 201pdq_pci_shutdown( |
201 int howto, 202 void *sc) | 202 void *sc, 203 int howto) |
203{ 204 pdq_hwreset(((pdq_softc_t *)sc)->sc_pdq); 205} 206 207static u_long pdq_pci_count; 208 209static struct pci_device fpadevice = { 210 "fpa", --- 229 unchanged lines hidden --- | 204{ 205 pdq_hwreset(((pdq_softc_t *)sc)->sc_pdq); 206} 207 208static u_long pdq_pci_count; 209 210static struct pci_device fpadevice = { 211 "fpa", --- 229 unchanged lines hidden --- |