Add a bunch of wireless cards for NEWBUS from NetBSD's list. I'm
trying something new with the macros here and will likely try to get them adopted by NetBSD as well as moving them to other drivers. They make the list more compact and easier to read, the price of rigid to a schema for generating them (of course there are those that would argue this isn't bad). Obtained from: NetBSD's if_wi_pcmcia.c 1.9
This commit is contained in:
parent
3dfff24a19
commit
81f645ca10
@ -230,10 +230,38 @@ DRIVER_MODULE(if_wi, pccard, wi_pccard_driver, wi_devclass, 0, 0);
|
||||
DRIVER_MODULE(if_wi, pci, wi_pci_driver, wi_devclass, 0, 0);
|
||||
#endif
|
||||
|
||||
#define S(a, b) PCMCIA_STR_ ## a ## _ ## b
|
||||
#define P(a, b) PCMCIA_PRODUCT_ ## a ## _ ## b
|
||||
#define C(a, b) PCMCIA_CIS_ ## a ## _ ## b
|
||||
#define Card(v, p, f) { S(v, p), PCMCIA_VENDOR_ ## v, P(v, p), f, C(v, p) }
|
||||
#define Card2(v1, p1, p2, f) \
|
||||
{ PCMCIA_STR_ ## p2, PCMCIA_VENDOR_ ## v1, P(v1, p1), f, \
|
||||
PCMCIA_CIS_ ## p2}
|
||||
|
||||
static const struct pccard_product wi_pccard_products[] = {
|
||||
{ PCMCIA_STR_LUCENT_WAVELAN_IEEE, PCMCIA_VENDOR_LUCENT,
|
||||
PCMCIA_PRODUCT_LUCENT_WAVELAN_IEEE, 0,
|
||||
PCMCIA_CIS_LUCENT_WAVELAN_IEEE },
|
||||
Card(3COM, 3CRWE737A, 0),
|
||||
Card(BUFFALO, WLI_PCM_S11, 0),
|
||||
Card(COMPAQ, NC5004, 0),
|
||||
Card(CONTEC, FX_DS110_PCC, 0),
|
||||
Card(COREGA, WIRELESS_LAN_PCC_11, 0),
|
||||
Card(COREGA, WIRELESS_LAN_PCCA_11, 0),
|
||||
Card(COREGA, WIRELESS_LAN_PCCB_11, 0),
|
||||
Card(ELSA, XI300_IEEE, 0),
|
||||
Card(ELSA, XI800_IEEE, 0),
|
||||
Card(EMTAC, WLAN, 0),
|
||||
Card(GEMTEK, WLAN, 0),
|
||||
Card(INTEL, PRO_WLAN_2011, 0),
|
||||
Card(INTERSIL, PRISM2, 0),
|
||||
Card(IODATA2, WNB11PCM, 0),
|
||||
Card2(LUCENT, WAVELAN_IEEE, NANOSPEED_PRISM2, 0),
|
||||
Card2(LUCENT, WAVELAN_IEEE, NEC_CMZ_RT_WP, 0),
|
||||
Card2(LUCENT, WAVELAN_IEEE, NTT_ME_WLAN, 0),
|
||||
Card2(LUCENT, WAVELAN_IEEE, SMC_2632W, 0),
|
||||
/* Must be after other LUCENT ones because it is less specific */
|
||||
Card(LUCENT, WAVELAN_IEEE, 0),
|
||||
Card(SAMSUNG, SWL_2000N, 0),
|
||||
Card(TDK, LAK_CD011WL, 0),
|
||||
{ NULL }
|
||||
};
|
||||
|
||||
static int wi_pccard_match(dev)
|
||||
|
Loading…
Reference in New Issue
Block a user