igc: Add support for Tx/Rx rings
Subsystems (2)
PATCH v6 5/11 igc: Add support for Tx/Rx rings
This change adds the defines and structures necessary to support both Tx and Rx descriptor rings.
Sasha Neftin (v2):
fixed code indentation
Sasha Nedftin (v3):
minor code fixes
Sasha Nedftin (v4):
refactor of igc_clean_tx_ring method and resovle rmmod hang problem remove unused code
address comments
fix code indentation
fix xmas layout
fix header of igc_tx_buffer method
remove duplicate defines of IGC_TX_HTHRESH and IGC_TX_PTHRESH fix typo
replace e1000_ prefix with igc_prefix
Sasha Nedftin (v5):
remove unused defines
Sasha Nedftin (v6):
minor cosmetic changes
--- drivers/net/ethernet/intel/igc/Makefile | 2 +- drivers/net/ethernet/intel/igc/igc.h | 126 +++ drivers/net/ethernet/intel/igc/igc_base.c | 83 ++ drivers/net/ethernet/intel/igc/igc_base.h | 89 ++ drivers/net/ethernet/intel/igc/igc_defines.h | 43 + drivers/net/ethernet/intel/igc/igc_hw.h | 1 + drivers/net/ethernet/intel/igc/igc_main.c | 836 +++++++++++++++++++ drivers/net/ethernet/intel/igc/igc_regs.h | 3 + 8 files changed, 1182 insertions(+), 1 deletion(-) create mode 100644 drivers/net/ethernet/intel/igc/igc_base.c create mode 100644 drivers/net/ethernet/intel/igc/igc_base.h
drivers/net/ethernet/intel/igc/Makefile +1 -1
@@ -7,4 +7,4 @@ obj-$(CONFIG_IGC) += igc.o -igc-objs := igc_main.o igc_mac.o +igc-objs := igc_main.o igc_mac.o igc_base.o
drivers/net/ethernet/intel/igc/igc.h +126 -0
142 lines not on this page · raw message
drivers/net/ethernet/intel/igc/igc_base.c new file +83 -0
83 lines not on this page · raw message
drivers/net/ethernet/intel/igc/igc_base.h new file +89 -0
89 lines not on this page · raw message
drivers/net/ethernet/intel/igc/igc_defines.h +43 -0
55 lines not on this page · raw message
drivers/net/ethernet/intel/igc/igc_hw.h +1 -0
@@ -10,6 +10,7 @@#include "igc_defines.h" #include "igc_mac.h" #include "igc_i225.h" +#include "igc_base.h" #define IGC_DEV_ID_I225_LM 0x15F2#define IGC_DEV_ID_I225_V 0x15F3
drivers/net/ethernet/intel/igc/igc_main.c +836 -0
946 lines not on this page · raw message
drivers/net/ethernet/intel/igc/igc_regs.h +3 -0
@@ -168,6 +168,9 @@#define IGC_SCVPC 0x04228/* SerDes/SGMII Code Violation Pkt Count */ #define IGC_HRMPC 0x0A018/* Header Redirection Missed Packet Count */ +/* Management registers */ +#define IGC_MANC 0x05820/* Management Control - RW */ +/* forward declaration */ struct igc_hw ;u32 igc_rd32 (struct igc_hw *hw,u32 reg);
Signature · 1 line
2.18.0