Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/cardbus This is the first check-in of CardBus driver...



details:   https://anonhg.NetBSD.org/src/rev/a984c6175d5f
branches:  trunk
changeset: 477194:a984c6175d5f
user:      haya <haya%NetBSD.org@localhost>
date:      Fri Oct 15 06:24:24 1999 +0000

description:
This is the first check-in of CardBus driver.  CardBus driver contains
CardBus bus stub, YENTA PCI-CardBus bridge (cbb), 3Com 3C575TX driver
(ex) and Intel fxp driver.

TODO:
  o Conform to the KNF more strictly.
  o Be unified with pcmcia code as much as possible.
  o Add more drivers for CardBus card, such as APA-1480 or USB card.

The affected files are listed below.

        sys/arch/i386/conf/files.i386
        sys/arch/macppc/conf/files.macppc
        sys/conf/files
        sys/dev/ic/elinkxl.c
        sys/dev/ic/elinkxlvar.h
        sys/dev/ic/i82365.c
        sys/dev/ic/i82365var.h
        sys/dev/isa/i82365_isasubr.c
        sys/dev/pci/files.pci
        sys/dev/pcmcia/pcmcia.c
        sys/dev/pcmcia/pcmciachip.h

The added files are listed below.

        sys/arch/i386/conf/CARDBUS
        sys/arch/i386/include/rbus_machdep.h
        sys/arch/i386/i386/rbus_machdep.c
        sys/arch/macppc/include/rbus_machdep.h
        sys/arch/macppc/macppc/rbus_machdep.c
        sys/dev/cardbus/if_ex_cardbus.c
        sys/dev/cardbus/Makefile.cardbusdevs
        sys/dev/cardbus/cardbus.c
        sys/dev/cardbus/cardbus_map.c
        sys/dev/cardbus/cardbusdevs
        sys/dev/cardbus/cardbusdevs.h
        sys/dev/cardbus/cardbusdevs_data.h
        sys/dev/cardbus/cardbusvar.h
        sys/dev/cardbus/cardslot.c
        sys/dev/cardbus/cardslotvar.h
        sys/dev/cardbus/devlist2h.awk
        sys/dev/cardbus/files.cardbus
        sys/dev/cardbus/if_fxp_cardbus.c
        sys/dev/cardbus/pccardcis.h
        sys/dev/cardbus/rbus.c
        sys/dev/cardbus/rbus.h
        sys/dev/pci/pccbb.c
        sys/dev/pci/pccbbreg.h
        sys/dev/pci/pccbbvar.h

diffstat:

 sys/dev/cardbus/cardbusdevs.h      |   76 ++++++++++++++++++++++++
 sys/dev/cardbus/cardbusdevs_data.h |  115 +++++++++++++++++++++++++++++++++++++
 2 files changed, 191 insertions(+), 0 deletions(-)

diffs (199 lines):

diff -r 678b7863ccab -r a984c6175d5f sys/dev/cardbus/cardbusdevs.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/dev/cardbus/cardbusdevs.h     Fri Oct 15 06:24:24 1999 +0000
@@ -0,0 +1,76 @@
+/*     $NetBSD: cardbusdevs.h,v 1.1 1999/10/15 06:24:24 haya Exp $     */
+
+/*
+ * THIS FILE AUTOMATICALLY GENERATED.  DO NOT EDIT.
+ *
+ * generated from:
+ *     Id: cardbusdevs,v 1.1 1999/10/15 06:07:18 haya Exp 
+ */
+
+/*
+ * Copyright (C) 1999  Hayakawa Koichi.
+ * 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 the author
+ *     for the NetBSD Project.
+ * 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.
+ */
+
+/*
+ * This code is stollen from sys/dev/pci/pcidevs
+ */
+
+
+/*
+ * List of known CardBus vendors
+ */
+
+#define        CARDBUS_VENDOR_DEC      0x1011          /* Digital Equipment */
+#define        CARDBUS_VENDOR_3COM     0x10B7          /* 3Com */
+#define        CARDBUS_VENDOR_ADP      0x9004          /* Adaptec */
+#define        CARDBUS_VENDOR_ADP2     0x9005          /* Adaptec (2nd PCI Vendor ID) */
+#define        CARDBUS_VENDOR_OPTI     0x1045          /* Opti */
+#define        CARDBUS_VENDOR_INTEL    0x8086          /* Intel */
+
+/*
+ * List of known products.  Grouped by vendor.
+ */
+
+/* 3COM Products */
+
+#define        CARDBUS_PRODUCT_3COM_3C575TX    0x5057          /* 3c575 100Base-TX */
+#define        CARDBUS_PRODUCT_3COM_3C575BTX   0x5157          /* 3c575B 100Base-TX */
+
+/* Adaptec products */
+#define        CARDBUS_PRODUCT_ADP_1480        0x6075          /* APA-1480 */
+
+/* DEC products */
+#define        CARDBUS_PRODUCT_DEC_21142       0x0019          /* DECchip 21142/3 */
+
+/* Intel products */
+#define        CARDBUS_PRODUCT_INTEL_82557     0x1229          /* 82557 Fast Ethernet LAN Controller */
+
+/* Opti products */
+#define        CARDBUS_PRODUCT_OPTI_82C861     0xc861          /* 82C861 USB Host Controller (OHCI) */
diff -r 678b7863ccab -r a984c6175d5f sys/dev/cardbus/cardbusdevs_data.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/dev/cardbus/cardbusdevs_data.h        Fri Oct 15 06:24:24 1999 +0000
@@ -0,0 +1,115 @@
+/*     $NetBSD: cardbusdevs_data.h,v 1.1 1999/10/15 06:24:25 haya Exp $        */
+
+/*
+ * THIS FILE AUTOMATICALLY GENERATED.  DO NOT EDIT.
+ *
+ * generated from:
+ *     Id: cardbusdevs,v 1.1 1999/10/15 06:07:18 haya Exp 
+ */
+
+/*
+ * Copyright (C) 1999  Hayakawa Koichi.
+ * 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 the author
+ *     for the NetBSD Project.
+ * 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.
+ */
+
+struct cardbus_knowndev cardbus_knowndevs[] = {
+       {
+           CARDBUS_VENDOR_3COM, CARDBUS_PRODUCT_3COM_3C575TX,
+           0,
+           "3Com",
+           "3c575 100Base-TX",
+       },
+       {
+           CARDBUS_VENDOR_3COM, CARDBUS_PRODUCT_3COM_3C575BTX,
+           0,
+           "3Com",
+           "3c575B 100Base-TX",
+       },
+       {
+           CARDBUS_VENDOR_ADP, CARDBUS_PRODUCT_ADP_1480,
+           0,
+           "Adaptec",
+           "APA-1480",
+       },
+       {
+           CARDBUS_VENDOR_DEC, CARDBUS_PRODUCT_DEC_21142,
+           0,
+           "Digital Equipment",
+           "DECchip 21142/3",
+       },
+       {
+           CARDBUS_VENDOR_INTEL, CARDBUS_PRODUCT_INTEL_82557,
+           0,
+           "Intel",
+           "82557 Fast Ethernet LAN Controller",
+       },
+       {
+           CARDBUS_VENDOR_OPTI, CARDBUS_PRODUCT_OPTI_82C861,
+           0,
+           "Opti",
+           "82C861 USB Host Controller (OHCI)",
+       },
+       {
+           CARDBUS_VENDOR_DEC, 0,
+           CARDBUS_KNOWNDEV_NOPROD,
+           "Digital Equipment",
+           NULL,
+       },
+       {
+           CARDBUS_VENDOR_3COM, 0,
+           CARDBUS_KNOWNDEV_NOPROD,
+           "3Com",
+           NULL,
+       },
+       {
+           CARDBUS_VENDOR_ADP, 0,
+           CARDBUS_KNOWNDEV_NOPROD,
+           "Adaptec",
+           NULL,
+       },
+       {
+           CARDBUS_VENDOR_ADP2, 0,
+           CARDBUS_KNOWNDEV_NOPROD,
+           "Adaptec (2nd PCI Vendor ID)",
+           NULL,
+       },
+       {
+           CARDBUS_VENDOR_OPTI, 0,
+           CARDBUS_KNOWNDEV_NOPROD,
+           "Opti",
+           NULL,
+       },
+       {
+           CARDBUS_VENDOR_INTEL, 0,
+           CARDBUS_KNOWNDEV_NOPROD,
+           "Intel",
+           NULL,
+       },
+       { 0, 0, 0, NULL, NULL, }
+};



Home | Main Index | Thread Index | Old Index