diff options
Diffstat (limited to 'include/linux/dsa/sja1105.h')
| -rw-r--r-- | include/linux/dsa/sja1105.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/dsa/sja1105.h b/include/linux/dsa/sja1105.h index 5a956f335022..cc4a909d1007 100644 --- a/include/linux/dsa/sja1105.h +++ b/include/linux/dsa/sja1105.h | |||
| @@ -12,6 +12,7 @@ | |||
| 12 | #include <net/dsa.h> | 12 | #include <net/dsa.h> |
| 13 | 13 | ||
| 14 | #define ETH_P_SJA1105 ETH_P_DSA_8021Q | 14 | #define ETH_P_SJA1105 ETH_P_DSA_8021Q |
| 15 | #define ETH_P_SJA1105_META 0x0008 | ||
| 15 | 16 | ||
| 16 | /* IEEE 802.3 Annex 57A: Slow Protocols PDUs (01:80:C2:xx:xx:xx) */ | 17 | /* IEEE 802.3 Annex 57A: Slow Protocols PDUs (01:80:C2:xx:xx:xx) */ |
| 17 | #define SJA1105_LINKLOCAL_FILTER_A 0x0180C2000000ull | 18 | #define SJA1105_LINKLOCAL_FILTER_A 0x0180C2000000ull |
| @@ -20,6 +21,16 @@ | |||
| 20 | #define SJA1105_LINKLOCAL_FILTER_B 0x011B19000000ull | 21 | #define SJA1105_LINKLOCAL_FILTER_B 0x011B19000000ull |
| 21 | #define SJA1105_LINKLOCAL_FILTER_B_MASK 0xFFFFFF000000ull | 22 | #define SJA1105_LINKLOCAL_FILTER_B_MASK 0xFFFFFF000000ull |
| 22 | 23 | ||
| 24 | /* Source and Destination MAC of follow-up meta frames. | ||
| 25 | * Whereas the choice of SMAC only affects the unique identification of the | ||
| 26 | * switch as sender of meta frames, the DMAC must be an address that is present | ||
| 27 | * in the DSA master port's multicast MAC filter. | ||
| 28 | * 01-80-C2-00-00-0E is a good choice for this, as all profiles of IEEE 1588 | ||
| 29 | * over L2 use this address for some purpose already. | ||
| 30 | */ | ||
| 31 | #define SJA1105_META_SMAC 0x222222222222ull | ||
| 32 | #define SJA1105_META_DMAC 0x0180C200000Eull | ||
| 33 | |||
| 23 | struct sja1105_port { | 34 | struct sja1105_port { |
| 24 | struct dsa_port *dp; | 35 | struct dsa_port *dp; |
| 25 | bool hwts_tx_en; | 36 | bool hwts_tx_en; |
