Module Name: src Committed By: jakllsch Date: Thu Sep 1 14:39:04 UTC 2011
Modified Files: src/sys/dev/marvell: if_mvgbe.c Log Message: Initialize MVGBE_MTU to 0, as suggested by the Orion databook. If the platform firmware did not initialize this to 0 for us, we were unable to transmit frames. To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/sys/dev/marvell/if_mvgbe.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/marvell/if_mvgbe.c diff -u src/sys/dev/marvell/if_mvgbe.c:1.10 src/sys/dev/marvell/if_mvgbe.c:1.11 --- src/sys/dev/marvell/if_mvgbe.c:1.10 Sat Jul 30 19:06:57 2011 +++ src/sys/dev/marvell/if_mvgbe.c Thu Sep 1 14:39:03 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: if_mvgbe.c,v 1.10 2011/07/30 19:06:57 rjs Exp $ */ +/* $NetBSD: if_mvgbe.c,v 1.11 2011/09/01 14:39:03 jakllsch Exp $ */ /* * Copyright (c) 2007, 2008 KIYOHARA Takashi * All rights reserved. @@ -25,7 +25,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_mvgbe.c,v 1.10 2011/07/30 19:06:57 rjs Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_mvgbe.c,v 1.11 2011/09/01 14:39:03 jakllsch Exp $"); #include "rnd.h" @@ -980,6 +980,7 @@ return ENOBUFS; } + MVGBE_WRITE(sc, MVGBE_MTU, 0); /* hw reset value is wrong */ MVGBE_WRITE(sc, MVGBE_PSC, MVGBE_PSC_ANFC | /* Enable Auto-Neg Flow Ctrl */ MVGBE_PSC_RESERVED | /* Must be set to 1 */