if_fpa.c (166914) | if_fpa.c (194023) |
---|---|
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 --- 11 unchanged lines hidden (view full) --- 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 * 25 */ 26 27#include <sys/cdefs.h> | 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 --- 11 unchanged lines hidden (view full) --- 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 * 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sys/dev/pdq/if_fpa.c 166914 2007-02-23 19:34:52Z imp $"); | 28__FBSDID("$FreeBSD: head/sys/dev/pdq/if_fpa.c 194023 2009-06-11 17:14:28Z avg $"); |
29 30/* 31 * DEC PDQ FDDI Controller; code for BSD derived operating systems 32 * 33 * This module supports the DEC DEFPA PCI FDDI Controller 34 */ 35 36#include <sys/param.h> --- 25 unchanged lines hidden (view full) --- 62 63#define PCI_CFLT 0x0C /* Configuration Latency */ 64#define PCI_CBMA 0x10 /* Configuration Base Memory Address */ 65#define PCI_CBIO 0x14 /* Configuration Base I/O Address */ 66 67static int pdq_pci_probe (device_t); 68static int pdq_pci_attach (device_t); 69static int pdq_pci_detach (device_t); | 29 30/* 31 * DEC PDQ FDDI Controller; code for BSD derived operating systems 32 * 33 * This module supports the DEC DEFPA PCI FDDI Controller 34 */ 35 36#include <sys/param.h> --- 25 unchanged lines hidden (view full) --- 62 63#define PCI_CFLT 0x0C /* Configuration Latency */ 64#define PCI_CBMA 0x10 /* Configuration Base Memory Address */ 65#define PCI_CBIO 0x14 /* Configuration Base I/O Address */ 66 67static int pdq_pci_probe (device_t); 68static int pdq_pci_attach (device_t); 69static int pdq_pci_detach (device_t); |
70static void pdq_pci_shutdown (device_t); | 70static int pdq_pci_shutdown (device_t); |
71static void pdq_pci_ifintr (void *); 72 73static void 74pdq_pci_ifintr(void *arg) 75{ 76 device_t dev; 77 pdq_softc_t *sc; 78 --- 101 unchanged lines hidden (view full) --- 180 pdq_softc_t *sc; 181 182 sc = device_get_softc(dev); 183 pdq_ifdetach(sc); 184 185 return (0); 186} 187 | 71static void pdq_pci_ifintr (void *); 72 73static void 74pdq_pci_ifintr(void *arg) 75{ 76 device_t dev; 77 pdq_softc_t *sc; 78 --- 101 unchanged lines hidden (view full) --- 180 pdq_softc_t *sc; 181 182 sc = device_get_softc(dev); 183 pdq_ifdetach(sc); 184 185 return (0); 186} 187 |
188static void | 188static int |
189pdq_pci_shutdown(device_t dev) 190{ 191 pdq_softc_t *sc; 192 193 sc = device_get_softc(dev); 194 pdq_hwreset(sc->sc_pdq); 195 | 189pdq_pci_shutdown(device_t dev) 190{ 191 pdq_softc_t *sc; 192 193 sc = device_get_softc(dev); 194 pdq_hwreset(sc->sc_pdq); 195 |
196 return; | 196 return (0); |
197} 198 199static device_method_t pdq_pci_methods[] = { 200 /* Device interface */ 201 DEVMETHOD(device_probe, pdq_pci_probe), 202 DEVMETHOD(device_attach, pdq_pci_attach), 203 DEVMETHOD(device_detach, pdq_pci_detach), 204 DEVMETHOD(device_shutdown, pdq_pci_shutdown), --- 13 unchanged lines hidden --- | 197} 198 199static device_method_t pdq_pci_methods[] = { 200 /* Device interface */ 201 DEVMETHOD(device_probe, pdq_pci_probe), 202 DEVMETHOD(device_attach, pdq_pci_attach), 203 DEVMETHOD(device_detach, pdq_pci_detach), 204 DEVMETHOD(device_shutdown, pdq_pci_shutdown), --- 13 unchanged lines hidden --- |