2006-05-15 01:42:26 +04:00
|
|
|
/* $NetBSD: pcmcia_cis_quirks.c,v 1.28 2006/05/14 21:45:00 elad Exp $ */
|
1998-12-24 07:51:59 +03:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (c) 1998 Marc Horowitz. All rights reserved.
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions
|
|
|
|
* are met:
|
|
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer.
|
|
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
|
|
* documentation and/or other materials provided with the distribution.
|
|
|
|
* 3. All advertising materials mentioning features or use of this software
|
|
|
|
* must display the following acknowledgement:
|
|
|
|
* This product includes software developed by Marc Horowitz.
|
|
|
|
* 4. The name of the author may not be used to endorse or promote products
|
|
|
|
* derived from this software without specific prior written permission.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
|
|
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
|
|
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
|
|
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
|
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
|
|
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
|
|
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
*/
|
|
|
|
|
2001-11-13 10:24:43 +03:00
|
|
|
#include <sys/cdefs.h>
|
2006-05-15 01:42:26 +04:00
|
|
|
__KERNEL_RCSID(0, "$NetBSD: pcmcia_cis_quirks.c,v 1.28 2006/05/14 21:45:00 elad Exp $");
|
2001-11-13 10:24:43 +03:00
|
|
|
|
1998-12-24 07:51:59 +03:00
|
|
|
#include <sys/param.h>
|
|
|
|
#include <sys/systm.h>
|
|
|
|
#include <sys/device.h>
|
2004-10-15 04:48:53 +04:00
|
|
|
#include <sys/kernel.h>
|
1998-12-24 07:51:59 +03:00
|
|
|
#include <sys/mbuf.h>
|
|
|
|
|
|
|
|
#include <dev/pcmcia/pcmciadevs.h>
|
|
|
|
#include <dev/pcmcia/pcmciareg.h>
|
|
|
|
#include <dev/pcmcia/pcmciachip.h>
|
|
|
|
#include <dev/pcmcia/pcmciavar.h>
|
|
|
|
|
|
|
|
/* There are cards out there whose CIS flat-out lies. This file
|
|
|
|
contains struct pcmcia_function chains for those devices. */
|
|
|
|
|
|
|
|
/* these structures are just static templates which are then copied
|
|
|
|
into "live" allocated structures */
|
|
|
|
|
2001-01-18 23:28:15 +03:00
|
|
|
static const struct pcmcia_function pcmcia_3cxem556_func0 = {
|
1998-12-24 07:51:59 +03:00
|
|
|
0, /* function number */
|
|
|
|
PCMCIA_FUNCTION_NETWORK,
|
|
|
|
0x07, /* last cfe number */
|
|
|
|
0x800, /* ccr_base */
|
|
|
|
0x63, /* ccr_mask */
|
|
|
|
};
|
|
|
|
|
2001-01-18 23:28:15 +03:00
|
|
|
static const struct pcmcia_config_entry pcmcia_3cxem556_func0_cfe0 = {
|
1998-12-24 07:51:59 +03:00
|
|
|
0x07, /* cfe number */
|
|
|
|
PCMCIA_CFE_IO8 | PCMCIA_CFE_IO16 | PCMCIA_CFE_IRQLEVEL,
|
|
|
|
PCMCIA_IFTYPE_IO,
|
|
|
|
1, /* num_iospace */
|
|
|
|
4, /* iomask */
|
|
|
|
{ { 0x0010, 0 } }, /* iospace */
|
|
|
|
0xffff, /* irqmask */
|
|
|
|
0, /* num_memspace */
|
2001-05-16 10:29:01 +04:00
|
|
|
{ { 0 } }, /* memspace */
|
1998-12-24 07:51:59 +03:00
|
|
|
0, /* maxtwins */
|
|
|
|
};
|
|
|
|
|
2001-01-18 23:28:15 +03:00
|
|
|
static const struct pcmcia_function pcmcia_3cxem556_func1 = {
|
1998-12-24 07:51:59 +03:00
|
|
|
1, /* function number */
|
|
|
|
PCMCIA_FUNCTION_SERIAL,
|
|
|
|
0x27, /* last cfe number */
|
|
|
|
0x900, /* ccr_base */
|
|
|
|
0x63, /* ccr_mask */
|
|
|
|
};
|
|
|
|
|
2001-01-18 23:28:15 +03:00
|
|
|
static const struct pcmcia_config_entry pcmcia_3cxem556_func1_cfe0 = {
|
1998-12-24 07:51:59 +03:00
|
|
|
0x27, /* cfe number */
|
|
|
|
PCMCIA_CFE_IO8 | PCMCIA_CFE_IRQLEVEL,
|
|
|
|
PCMCIA_IFTYPE_IO,
|
|
|
|
1, /* num_iospace */
|
|
|
|
3, /* iomask */
|
|
|
|
{ { 0x0008, 0 } }, /* iospace */
|
|
|
|
0xffff, /* irqmask */
|
|
|
|
0, /* num_memspace */
|
2001-05-16 10:29:01 +04:00
|
|
|
{ { 0 } }, /* memspace */
|
1998-12-24 07:51:59 +03:00
|
|
|
0, /* maxtwins */
|
|
|
|
};
|
|
|
|
|
2001-01-18 23:28:15 +03:00
|
|
|
static const struct pcmcia_function pcmcia_3ccfem556bi_func0 = {
|
1999-10-11 21:50:21 +04:00
|
|
|
0, /* function number */
|
|
|
|
PCMCIA_FUNCTION_NETWORK,
|
|
|
|
0x07, /* last cfe number */
|
|
|
|
0x1000, /* ccr_base */
|
|
|
|
0x267, /* ccr_mask */
|
|
|
|
};
|
|
|
|
|
2001-01-18 23:28:15 +03:00
|
|
|
static const struct pcmcia_config_entry pcmcia_3ccfem556bi_func0_cfe0 = {
|
1999-10-11 21:50:21 +04:00
|
|
|
0x07, /* cfe number */
|
|
|
|
PCMCIA_CFE_IO8 | PCMCIA_CFE_IO16 | PCMCIA_CFE_IRQLEVEL,
|
|
|
|
PCMCIA_IFTYPE_IO,
|
|
|
|
1, /* num_iospace */
|
|
|
|
5, /* iomask */
|
|
|
|
{ { 0x0020, 0 } }, /* iospace */
|
|
|
|
0xffff, /* irqmask */
|
|
|
|
0, /* num_memspace */
|
2001-05-16 10:29:01 +04:00
|
|
|
{ { 0 } }, /* memspace */
|
1999-10-11 21:50:21 +04:00
|
|
|
0, /* maxtwins */
|
|
|
|
};
|
|
|
|
|
2001-01-18 23:28:15 +03:00
|
|
|
static const struct pcmcia_function pcmcia_3ccfem556bi_func1 = {
|
1999-10-11 21:50:21 +04:00
|
|
|
1, /* function number */
|
|
|
|
PCMCIA_FUNCTION_SERIAL,
|
|
|
|
0x27, /* last cfe number */
|
|
|
|
0x1100, /* ccr_base */
|
|
|
|
0x277, /* ccr_mask */
|
|
|
|
};
|
|
|
|
|
2001-01-18 23:28:15 +03:00
|
|
|
static const struct pcmcia_config_entry pcmcia_3ccfem556bi_func1_cfe0 = {
|
1999-10-11 21:50:21 +04:00
|
|
|
0x27, /* cfe number */
|
|
|
|
PCMCIA_CFE_IO8 | PCMCIA_CFE_IRQLEVEL,
|
|
|
|
PCMCIA_IFTYPE_IO,
|
|
|
|
1, /* num_iospace */
|
|
|
|
3, /* iomask */
|
|
|
|
{ { 0x0008, 0 } }, /* iospace */
|
|
|
|
0xffff, /* irqmask */
|
|
|
|
0, /* num_memspace */
|
2001-05-16 10:29:01 +04:00
|
|
|
{ { 0 } }, /* memspace */
|
1999-10-11 21:50:21 +04:00
|
|
|
0, /* maxtwins */
|
|
|
|
};
|
|
|
|
|
2001-01-18 23:28:15 +03:00
|
|
|
static const struct pcmcia_function pcmcia_sveclancard_func0 = {
|
1998-12-29 12:00:28 +03:00
|
|
|
0, /* function number */
|
|
|
|
PCMCIA_FUNCTION_NETWORK,
|
|
|
|
0x1, /* last cfe number */
|
|
|
|
0x100, /* ccr_base */
|
|
|
|
0x1, /* ccr_mask */
|
|
|
|
};
|
|
|
|
|
2001-01-18 23:28:15 +03:00
|
|
|
static const struct pcmcia_config_entry pcmcia_sveclancard_func0_cfe0 = {
|
1998-12-29 12:00:28 +03:00
|
|
|
0x1, /* cfe number */
|
|
|
|
PCMCIA_CFE_MWAIT_REQUIRED | PCMCIA_CFE_RDYBSY_ACTIVE |
|
|
|
|
PCMCIA_CFE_WP_ACTIVE | PCMCIA_CFE_BVD_ACTIVE | PCMCIA_CFE_IO16,
|
|
|
|
PCMCIA_IFTYPE_IO,
|
|
|
|
1, /* num_iospace */
|
|
|
|
5, /* iomask */
|
|
|
|
{ { 0x20, 0x300 } }, /* iospace */
|
|
|
|
0xdeb8, /* irqmask */
|
|
|
|
0, /* num_memspace */
|
2001-05-16 10:29:01 +04:00
|
|
|
{ { 0 } }, /* memspace */
|
1998-12-29 12:00:28 +03:00
|
|
|
0, /* maxtwins */
|
|
|
|
};
|
|
|
|
|
2001-01-18 23:28:15 +03:00
|
|
|
static const struct pcmcia_function pcmcia_ndc_nd5100_func0 = {
|
2000-04-13 01:07:55 +04:00
|
|
|
0, /* function number */
|
|
|
|
PCMCIA_FUNCTION_NETWORK,
|
|
|
|
0x23, /* last cfe number */
|
|
|
|
0x3f8, /* ccr_base */
|
|
|
|
0x3, /* ccr_mask */
|
|
|
|
};
|
|
|
|
|
2001-01-18 23:28:15 +03:00
|
|
|
static const struct pcmcia_config_entry pcmcia_ndc_nd5100_func0_cfe0 = {
|
2000-04-13 01:07:55 +04:00
|
|
|
0x20, /* cfe number */
|
|
|
|
PCMCIA_CFE_MWAIT_REQUIRED | PCMCIA_CFE_IO16 | PCMCIA_CFE_IRQLEVEL,
|
|
|
|
PCMCIA_IFTYPE_IO,
|
|
|
|
1, /* num_iospace */
|
|
|
|
5, /* iomask */
|
|
|
|
{ { 0x20, 0x300 } }, /* iospace */
|
|
|
|
0xdeb8, /* irqmask */
|
|
|
|
0, /* num_memspace */
|
2001-05-16 10:29:01 +04:00
|
|
|
{ { 0 } }, /* memspace */
|
2000-04-13 01:07:55 +04:00
|
|
|
0, /* maxtwins */
|
|
|
|
};
|
|
|
|
|
2001-06-27 20:03:01 +04:00
|
|
|
static const struct pcmcia_function pcmcia_emtac_a2424i_func0 = {
|
|
|
|
0, /* function number */
|
|
|
|
PCMCIA_FUNCTION_NETWORK,
|
|
|
|
0x21, /* last cfe number */
|
|
|
|
0x3e0, /* ccr_base */
|
|
|
|
0x1, /* ccr_mask */
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct pcmcia_config_entry pcmcia_emtac_a2424i_func0_cfe0 = {
|
|
|
|
0x21, /* cfe number */
|
2001-12-16 08:44:33 +03:00
|
|
|
PCMCIA_CFE_IO16 | PCMCIA_CFE_IRQLEVEL | PCMCIA_CFE_IRQPULSE,
|
2001-06-27 20:03:01 +04:00
|
|
|
PCMCIA_IFTYPE_IO,
|
|
|
|
1, /* num_iospace */
|
|
|
|
6, /* iomask */
|
|
|
|
{ { 0x40, 0x100 } }, /* iospace */
|
|
|
|
0xffff, /* irqmask */
|
|
|
|
0, /* num_memspace */
|
|
|
|
{ { 0 } }, /* memspace */
|
|
|
|
0, /* maxtwins */
|
|
|
|
};
|
|
|
|
|
2001-12-23 12:25:19 +03:00
|
|
|
static const struct pcmcia_function pcmcia_fujitsu_j181_func0 = {
|
2001-12-16 08:44:33 +03:00
|
|
|
0, /* function number */
|
|
|
|
PCMCIA_FUNCTION_NETWORK,
|
2001-12-23 12:25:19 +03:00
|
|
|
0x21, /* last cfe number */
|
|
|
|
0xfe0, /* ccr_base */
|
2001-12-16 08:44:33 +03:00
|
|
|
0xf, /* ccr_mask */
|
2001-12-23 12:25:19 +03:00
|
|
|
};
|
2001-12-16 08:44:33 +03:00
|
|
|
|
2001-12-23 12:25:19 +03:00
|
|
|
static const struct pcmcia_config_entry pcmcia_fujitsu_j181_func0_cfe0 = {
|
|
|
|
0xc, /* cfe number */
|
|
|
|
PCMCIA_CFE_MWAIT_REQUIRED | PCMCIA_CFE_WP_ACTIVE | PCMCIA_CFE_IO8 |
|
|
|
|
PCMCIA_CFE_IO16 | PCMCIA_CFE_IRQLEVEL | PCMCIA_CFE_IRQPULSE,
|
2001-12-16 08:44:33 +03:00
|
|
|
PCMCIA_IFTYPE_IO,
|
|
|
|
1, /* num_iospace */
|
|
|
|
10, /* iomask */
|
2001-12-23 12:25:19 +03:00
|
|
|
{ { 0x20, 0x140 } }, /* iospace */
|
2001-12-16 08:44:33 +03:00
|
|
|
0xffff, /* irqmask */
|
|
|
|
0, /* num_memspace */
|
|
|
|
{ { 0 } }, /* memspace */
|
|
|
|
0, /* maxtwins */
|
|
|
|
};
|
|
|
|
|
2001-01-18 23:28:15 +03:00
|
|
|
static const struct pcmcia_cis_quirk pcmcia_cis_quirks[] = {
|
2005-02-27 03:26:58 +03:00
|
|
|
{ PCMCIA_VENDOR_3COM, PCMCIA_PRODUCT_3COM_3CXEM556, PCMCIA_CIS_INVALID,
|
1998-12-24 07:51:59 +03:00
|
|
|
&pcmcia_3cxem556_func0, &pcmcia_3cxem556_func0_cfe0 },
|
1998-12-29 12:00:28 +03:00
|
|
|
{ PCMCIA_VENDOR_3COM, PCMCIA_PRODUCT_3COM_3CXEM556, PCMCIA_CIS_INVALID,
|
1998-12-24 07:51:59 +03:00
|
|
|
&pcmcia_3cxem556_func1, &pcmcia_3cxem556_func1_cfe0 },
|
2005-02-27 03:26:58 +03:00
|
|
|
{ PCMCIA_VENDOR_3COM, PCMCIA_PRODUCT_3COM_3CXEM556INT, PCMCIA_CIS_INVALID,
|
1999-08-14 17:43:02 +04:00
|
|
|
&pcmcia_3cxem556_func0, &pcmcia_3cxem556_func0_cfe0 },
|
|
|
|
{ PCMCIA_VENDOR_3COM, PCMCIA_PRODUCT_3COM_3CXEM556INT, PCMCIA_CIS_INVALID,
|
|
|
|
&pcmcia_3cxem556_func1, &pcmcia_3cxem556_func1_cfe0 },
|
1999-10-11 21:50:21 +04:00
|
|
|
{ PCMCIA_VENDOR_3COM, PCMCIA_PRODUCT_3COM_3CCFEM556BI,
|
|
|
|
PCMCIA_CIS_INVALID,
|
|
|
|
&pcmcia_3ccfem556bi_func0, &pcmcia_3ccfem556bi_func0_cfe0 },
|
|
|
|
{ PCMCIA_VENDOR_3COM, PCMCIA_PRODUCT_3COM_3CCFEM556BI,
|
|
|
|
PCMCIA_CIS_INVALID,
|
|
|
|
&pcmcia_3ccfem556bi_func1, &pcmcia_3ccfem556bi_func1_cfe0 },
|
1998-12-29 12:00:28 +03:00
|
|
|
{ PCMCIA_VENDOR_INVALID, PCMCIA_PRODUCT_INVALID, PCMCIA_CIS_SVEC_LANCARD,
|
|
|
|
&pcmcia_sveclancard_func0, &pcmcia_sveclancard_func0_cfe0 },
|
2000-04-13 01:07:55 +04:00
|
|
|
{ PCMCIA_VENDOR_INVALID, PCMCIA_PRODUCT_INVALID, PCMCIA_CIS_NDC_ND5100_E,
|
|
|
|
&pcmcia_ndc_nd5100_func0, &pcmcia_ndc_nd5100_func0_cfe0 },
|
2001-06-27 20:03:01 +04:00
|
|
|
{ PCMCIA_VENDOR_EMTAC, PCMCIA_PRODUCT_EMTAC_WLAN, PCMCIA_CIS_INVALID,
|
|
|
|
&pcmcia_emtac_a2424i_func0, &pcmcia_emtac_a2424i_func0_cfe0 },
|
2001-12-23 12:25:19 +03:00
|
|
|
{ PCMCIA_VENDOR_INVALID, PCMCIA_PRODUCT_INVALID,
|
|
|
|
PCMCIA_CIS_FUJITSU_FMV_J181,
|
|
|
|
&pcmcia_fujitsu_j181_func0, &pcmcia_fujitsu_j181_func0_cfe0 },
|
1998-12-24 07:51:59 +03:00
|
|
|
};
|
2005-02-27 03:26:58 +03:00
|
|
|
|
2004-08-10 23:20:20 +04:00
|
|
|
static const int pcmcia_cis_nquirks =
|
|
|
|
sizeof(pcmcia_cis_quirks) / sizeof(pcmcia_cis_quirks[0]);
|
1998-12-24 07:51:59 +03:00
|
|
|
|
2004-10-15 04:48:53 +04:00
|
|
|
void
|
|
|
|
pcmcia_check_cis_quirks(sc)
|
1998-12-24 07:51:59 +03:00
|
|
|
struct pcmcia_softc *sc;
|
|
|
|
{
|
|
|
|
int wiped = 0;
|
2004-10-14 04:17:12 +04:00
|
|
|
size_t i, j;
|
2002-06-02 03:50:52 +04:00
|
|
|
struct pcmcia_function *pf;
|
2001-01-18 23:28:15 +03:00
|
|
|
const struct pcmcia_function *pf_last;
|
2002-06-02 03:50:52 +04:00
|
|
|
struct pcmcia_config_entry *cfe;
|
2004-10-14 04:17:12 +04:00
|
|
|
struct pcmcia_card *card = &sc->card;
|
2004-10-15 04:48:53 +04:00
|
|
|
const struct pcmcia_cis_quirk *quirk;
|
1998-12-24 07:51:59 +03:00
|
|
|
|
1998-12-25 03:54:46 +03:00
|
|
|
pf = NULL;
|
1998-12-24 07:51:59 +03:00
|
|
|
pf_last = NULL;
|
|
|
|
|
2004-10-14 04:17:12 +04:00
|
|
|
for (i = 0; i < pcmcia_cis_nquirks; i++) {
|
2004-10-15 04:48:53 +04:00
|
|
|
quirk = &pcmcia_cis_quirks[i];
|
2004-10-14 04:17:12 +04:00
|
|
|
|
2004-10-15 04:48:53 +04:00
|
|
|
if (card->manufacturer == quirk->manufacturer &&
|
|
|
|
card->manufacturer != PCMCIA_VENDOR_INVALID &&
|
|
|
|
card->product == quirk->product &&
|
2004-10-14 04:17:12 +04:00
|
|
|
card->product != PCMCIA_PRODUCT_INVALID)
|
2004-10-15 04:48:53 +04:00
|
|
|
goto match;
|
2004-10-14 04:17:12 +04:00
|
|
|
|
|
|
|
for (j = 0; j < 2; j++)
|
2004-10-25 02:17:07 +04:00
|
|
|
if (card->cis1_info[j] == NULL ||
|
|
|
|
quirk->cis1_info[j] == NULL ||
|
|
|
|
strcmp(card->cis1_info[j],
|
|
|
|
quirk->cis1_info[j]) != 0)
|
|
|
|
goto nomatch;
|
2004-10-14 04:17:12 +04:00
|
|
|
|
2004-10-15 04:48:53 +04:00
|
|
|
match:
|
2004-10-14 04:17:12 +04:00
|
|
|
if (!wiped) {
|
|
|
|
if (pcmcia_verbose) {
|
|
|
|
printf("%s: using CIS quirks for ",
|
|
|
|
sc->dev.dv_xname);
|
|
|
|
for (j = 0; j < 4; j++) {
|
|
|
|
if (card->cis1_info[j] == NULL)
|
|
|
|
break;
|
|
|
|
if (j)
|
|
|
|
printf(", ");
|
|
|
|
printf("%s", card->cis1_info[j]);
|
1998-12-24 07:51:59 +03:00
|
|
|
}
|
2004-10-14 04:17:12 +04:00
|
|
|
printf("\n");
|
1998-12-24 07:51:59 +03:00
|
|
|
}
|
2004-10-14 04:17:12 +04:00
|
|
|
pcmcia_free_pf(&card->pf_head);
|
|
|
|
wiped = 1;
|
|
|
|
}
|
1998-12-24 07:51:59 +03:00
|
|
|
|
2004-10-15 04:48:53 +04:00
|
|
|
if (pf_last != quirk->pf) {
|
|
|
|
/*
|
|
|
|
* XXX: a driver which still calls pcmcia_card_attach
|
|
|
|
* very early attach stage should be fixed instead.
|
|
|
|
*/
|
|
|
|
pf = malloc(sizeof(*pf), M_DEVBUF,
|
|
|
|
cold ? M_NOWAIT : M_WAITOK);
|
|
|
|
if (pf == NULL)
|
|
|
|
panic("pcmcia_check_cis_quirks: malloc pf");
|
|
|
|
*pf = *quirk->pf;
|
2004-10-14 04:17:12 +04:00
|
|
|
SIMPLEQ_INIT(&pf->cfe_head);
|
|
|
|
SIMPLEQ_INSERT_TAIL(&card->pf_head, pf, pf_list);
|
2004-10-15 04:48:53 +04:00
|
|
|
pf_last = quirk->pf;
|
1998-12-24 07:51:59 +03:00
|
|
|
}
|
2004-10-15 04:48:53 +04:00
|
|
|
|
|
|
|
/*
|
|
|
|
* XXX: see above.
|
|
|
|
*/
|
|
|
|
cfe = malloc(sizeof(*cfe), M_DEVBUF,
|
|
|
|
cold ? M_NOWAIT : M_WAITOK);
|
|
|
|
if (cfe == NULL)
|
|
|
|
panic("pcmcia_check_cis_quirks: malloc cfe");
|
|
|
|
*cfe = *quirk->cfe;
|
2006-04-14 21:42:29 +04:00
|
|
|
KASSERT(pf != NULL);
|
2004-10-15 04:48:53 +04:00
|
|
|
SIMPLEQ_INSERT_TAIL(&pf->cfe_head, cfe, cfe_list);
|
|
|
|
|
|
|
|
nomatch:;
|
1998-12-24 07:51:59 +03:00
|
|
|
}
|
|
|
|
}
|