Skip to content

Commit 46761fd

Browse files
pkwapulianguy11
authored andcommitted
ixgbe: Add support for E610 FW Admin Command Interface
Add low level support for Admin Command Interface (ACI). ACI is the Firmware interface used by a driver to communicate with E610 adapter. Add the following ACI features: - data structures, macros, register definitions - commands handling - events handling Co-developed-by: Stefan Wegrzyn <[email protected]> Signed-off-by: Stefan Wegrzyn <[email protected]> Co-developed-by: Jedrzej Jagielski <[email protected]> Signed-off-by: Jedrzej Jagielski <[email protected]> Reviewed-by: Michal Swiatkowski <[email protected]> Reviewed-by: Simon Horman <[email protected]> Tested-by: Bharath R <[email protected]> Signed-off-by: Piotr Kwapulinski <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
1 parent b73e56f commit 46761fd

File tree

6 files changed

+1657
-7
lines changed

6 files changed

+1657
-7
lines changed

drivers/net/ethernet/intel/ixgbe/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SPDX-License-Identifier: GPL-2.0
2-
# Copyright(c) 1999 - 2018 Intel Corporation.
2+
# Copyright(c) 1999 - 2024 Intel Corporation.
33
#
44
# Makefile for the Intel(R) 10GbE PCI Express ethernet driver
55
#
@@ -9,7 +9,7 @@ obj-$(CONFIG_IXGBE) += ixgbe.o
99
ixgbe-y := ixgbe_main.o ixgbe_common.o ixgbe_ethtool.o \
1010
ixgbe_82599.o ixgbe_82598.o ixgbe_phy.o ixgbe_sriov.o \
1111
ixgbe_mbx.o ixgbe_x540.o ixgbe_x550.o ixgbe_lib.o ixgbe_ptp.o \
12-
ixgbe_xsk.o
12+
ixgbe_xsk.o ixgbe_e610.o
1313

1414
ixgbe-$(CONFIG_IXGBE_DCB) += ixgbe_dcb.o ixgbe_dcb_82598.o \
1515
ixgbe_dcb_82599.o ixgbe_dcb_nl.o

drivers/net/ethernet/intel/ixgbe/ixgbe_common.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,11 @@ int ixgbe_get_bus_info_generic(struct ixgbe_hw *hw)
660660
hw->bus.type = ixgbe_bus_type_pci_express;
661661

662662
/* Get the negotiated link width and speed from PCI config space */
663-
link_status = ixgbe_read_pci_cfg_word(hw, IXGBE_PCI_LINK_STATUS);
663+
if (hw->mac.type == ixgbe_mac_e610)
664+
link_status = ixgbe_read_pci_cfg_word(hw, IXGBE_PCI_LINK_STATUS_E610);
665+
else
666+
link_status = ixgbe_read_pci_cfg_word(hw,
667+
IXGBE_PCI_LINK_STATUS);
664668

665669
hw->bus.width = ixgbe_convert_bus_width(link_status);
666670
hw->bus.speed = ixgbe_convert_bus_speed(link_status);

0 commit comments

Comments
 (0)