linux/drivers/net/dsa/vitesse-vsc73xx-platform.c

// SPDX-License-Identifier: GPL-2.0
/* DSA driver for:
 * Vitesse VSC7385 SparX-G5 5+1-port Integrated Gigabit Ethernet Switch
 * Vitesse VSC7388 SparX-G8 8-port Integrated Gigabit Ethernet Switch
 * Vitesse VSC7395 SparX-G5e 5+1-port Integrated Gigabit Ethernet Switch
 * Vitesse VSC7398 SparX-G8e 8-port Integrated Gigabit Ethernet Switch
 *
 * This driver takes control of the switch chip connected over CPU-attached
 * address bus and configures it to route packages around when connected to
 * a CPU port.
 *
 * Copyright (C) 2019 Pawel Dembicki <[email protected]>
 * Based on vitesse-vsc-spi.c by:
 * Copyright (C) 2018 Linus Wallej <[email protected]>
 * Includes portions of code from the firmware uploader by:
 * Copyright (C) 2009 Gabor Juhos <[email protected]>
 */
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>

#include "vitesse-vsc73xx.h"

#define VSC73XX_CMD_PLATFORM_BLOCK_SHIFT
#define VSC73XX_CMD_PLATFORM_BLOCK_MASK
#define VSC73XX_CMD_PLATFORM_SUBBLOCK_SHIFT
#define VSC73XX_CMD_PLATFORM_SUBBLOCK_MASK
#define VSC73XX_CMD_PLATFORM_REGISTER_SHIFT

/*
 * struct vsc73xx_platform - VSC73xx Platform state container
 */
struct vsc73xx_platform {};

static const struct vsc73xx_ops vsc73xx_platform_ops;

static u32 vsc73xx_make_addr(u8 block, u8 subblock, u8 reg)
{}

static int vsc73xx_platform_read(struct vsc73xx *vsc, u8 block, u8 subblock,
				 u8 reg, u32 *val)
{}

static int vsc73xx_platform_write(struct vsc73xx *vsc, u8 block, u8 subblock,
				  u8 reg, u32 val)
{}

static int vsc73xx_platform_probe(struct platform_device *pdev)
{}

static void vsc73xx_platform_remove(struct platform_device *pdev)
{}

static void vsc73xx_platform_shutdown(struct platform_device *pdev)
{}

static const struct vsc73xx_ops vsc73xx_platform_ops =;

static const struct of_device_id vsc73xx_of_match[] =;
MODULE_DEVICE_TABLE(of, vsc73xx_of_match);

static struct platform_driver vsc73xx_platform_driver =;
module_platform_driver();

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();