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 the bitmask of MVXPE_PMACC0_FRAMESIZELIM...



details:   https://anonhg.NetBSD.org/src/rev/6b12d3c560ce
branches:  trunk
changeset: 343531:6b12d3c560ce
user:      hikaru <hikaru%NetBSD.org@localhost>
date:      Fri Feb 12 09:24:15 2016 +0000

description:
Fix the bitmask of MVXPE_PMACC0_FRAMESIZELIMIT. It did no harm.

diffstat:

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

diffs (18 lines):

diff -r 2f4d909530d1 -r 6b12d3c560ce sys/dev/marvell/if_mvxpereg.h
--- a/sys/dev/marvell/if_mvxpereg.h     Fri Feb 12 08:36:29 2016 +0000
+++ b/sys/dev/marvell/if_mvxpereg.h     Fri Feb 12 09:24:15 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_mvxpereg.h,v 1.2 2015/06/03 03:55:47 hsuenaga Exp $ */
+/*     $NetBSD: if_mvxpereg.h,v 1.3 2016/02/12 09:24:15 hikaru Exp $   */
 /*
  * Copyright (c) 2015 Internet Initiative Japan Inc.
  * All rights reserved.
@@ -608,7 +608,7 @@
 /* Port MAC Control 0 (MVXPE_PMACC0) */
 #define MVXPE_PMACC0_PORTEN            (1 << 0)
 #define MVXPE_PMACC0_PORTTYPE          (1 << 1)
-#define MVXPE_PMACC0_FRAMESIZELIMIT(x) ((((x) >> 1) & 0x7ffc) << 2)
+#define MVXPE_PMACC0_FRAMESIZELIMIT(x) ((((x) >> 1) & 0x1fff) << 2)
 #define MVXPE_PMACC0_MUSTSET           (1 << 15)
 
 /* Port MAC Control 1 (MVXPE_PMACC1) */



Home | Main Index | Thread Index | Old Index