linux/drivers/net/ethernet/marvell/prestera/prestera_dsa.c

// SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0
/* Copyright (c) 2020 Marvell International Ltd. All rights reserved */

#include <linux/bitfield.h>
#include <linux/bitops.h>
#include <linux/errno.h>
#include <linux/string.h>

#include "prestera_dsa.h"

#define PRESTERA_DSA_W0_CMD
#define PRESTERA_DSA_W0_IS_TAGGED
#define PRESTERA_DSA_W0_DEV_NUM
#define PRESTERA_DSA_W0_PORT_NUM
#define PRESTERA_DSA_W0_VPT
#define PRESTERA_DSA_W0_EXT_BIT
#define PRESTERA_DSA_W0_VID

#define PRESTERA_DSA_W1_EXT_BIT
#define PRESTERA_DSA_W1_CFI_BIT
#define PRESTERA_DSA_W1_PORT_NUM
#define PRESTERA_DSA_W1_MASK_CPU_CODE

#define PRESTERA_DSA_W2_EXT_BIT
#define PRESTERA_DSA_W2_PORT_NUM

#define PRESTERA_DSA_W3_VID
#define PRESTERA_DSA_W3_DST_EPORT
#define PRESTERA_DSA_W3_DEV_NUM

#define PRESTERA_DSA_VID
#define PRESTERA_DSA_DEV_NUM

int prestera_dsa_parse(struct prestera_dsa *dsa, const u8 *dsa_buf)
{}

int prestera_dsa_build(const struct prestera_dsa *dsa, u8 *dsa_buf)
{}