Module Name:    src
Committed By:   msaitoh
Date:           Mon Apr  8 03:56:08 UTC 2019

Modified Files:
        src/sys/dev/pci: if_bnx.c

Log Message:
Make it compilable with BNX_DEBUG.


To generate a diff of this commit:
cvs rdiff -u -r1.79 -r1.80 src/sys/dev/pci/if_bnx.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/pci/if_bnx.c
diff -u src/sys/dev/pci/if_bnx.c:1.79 src/sys/dev/pci/if_bnx.c:1.80
--- src/sys/dev/pci/if_bnx.c:1.79	Fri Apr  5 07:25:06 2019
+++ src/sys/dev/pci/if_bnx.c	Mon Apr  8 03:56:08 2019
@@ -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 @@ bnx_dump_hw_state(struct bnx_softc *sc)
 	    " 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",

Reply via email to