Add flexible wake filter support to e1000e
Subsystems (2)
PATCH 2/3 Add flexible wake filter support to e1000e
Add support to e1000e for Wake-on-Lan flexible filters. This feature is supported by all hardware that the driver supports.
Signed-off-by Mitch Williams <[email protected]>
drivers/net/e1000e/defines.h +9 -0
@@ -65,6 +65,15 @@#define E1000_WUFC_BC 0x00000010/* Broadcast Wakeup Enable */ #define E1000_WUFC_ARP 0x00000020/* ARP Request Packet Wakeup Enable */ +/* Four Flexible Filters are supported */ +#define E1000_FLEXIBLE_FILTER_COUNT_MAX 4 +#define E1000_WUFC_ALL_FILTERS 0x000F00FF/* Mask for all wakeup filters */ +#define E1000_WUFC_FLX_OFFSET 16/* Offset to the Flexible Filters bits */ +#define E1000_WUFC_FLX_FILTERS 0x000F0000/* Mask for the 4 flexible filters */ + +/* Each Flexible Filter is at most 128 (0x80) bytes in length */ +#define E1000_FLEXIBLE_FILTER_SIZE_MAX 128 +/* Extended Device Control */ #define E1000_CTRL_EXT_SDP7_DATA 0x00000080/* Value of SW Defineable Pin 7 */ #define E1000_CTRL_EXT_EE_RST 0x00002000/* Reinitialize from EEPROM */
drivers/net/e1000e/e1000.h +1 -0
@@ -267,6 +267,7 @@ struct e1000_adapter {unsigned long led_status;unsigned int flags; +u32 wol_filters; };struct e1000_info {
drivers/net/e1000e/ethtool.c +95 -1
120 lines not on this page · raw message
drivers/net/e1000e/hw.h +2 -0
@@ -203,6 +203,8 @@ enum e1e_registers {E1000_SWSM =0x05B50 ,/* SW Semaphore */ E1000_FWSM =0x05B54 ,/* FW Semaphore */ E1000_HICR =0x08F00 ,/* Host Inteface Control */ +E1000_FFMT =0x09000 ,/* Flexible Filter Mask Table - RW Array */ + E1000_FFVT = 0x09800, /* Flexible Filter Value Table - RW Array */ };/* RSS registers */