#include <linux/mfd/ocelot.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>
#include <soc/mscc/ocelot.h>
#include <soc/mscc/vsc7514_regs.h>
#include "felix.h"
#define VSC7514_NUM_PORTS …
#define OCELOT_PORT_MODE_SERDES …
static const u32 vsc7512_port_modes[VSC7514_NUM_PORTS] = …;
static const struct ocelot_ops ocelot_ext_ops = …;
static const char * const vsc7512_resource_names[TARGET_MAX] = …;
static const struct felix_info vsc7512_info = …;
static int ocelot_ext_probe(struct platform_device *pdev)
{ … }
static void ocelot_ext_remove(struct platform_device *pdev)
{ … }
static void ocelot_ext_shutdown(struct platform_device *pdev)
{ … }
static const struct of_device_id ocelot_ext_switch_of_match[] = …;
MODULE_DEVICE_TABLE(of, ocelot_ext_switch_of_match);
static struct platform_driver ocelot_ext_switch_driver = …;
module_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_IMPORT_NS(…);