linux/drivers/net/dsa/realtek/rtl8366-core.c

// SPDX-License-Identifier: GPL-2.0
/* Realtek SMI library helpers for the RTL8366x variants
 * RTL8366RB and RTL8366S
 *
 * Copyright (C) 2017 Linus Walleij <[email protected]>
 * Copyright (C) 2009-2010 Gabor Juhos <[email protected]>
 * Copyright (C) 2010 Antti Seppälä <[email protected]>
 * Copyright (C) 2010 Roman Yeryomin <[email protected]>
 * Copyright (C) 2011 Colin Leitner <[email protected]>
 */
#include <linux/if_bridge.h>
#include <net/dsa.h>

#include "realtek.h"

int rtl8366_mc_is_used(struct realtek_priv *priv, int mc_index, int *used)
{}
EXPORT_SYMBOL_NS_GPL();

/**
 * rtl8366_obtain_mc() - retrieve or allocate a VLAN member configuration
 * @priv: the Realtek SMI device instance
 * @vid: the VLAN ID to look up or allocate
 * @vlanmc: the pointer will be assigned to a pointer to a valid member config
 * if successful
 * @return: index of a new member config or negative error number
 */
static int rtl8366_obtain_mc(struct realtek_priv *priv, int vid,
			     struct rtl8366_vlan_mc *vlanmc)
{}

int rtl8366_set_vlan(struct realtek_priv *priv, int vid, u32 member,
		     u32 untag, u32 fid)
{}
EXPORT_SYMBOL_NS_GPL();

int rtl8366_set_pvid(struct realtek_priv *priv, unsigned int port,
		     unsigned int vid)
{}
EXPORT_SYMBOL_NS_GPL();

int rtl8366_enable_vlan4k(struct realtek_priv *priv, bool enable)
{}
EXPORT_SYMBOL_NS_GPL();

int rtl8366_enable_vlan(struct realtek_priv *priv, bool enable)
{}
EXPORT_SYMBOL_NS_GPL();

int rtl8366_reset_vlan(struct realtek_priv *priv)
{}
EXPORT_SYMBOL_NS_GPL();

int rtl8366_vlan_add(struct dsa_switch *ds, int port,
		     const struct switchdev_obj_port_vlan *vlan,
		     struct netlink_ext_ack *extack)
{}
EXPORT_SYMBOL_NS_GPL();

int rtl8366_vlan_del(struct dsa_switch *ds, int port,
		     const struct switchdev_obj_port_vlan *vlan)
{}
EXPORT_SYMBOL_NS_GPL();

void rtl8366_get_strings(struct dsa_switch *ds, int port, u32 stringset,
			 uint8_t *data)
{}
EXPORT_SYMBOL_NS_GPL();

int rtl8366_get_sset_count(struct dsa_switch *ds, int port, int sset)
{}
EXPORT_SYMBOL_NS_GPL();

void rtl8366_get_ethtool_stats(struct dsa_switch *ds, int port, uint64_t *data)
{}
EXPORT_SYMBOL_NS_GPL();