if_an_pci.c (77217) | if_an_pci.c (81221) |
---|---|
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 --- 15 unchanged lines hidden (view full) --- 24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 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 * | 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 --- 15 unchanged lines hidden (view full) --- 24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 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 * $FreeBSD: head/sys/dev/an/if_an_pci.c 77217 2001-05-26 09:27:08Z phk $ | 32 * $FreeBSD: head/sys/dev/an/if_an_pci.c 81221 2001-08-06 23:14:16Z brooks $ |
33 */ 34 35/* 36 * This is a PCI shim for the Aironet PC4500/4800 wireless network 37 * driver. Aironet makes PCMCIA, ISA and PCI versions of these devices, 38 * which all have basically the same interface. The ISA and PCI cards 39 * are actually bridge adapters with PCMCIA cards inserted into them, 40 * however they appear as normal PCI or ISA devices to the host. --- 37 unchanged lines hidden (view full) --- 78#include <net/if_dl.h> 79#include <net/if_media.h> 80 81#include <pci/pcireg.h> 82#include <pci/pcivar.h> 83 84#ifndef lint 85static const char rcsid[] = | 33 */ 34 35/* 36 * This is a PCI shim for the Aironet PC4500/4800 wireless network 37 * driver. Aironet makes PCMCIA, ISA and PCI versions of these devices, 38 * which all have basically the same interface. The ISA and PCI cards 39 * are actually bridge adapters with PCMCIA cards inserted into them, 40 * however they appear as normal PCI or ISA devices to the host. --- 37 unchanged lines hidden (view full) --- 78#include <net/if_dl.h> 79#include <net/if_media.h> 80 81#include <pci/pcireg.h> 82#include <pci/pcivar.h> 83 84#ifndef lint 85static const char rcsid[] = |
86 "$FreeBSD: head/sys/dev/an/if_an_pci.c 77217 2001-05-26 09:27:08Z phk $"; | 86 "$FreeBSD: head/sys/dev/an/if_an_pci.c 81221 2001-08-06 23:14:16Z brooks $"; |
87#endif 88 89#include <dev/an/if_aironet_ieee.h> 90#include <dev/an/if_anreg.h> 91 92struct an_type { 93 u_int16_t an_vid; 94 u_int16_t an_did; 95 char *an_name; 96}; 97 98#define AIRONET_VENDORID 0x14B9 | 87#endif 88 89#include <dev/an/if_aironet_ieee.h> 90#include <dev/an/if_anreg.h> 91 92struct an_type { 93 u_int16_t an_vid; 94 u_int16_t an_did; 95 char *an_name; 96}; 97 98#define AIRONET_VENDORID 0x14B9 |
99#define AIRONET_DEVICEID_35x 0x0350 |
|
99#define AIRONET_DEVICEID_4500 0x4500 100#define AIRONET_DEVICEID_4800 0x4800 101#define AIRONET_DEVICEID_4xxx 0x0001 102#define AN_PCI_PLX_LOIO 0x14 /* PLX chip iobase */ 103#define AN_PCI_LOIO 0x18 /* Aironet iobase */ 104 105static struct an_type an_devs[] = { | 100#define AIRONET_DEVICEID_4500 0x4500 101#define AIRONET_DEVICEID_4800 0x4800 102#define AIRONET_DEVICEID_4xxx 0x0001 103#define AN_PCI_PLX_LOIO 0x14 /* PLX chip iobase */ 104#define AN_PCI_LOIO 0x18 /* Aironet iobase */ 105 106static struct an_type an_devs[] = { |
107 { AIRONET_VENDORID, AIRONET_DEVICEID_35x, "Cisco Aironet 350 Series" }, |
|
106 { AIRONET_VENDORID, AIRONET_DEVICEID_4500, "Aironet PCI4500" }, 107 { AIRONET_VENDORID, AIRONET_DEVICEID_4800, "Aironet PCI4800" }, 108 { AIRONET_VENDORID, AIRONET_DEVICEID_4xxx, "Aironet PCI4500/PCI4800" }, 109 { 0, 0, NULL } 110}; 111 112static int an_probe_pci __P((device_t)); 113static int an_attach_pci __P((device_t)); --- 111 unchanged lines hidden --- | 108 { AIRONET_VENDORID, AIRONET_DEVICEID_4500, "Aironet PCI4500" }, 109 { AIRONET_VENDORID, AIRONET_DEVICEID_4800, "Aironet PCI4800" }, 110 { AIRONET_VENDORID, AIRONET_DEVICEID_4xxx, "Aironet PCI4500/PCI4800" }, 111 { 0, 0, NULL } 112}; 113 114static int an_probe_pci __P((device_t)); 115static int an_attach_pci __P((device_t)); --- 111 unchanged lines hidden --- |