Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/marvell Fix macro MVXORE_CHAN2BASE(). The XORE has ...



details:   https://anonhg.NetBSD.org/src/rev/5a9f32db9e0b
branches:  trunk
changeset: 350184:5a9f32db9e0b
user:      kiyohara <kiyohara%NetBSD.org@localhost>
date:      Sat Jan 07 14:32:32 2017 +0000

description:
Fix macro MVXORE_CHAN2BASE().  The XORE has 2 channels per port.

diffstat:

 sys/dev/marvell/gtidmacreg.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 783dd40acfbe -r 5a9f32db9e0b sys/dev/marvell/gtidmacreg.h
--- a/sys/dev/marvell/gtidmacreg.h      Sat Jan 07 14:26:37 2017 +0000
+++ b/sys/dev/marvell/gtidmacreg.h      Sat Jan 07 14:32:32 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gtidmacreg.h,v 1.3 2012/07/23 06:09:47 kiyohara Exp $  */
+/*     $NetBSD: gtidmacreg.h,v 1.4 2017/01/07 14:32:32 kiyohara Exp $  */
 /*
  * Copyright (c) 2008, 2009 KIYOHARA Takashi
  * All rights reserved.
@@ -51,7 +51,7 @@
 #define MVXORE_PORT2BASE(sc, p)        \
     (((sc)->sc_gtidmac_nchan == 0 && (p) == 0) ? -0x100 : 0x000)
 #define MVXORE_CHAN2BASE(sc, c)        \
-    (MVXORE_PORT2BASE(sc, (c) & 0x4) + (((c) & 0x3) << 2))
+    (MVXORE_PORT2BASE(sc, (c) & 0xe) + (((c) & 0x1) << 2))
 
 
 /* IDMA Descriptor Register Map */



Home | Main Index | Thread Index | Old Index