Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Make it compilable with BNX_DEBUG.



details:   https://anonhg.NetBSD.org/src/rev/2399ec43d601
branches:  trunk
changeset: 998123:2399ec43d601
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Mon Apr 08 03:56:08 2019 +0000

description:
Make it compilable with BNX_DEBUG.

diffstat:

 sys/dev/pci/if_bnx.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 9c9c1570ad34 -r 2399ec43d601 sys/dev/pci/if_bnx.c
--- a/sys/dev/pci/if_bnx.c      Mon Apr 08 00:47:21 2019 +0000
+++ b/sys/dev/pci/if_bnx.c      Mon Apr 08 03:56:08 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_bnx.c,v 1.79 2019/04/05 07:25:06 msaitoh Exp $      */
+/*     $NetBSD: if_bnx.c,v 1.80 2019/04/08 03:56:08 msaitoh Exp $      */
 /*     $OpenBSD: if_bnx.c,v 1.101 2013/03/28 17:21:44 brad Exp $       */
 
 /*-
@@ -35,7 +35,7 @@
 #if 0
 __FBSDID("$FreeBSD: src/sys/dev/bce/if_bce.c,v 1.3 2006/04/13 14:12:26 ru Exp $");
 #endif
-__KERNEL_RCSID(0, "$NetBSD: if_bnx.c,v 1.79 2019/04/05 07:25:06 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bnx.c,v 1.80 2019/04/08 03:56:08 msaitoh Exp $");
 
 /*
  * The following controllers are supported by this driver:
@@ -6596,7 +6596,8 @@
            " Hardware State "
            "----------------------------\n");
 
-       BNX_PRINTF(sc, "0x%08X : bootcode version\n", sc->bnx_fw_ver);
+       val1 = REG_RD_IND(sc, sc->bnx_shmem_base + BNX_DEV_INFO_BC_REV);
+       BNX_PRINTF(sc, "0x%08X : bootcode version\n", val1);
 
        val1 = REG_RD(sc, BNX_MISC_ENABLE_STATUS_BITS);
        BNX_PRINTF(sc, "0x%08X : (0x%04X) misc_enable_status_bits\n",



Home | Main Index | Thread Index | Old Index