Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/pmppc/dev Initialize the media to 10baseT. From St...



details:   https://anonhg.NetBSD.org/src/rev/5841dcadbb11
branches:  trunk
changeset: 540572:5841dcadbb11
user:      augustss <augustss%NetBSD.org@localhost>
date:      Thu Dec 19 07:15:05 2002 +0000

description:
Initialize the media to 10baseT.  From Steph Bailey.

diffstat:

 sys/arch/pmppc/dev/if_cs_mainbus.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 298b283e0776 -r 5841dcadbb11 sys/arch/pmppc/dev/if_cs_mainbus.c
--- a/sys/arch/pmppc/dev/if_cs_mainbus.c        Thu Dec 19 06:21:45 2002 +0000
+++ b/sys/arch/pmppc/dev/if_cs_mainbus.c        Thu Dec 19 07:15:05 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_cs_mainbus.c,v 1.4 2002/10/02 04:11:36 thorpej Exp $        */
+/*     $NetBSD: if_cs_mainbus.c,v 1.5 2002/12/19 07:15:05 augustss Exp $       */
 
 /*
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -240,6 +240,7 @@
 {
        struct cs_softc *sc = (struct cs_softc *)self;
        struct mainbus_attach_args *maa = aux;
+       int media[1] = { IFM_ETHER | IFM_10_T };
 
        printf("\n");
 
@@ -279,7 +280,8 @@
         */
        sc->sc_irq = 10;
 
-       if (cs_attach(sc, NULL, NULL, 0, 0)) {
+       /* Use half duplex 10baseT. */
+       if (cs_attach(sc, NULL, media, 1, IFM_ETHER | IFM_10_T)) {
                printf("%s: unable to attach\n", self->dv_xname);
                goto fail;
        }



Home | Main Index | Thread Index | Old Index