#include <linux/bitfield.h>
#include <linux/bits.h>
#include <linux/mdio.h>
#include <linux/module.h>
#include <linux/phy.h>
#include <linux/if_vlan.h>
#include <linux/of.h>
#include "xrs700x.h"
#include "xrs700x_reg.h"
#define XRS_MDIO_IBA0 …
#define XRS_MDIO_IBA1 …
#define XRS_MDIO_IBD …
#define XRS_IB_READ …
#define XRS_IB_WRITE …
static int xrs700x_mdio_reg_read(void *context, unsigned int reg,
unsigned int *val)
{ … }
static int xrs700x_mdio_reg_write(void *context, unsigned int reg,
unsigned int val)
{ … }
static const struct regmap_config xrs700x_mdio_regmap_config = …;
static int xrs700x_mdio_probe(struct mdio_device *mdiodev)
{ … }
static void xrs700x_mdio_remove(struct mdio_device *mdiodev)
{ … }
static void xrs700x_mdio_shutdown(struct mdio_device *mdiodev)
{ … }
static const struct of_device_id __maybe_unused xrs700x_mdio_dt_ids[] = …;
MODULE_DEVICE_TABLE(of, xrs700x_mdio_dt_ids);
static struct mdio_driver xrs700x_mdio_driver = …;
mdio_module_driver(xrs700x_mdio_driver);
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;