if_an_pci.c (123978) | if_an_pci.c (143163) |
---|---|
1/*- 2 * Copyright (c) 1997, 1998, 1999 3 * Bill Paul <wpaul@ctr.columbia.edu>. 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 --- 17 unchanged lines hidden (view full) --- 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 */ 32 33#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1997, 1998, 1999 3 * Bill Paul <wpaul@ctr.columbia.edu>. 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 --- 17 unchanged lines hidden (view full) --- 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 */ 32 33#include <sys/cdefs.h> |
34__FBSDID("$FreeBSD: head/sys/dev/an/if_an_pci.c 123978 2003-12-30 01:07:12Z ambrisko $"); | 34__FBSDID("$FreeBSD: head/sys/dev/an/if_an_pci.c 143163 2005-03-05 19:06:12Z imp $"); |
35 36/* 37 * This is a PCI shim for the Aironet PC4500/4800 wireless network 38 * driver. Aironet makes PCMCIA, ISA and PCI versions of these devices, 39 * which all have basically the same interface. The ISA and PCI cards 40 * are actually bridge adapters with PCMCIA cards inserted into them, 41 * however they appear as normal PCI or ISA devices to the host. 42 * --- 77 unchanged lines hidden (view full) --- 120 struct an_type *t; 121 122 t = an_devs; 123 124 while (t->an_name != NULL) { 125 if (pci_get_vendor(dev) == t->an_vid && 126 pci_get_device(dev) == t->an_did) { 127 device_set_desc(dev, t->an_name); | 35 36/* 37 * This is a PCI shim for the Aironet PC4500/4800 wireless network 38 * driver. Aironet makes PCMCIA, ISA and PCI versions of these devices, 39 * which all have basically the same interface. The ISA and PCI cards 40 * are actually bridge adapters with PCMCIA cards inserted into them, 41 * however they appear as normal PCI or ISA devices to the host. 42 * --- 77 unchanged lines hidden (view full) --- 120 struct an_type *t; 121 122 t = an_devs; 123 124 while (t->an_name != NULL) { 125 if (pci_get_vendor(dev) == t->an_vid && 126 pci_get_device(dev) == t->an_did) { 127 device_set_desc(dev, t->an_name); |
128 return(0); | 128 return(BUS_PROBE_DEFAULT); |
129 } 130 t++; 131 } 132 133 if (pci_get_vendor(dev) == AIRONET_VENDORID && 134 pci_get_device(dev) == AIRONET_DEVICEID_MPI350) { 135 device_set_desc(dev, "Cisco Aironet MPI350"); | 129 } 130 t++; 131 } 132 133 if (pci_get_vendor(dev) == AIRONET_VENDORID && 134 pci_get_device(dev) == AIRONET_DEVICEID_MPI350) { 135 device_set_desc(dev, "Cisco Aironet MPI350"); |
136 return(0); | 136 return(BUS_PROBE_DEFAULT); |
137 } 138 139 return(ENXIO); 140} 141 142static int 143an_attach_pci(dev) 144 device_t dev; --- 144 unchanged lines hidden --- | 137 } 138 139 return(ENXIO); 140} 141 142static int 143an_attach_pci(dev) 144 device_t dev; --- 144 unchanged lines hidden --- |