diff options
author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 2017-06-19 10:55:43 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-20 13:24:43 -0400 |
commit | ed44152f21281120b421b0606ad255ce810a8043 (patch) | |
tree | 658cdafaa9d51bcee147605e248a2956d315aba0 /drivers/net/dsa/mv88e6xxx/global2.h | |
parent | 7fc8c9d5206e8c17eb6d938717dc3cc692d9d72c (diff) | |
download | lwn-ed44152f21281120b421b0606ad255ce810a8043.tar.gz lwn-ed44152f21281120b421b0606ad255ce810a8043.zip |
net: dsa: mv88e6xxx: prefix Global 2 Switch MAC macros
Prefix and document the Global 2 Switch MAC registers macros.
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/mv88e6xxx/global2.h')
-rw-r--r-- | drivers/net/dsa/mv88e6xxx/global2.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/net/dsa/mv88e6xxx/global2.h b/drivers/net/dsa/mv88e6xxx/global2.h index a0a6cb3cb6fe..6b17343e481e 100644 --- a/drivers/net/dsa/mv88e6xxx/global2.h +++ b/drivers/net/dsa/mv88e6xxx/global2.h @@ -92,7 +92,12 @@ #define MV88E6XXX_G2_PVT_DATA 0x0c #define MV88E6XXX_G2_PVT_DATA_MASK 0x7f -#define GLOBAL2_SWITCH_MAC 0x0d +/* Offset 0x0D: Switch MAC/WoL/WoF Register */ +#define MV88E6XXX_G2_SWITCH_MAC 0x0d +#define MV88E6XXX_G2_SWITCH_MAC_UPDATE 0x8000 +#define MV88E6XXX_G2_SWITCH_MAC_PTR_MASK 0x1f00 +#define MV88E6XXX_G2_SWITCH_MAC_DATA_MASK 0x00ff + #define GLOBAL2_ATU_STATS 0x0e #define GLOBAL2_PRIO_OVERRIDE 0x0f #define GLOBAL2_PRIO_OVERRIDE_FORCE_SNOOP BIT(7) |