Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pcmcia enabling EMTAC A2424i Wavelan Card



details:   https://anonhg.NetBSD.org/src/rev/fc8a08062312
branches:  trunk
changeset: 511807:fc8a08062312
user:      ichiro <ichiro%NetBSD.org@localhost>
date:      Wed Jun 27 16:03:01 2001 +0000

description:
enabling EMTAC A2424i Wavelan Card
It work fine.

diffstat:

 sys/dev/pcmcia/if_wi_pcmcia.c      |   6 +++---
 sys/dev/pcmcia/pcmcia_cis_quirks.c |  26 +++++++++++++++++++++++++-
 2 files changed, 28 insertions(+), 4 deletions(-)

diffs (71 lines):

diff -r 8f2e4a28b77c -r fc8a08062312 sys/dev/pcmcia/if_wi_pcmcia.c
--- a/sys/dev/pcmcia/if_wi_pcmcia.c     Wed Jun 27 15:53:14 2001 +0000
+++ b/sys/dev/pcmcia/if_wi_pcmcia.c     Wed Jun 27 16:03:01 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_wi_pcmcia.c,v 1.3 2001/05/16 14:33:21 ichiro Exp $ */
+/* $NetBSD: if_wi_pcmcia.c,v 1.4 2001/06/27 16:03:01 ichiro Exp $ */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -201,12 +201,12 @@
          PCMCIA_PRODUCT_BUFFALO_WLI_PCM_S11,
          PCMCIA_CIS_BUFFALO_WLI_PCM_S11,
          PCMCIA_STR_BUFFALO_WLI_PCM_S11 },
-#if 0
+
        { PCMCIA_VENDOR_EMTAC,
          PCMCIA_PRODUCT_EMTAC_WLAN,
          PCMCIA_CIS_EMTAC_WLAN,
          PCMCIA_STR_EMTAC_WLAN },
-#endif
+
        { 0,
          0,
          { NULL, NULL, NULL, NULL },
diff -r 8f2e4a28b77c -r fc8a08062312 sys/dev/pcmcia/pcmcia_cis_quirks.c
--- a/sys/dev/pcmcia/pcmcia_cis_quirks.c        Wed Jun 27 15:53:14 2001 +0000
+++ b/sys/dev/pcmcia/pcmcia_cis_quirks.c        Wed Jun 27 16:03:01 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pcmcia_cis_quirks.c,v 1.11 2001/05/16 06:29:01 lukem Exp $     */
+/*     $NetBSD: pcmcia_cis_quirks.c,v 1.12 2001/06/27 16:03:01 ichiro Exp $    */
 
 /*
  * Copyright (c) 1998 Marc Horowitz.  All rights reserved.
@@ -233,6 +233,28 @@
        0,                      /* maxtwins */
 };
 
+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 */
+       PCMCIA_CFE_IO16 | PCMCIA_CFE_IRQLEVEL |
+       PCMCIA_CFE_IRQPULSE,
+       PCMCIA_IFTYPE_IO,
+       1,                      /* num_iospace */
+       6,                      /* iomask */
+       { { 0x40, 0x100 } },    /* iospace */
+       0xffff,                 /* irqmask */
+       0,                      /* num_memspace */
+       { { 0 } },              /* memspace */
+       0,                      /* maxtwins */
+};
+
 static const struct pcmcia_cis_quirk pcmcia_cis_quirks[] = {
        { PCMCIA_VENDOR_LINKSYS, PCMCIA_PRODUCT_LINKSYS_ECARD_1,
          PCMCIA_CIS_INVALID,
@@ -264,6 +286,8 @@
          &pcmcia_sveclancard_func0, &pcmcia_sveclancard_func0_cfe0 },
        { PCMCIA_VENDOR_INVALID, PCMCIA_PRODUCT_INVALID, PCMCIA_CIS_NDC_ND5100_E,
          &pcmcia_ndc_nd5100_func0, &pcmcia_ndc_nd5100_func0_cfe0 },
+       { PCMCIA_VENDOR_EMTAC, PCMCIA_PRODUCT_EMTAC_WLAN, PCMCIA_CIS_INVALID,
+         &pcmcia_emtac_a2424i_func0, &pcmcia_emtac_a2424i_func0_cfe0 },
 };
        
 static int n_pcmcia_cis_quirks =



Home | Main Index | Thread Index | Old Index