linux/drivers/net/dsa/sja1105/sja1105_devlink.c

// SPDX-License-Identifier: GPL-2.0
/* Copyright (c) 2018-2019, Vladimir Oltean <[email protected]>
 * Copyright 2020 NXP
 */
#include "sja1105.h"

/* Since devlink regions have a fixed size and the static config has a variable
 * size, we need to calculate the maximum possible static config size by
 * creating a dummy config with all table entries populated to the max, and get
 * its packed length. This is done dynamically as opposed to simply hardcoding
 * a number, since currently not all static config tables are implemented, so
 * we are avoiding a possible code desynchronization.
 */
static size_t sja1105_static_config_get_max_size(struct sja1105_private *priv)
{}

static int
sja1105_region_static_config_snapshot(struct devlink *dl,
				      const struct devlink_region_ops *ops,
				      struct netlink_ext_ack *extack,
				      u8 **data)
{}

static struct devlink_region_ops sja1105_region_static_config_ops =;

enum sja1105_region_id {};

struct sja1105_region {};

static struct sja1105_region sja1105_regions[] =;

static int sja1105_setup_devlink_regions(struct dsa_switch *ds)
{}

static void sja1105_teardown_devlink_regions(struct dsa_switch *ds)
{}

int sja1105_devlink_info_get(struct dsa_switch *ds,
			     struct devlink_info_req *req,
			     struct netlink_ext_ack *extack)
{}

int sja1105_devlink_setup(struct dsa_switch *ds)
{}

void sja1105_devlink_teardown(struct dsa_switch *ds)
{}