blob: e46e18c47d41c221bf9ca75a965e8f3c6a72e852 [file] [log] [blame]
Vladimir Oltean8aa9ebc2019-05-02 23:23:30 +03001/* SPDX-License-Identifier: GPL-2.0
2 * Copyright (c) 2019, Vladimir Oltean <olteanv@gmail.com>
3 */
4
Vladimir Oltean227d07a2019-05-05 13:19:27 +03005/* Included by drivers/net/dsa/sja1105/sja1105.h and net/dsa/tag_sja1105.c */
Vladimir Oltean8aa9ebc2019-05-02 23:23:30 +03006
7#ifndef _NET_DSA_SJA1105_H
8#define _NET_DSA_SJA1105_H
9
Vladimir Oltean227d07a2019-05-05 13:19:27 +030010#include <linux/skbuff.h>
Vladimir Oltean6666ceb2019-05-02 23:23:34 +030011#include <linux/etherdevice.h>
Vladimir Oltean227d07a2019-05-05 13:19:27 +030012#include <net/dsa.h>
Vladimir Oltean6666ceb2019-05-02 23:23:34 +030013
14#define ETH_P_SJA1105 ETH_P_DSA_8021Q
15
Vladimir Oltean227d07a2019-05-05 13:19:27 +030016/* 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_MASK 0xFFFFFF000000ull
19/* IEEE 1588 Annex F: Transport of PTP over Ethernet (01:1B:19:xx:xx:xx) */
20#define SJA1105_LINKLOCAL_FILTER_B 0x011B19000000ull
21#define SJA1105_LINKLOCAL_FILTER_B_MASK 0xFFFFFF000000ull
22
Vladimir Oltean227d07a2019-05-05 13:19:27 +030023struct sja1105_port {
24 struct dsa_port *dp;
25 int mgmt_slot;
26};
Vladimir Oltean8aa9ebc2019-05-02 23:23:30 +030027
28#endif /* _NET_DSA_SJA1105_H */