linux/include/linux/dsa/tag_qca.h

/* SPDX-License-Identifier: GPL-2.0 */

#ifndef __TAG_QCA_H
#define __TAG_QCA_H

#include <linux/types.h>

struct dsa_switch;
struct sk_buff;

#define QCA_HDR_LEN
#define QCA_HDR_VERSION

#define QCA_HDR_RECV_VERSION
#define QCA_HDR_RECV_PRIORITY
#define QCA_HDR_RECV_TYPE
#define QCA_HDR_RECV_FRAME_IS_TAGGED
#define QCA_HDR_RECV_SOURCE_PORT

/* Packet type for recv */
#define QCA_HDR_RECV_TYPE_NORMAL
#define QCA_HDR_RECV_TYPE_MIB
#define QCA_HDR_RECV_TYPE_RW_REG_ACK

#define QCA_HDR_XMIT_VERSION
#define QCA_HDR_XMIT_PRIORITY
#define QCA_HDR_XMIT_CONTROL
#define QCA_HDR_XMIT_FROM_CPU
#define QCA_HDR_XMIT_DP_BIT

/* Packet type for xmit */
#define QCA_HDR_XMIT_TYPE_NORMAL
#define QCA_HDR_XMIT_TYPE_RW_REG

/* Check code for a valid mgmt packet. Switch will ignore the packet
 * with this wrong.
 */
#define QCA_HDR_MGMT_CHECK_CODE_VAL

/* Specific define for in-band MDIO read/write with Ethernet packet */
#define QCA_HDR_MGMT_SEQ_LEN
#define QCA_HDR_MGMT_COMMAND_LEN
#define QCA_HDR_MGMT_DATA1_LEN
#define QCA_HDR_MGMT_HEADER_LEN

#define QCA_HDR_MGMT_DATA2_LEN
#define QCA_HDR_MGMT_PADDING_LEN

#define QCA_HDR_MGMT_PKT_LEN

#define QCA_HDR_MGMT_SEQ_NUM
#define QCA_HDR_MGMT_CHECK_CODE
#define QCA_HDR_MGMT_CMD
#define QCA_HDR_MGMT_LENGTH
#define QCA_HDR_MGMT_ADDR

/* Special struct emulating a Ethernet header */
struct qca_mgmt_ethhdr {} __packed;

enum mdio_cmd {};

struct mib_ethhdr {} __packed;

struct qca_tagger_data {};

#endif /* __TAG_QCA_H */