Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci/ixgbe Use macro. No functional change. Same as F...



details:   https://anonhg.NetBSD.org/src/rev/20d45c60fa29
branches:  trunk
changeset: 1027639:20d45c60fa29
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Tue Dec 14 05:33:08 2021 +0000

description:
Use macro. No functional change. Same as FreeBSD.

diffstat:

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

diffs (28 lines):

diff -r 6a06498a48ee -r 20d45c60fa29 sys/dev/pci/ixgbe/ixgbe_common.c
--- a/sys/dev/pci/ixgbe/ixgbe_common.c  Tue Dec 14 05:31:12 2021 +0000
+++ b/sys/dev/pci/ixgbe/ixgbe_common.c  Tue Dec 14 05:33:08 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ixgbe_common.c,v 1.39 2021/12/14 05:28:46 msaitoh Exp $ */
+/* $NetBSD: ixgbe_common.c,v 1.40 2021/12/14 05:33:08 msaitoh Exp $ */
 
 /******************************************************************************
   SPDX-License-Identifier: BSD-3-Clause
@@ -36,7 +36,7 @@
 /*$FreeBSD: head/sys/dev/ixgbe/ixgbe_common.c 331224 2018-03-19 20:55:05Z erj $*/
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ixgbe_common.c,v 1.39 2021/12/14 05:28:46 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ixgbe_common.c,v 1.40 2021/12/14 05:33:08 msaitoh Exp $");
 
 #include "ixgbe_common.h"
 #include "ixgbe_phy.h"
@@ -4696,7 +4696,8 @@
         * Read Flash command requires reading buffer length from
         * two byes instead of one byte
         */
-       if (resp->cmd == 0x30 || resp->cmd == 0x31) {
+       if (resp->cmd == IXGBE_HOST_INTERFACE_FLASH_READ_CMD ||
+           resp->cmd == IXGBE_HOST_INTERFACE_SHADOW_RAM_READ_CMD) {
                for (; bi < dword_len + 2; bi++) {
                        buffer[bi] = IXGBE_READ_REG_ARRAY(hw, IXGBE_FLEX_MNG,
                                                          bi);



Home | Main Index | Thread Index | Old Index