linux/drivers/net/mdio/mdio-sun4i.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Allwinner EMAC MDIO interface driver
 *
 * Copyright 2012-2013 Stefan Roese <[email protected]>
 * Copyright 2013 Maxime Ripard <[email protected]>
 *
 * Based on the Linux driver provided by Allwinner:
 * Copyright (C) 1997  Sten Wang
 */

#include <linux/delay.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/of_address.h>
#include <linux/of_mdio.h>
#include <linux/phy.h>
#include <linux/platform_device.h>
#include <linux/regulator/consumer.h>

#define EMAC_MAC_MCMD_REG
#define EMAC_MAC_MADR_REG
#define EMAC_MAC_MWTD_REG
#define EMAC_MAC_MRDD_REG
#define EMAC_MAC_MIND_REG
#define EMAC_MAC_SSRR_REG

#define MDIO_TIMEOUT

struct sun4i_mdio_data {};

static int sun4i_mdio_read(struct mii_bus *bus, int mii_id, int regnum)
{}

static int sun4i_mdio_write(struct mii_bus *bus, int mii_id, int regnum,
			    u16 value)
{}

static int sun4i_mdio_probe(struct platform_device *pdev)
{}

static void sun4i_mdio_remove(struct platform_device *pdev)
{}

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

static struct platform_driver sun4i_mdio_driver =;

module_platform_driver();

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