diff options
author | Sergio Prado <sergio.prado@e-labworks.com> | 2016-02-09 17:07:16 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-02-11 17:56:02 +0300 |
commit | 3e2a5e1539064329f5f6888274600841ad6f87bd (patch) | |
tree | 54036f63f97207ff2ee15ebbe13be96d85104e05 /drivers/net/ethernet/cadence/macb.h | |
parent | e6515203202a913816abb3fb808e71e3a2a0967e (diff) | |
download | linux-3e2a5e1539064329f5f6888274600841ad6f87bd.tar.xz |
net: macb: add wake-on-lan support via magic packet
Tested on Acqua A5 SoM (http://www.acmesystems.it/acqua).
Signed-off-by: Sergio Prado <sergio.prado@e-labworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cadence/macb.h')
-rw-r--r-- | drivers/net/ethernet/cadence/macb.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/cadence/macb.h b/drivers/net/ethernet/cadence/macb.h index 0d4ecfcd60b7..9ba416d5afff 100644 --- a/drivers/net/ethernet/cadence/macb.h +++ b/drivers/net/ethernet/cadence/macb.h @@ -312,6 +312,8 @@ #define MACB_PFR_SIZE 1 #define MACB_PTZ_OFFSET 13 /* Enable pause time zero interrupt */ #define MACB_PTZ_SIZE 1 +#define MACB_WOL_OFFSET 14 /* Enable wake-on-lan interrupt */ +#define MACB_WOL_SIZE 1 /* Bitfields in MAN */ #define MACB_DATA_OFFSET 0 /* data */ @@ -842,6 +844,8 @@ struct macb { unsigned int rx_frm_len_mask; unsigned int jumbo_max_len; + + u32 wol; }; static inline bool macb_is_gem(struct macb *bp) |