Port-sparc64 archive

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

Ultra 45 onboard bge


After some hints from from Michael Hitch, I have the attached patch as the
minimum that gets the onboard bge working in my U45.  Note, that booting
using bge0 and then trying to use it under NetBSD fails, but I think that
that is a separate problem (the same happens on my V440 with cas).  I had
look at the BCM57xx Programmer's Guide but this isn't mentioned, and at
other drivers, but none of them have this extra delay.  If I decrease it,
the interface fails to receive packets.  Any ideas?



   NetBSD: simple; works; documented    /        Sailing at Newbiggin
        http://www.netbsd.org/        /   http://www.newbigginsailingclub.org/
Index: sys/dev/pci/if_bge.c
RCS file: /cvsroot/src/sys/dev/pci/if_bge.c,v
retrieving revision 1.259
diff -u -r1.259 if_bge.c
--- sys/dev/pci/if_bge.c        12 Sep 2013 21:11:37 -0000      1.259
+++ sys/dev/pci/if_bge.c        28 Oct 2013 21:53:27 -0000
@@ -5298,6 +5298,8 @@
        /* 5718 step 23 */
        /* Load our MAC address. */
+       if (BGE_IS_5714_FAMILY(sc))
+               delay(10000);
        m = (const uint16_t *)&(CLLADDR(ifp->if_sadl)[0]);
        CSR_WRITE_4(sc, BGE_MAC_ADDR1_LO, htons(m[0]));
        CSR_WRITE_4(sc, BGE_MAC_ADDR1_HI, (htons(m[1]) << 16) | htons(m[2]));

Home | Main Index | Thread Index | Old Index