Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pcmcia Fix a couple of problems w/ 3c574 support. D...



details:   https://anonhg.NetBSD.org/src/rev/611f05884fb3
branches:  trunk
changeset: 472836:611f05884fb3
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sun May 09 18:48:52 1999 +0000

description:
Fix a couple of problems w/ 3c574 support.  Doesn't quite work yet, but
it's a little closer.

diffstat:

 sys/dev/pcmcia/if_ep_pcmcia.c |  11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diffs (37 lines):

diff -r cd876c61f4a9 -r 611f05884fb3 sys/dev/pcmcia/if_ep_pcmcia.c
--- a/sys/dev/pcmcia/if_ep_pcmcia.c     Sun May 09 18:32:14 1999 +0000
+++ b/sys/dev/pcmcia/if_ep_pcmcia.c     Sun May 09 18:48:52 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_ep_pcmcia.c,v 1.21 1998/12/24 03:57:45 marc Exp $   */
+/*     $NetBSD: if_ep_pcmcia.c,v 1.22 1999/05/09 18:48:52 thorpej Exp $        */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -160,7 +160,7 @@
          PCMCIA_STR_3COM_3CXEM556 },
 
        { PCMCIA_PRODUCT_3COM_3C574,    ELINK_CHIPSET_ROADRUNNER,
-         ELINK_FLAGS_MII,                      0,
+         ELINK_FLAGS_MII,              0,
          PCMCIA_STR_3COM_3C574 },
 
        { 0,                            0,
@@ -349,14 +349,15 @@
                break;
        }
 
-       sc->bustype = ELINK_BUS_PCMCIA;
-
        epp = ep_pcmcia_lookup(pa);
        if (epp == NULL)
                panic("ep_pcmcia_attach: impossible");
 
        printf(": %s\n", epp->epp_name);
-       
+
+       sc->bustype = ELINK_BUS_PCMCIA;
+       sc->ep_flags = epp->epp_flags;
+
        sc->enable = ep_pcmcia_enable;
        sc->disable = ep_pcmcia_disable;
 



Home | Main Index | Thread Index | Old Index