mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
net: dsa: tag_qca: move define to include linux/dsa
Move tag_qca define to include dir linux/dsa as the qca8k require access to the tagger define to support in-band mdio read/write using ethernet packet. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com> Reviewed-by: Vladimir Oltean <olteanv@gmail.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
6b04582992
commit
3ec762fb13
21
include/linux/dsa/tag_qca.h
Normal file
21
include/linux/dsa/tag_qca.h
Normal file
@@ -0,0 +1,21 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
|
||||
#ifndef __TAG_QCA_H
|
||||
#define __TAG_QCA_H
|
||||
|
||||
#define QCA_HDR_LEN 2
|
||||
#define QCA_HDR_VERSION 0x2
|
||||
|
||||
#define QCA_HDR_RECV_VERSION GENMASK(15, 14)
|
||||
#define QCA_HDR_RECV_PRIORITY GENMASK(13, 11)
|
||||
#define QCA_HDR_RECV_TYPE GENMASK(10, 6)
|
||||
#define QCA_HDR_RECV_FRAME_IS_TAGGED BIT(3)
|
||||
#define QCA_HDR_RECV_SOURCE_PORT GENMASK(2, 0)
|
||||
|
||||
#define QCA_HDR_XMIT_VERSION GENMASK(15, 14)
|
||||
#define QCA_HDR_XMIT_PRIORITY GENMASK(13, 11)
|
||||
#define QCA_HDR_XMIT_CONTROL GENMASK(10, 8)
|
||||
#define QCA_HDR_XMIT_FROM_CPU BIT(7)
|
||||
#define QCA_HDR_XMIT_DP_BIT GENMASK(6, 0)
|
||||
|
||||
#endif /* __TAG_QCA_H */
|
||||
Reference in New Issue
Block a user