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

// SPDX-License-Identifier: GPL-2.0
/* MOXA ART Ethernet (RTL8201CP) MDIO interface driver
 *
 * Copyright (C) 2013 Jonas Jensen <[email protected]>
 */

#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>

#define REG_PHY_CTRL
#define REG_PHY_WRITE_DATA

/* REG_PHY_CTRL */
#define MIIWR
#define MIIRD
#define REGAD_MASK
#define PHYAD_MASK
#define MIIRDATA_MASK

/* REG_PHY_WRITE_DATA */
#define MIIWDATA_MASK

struct moxart_mdio_data {};

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

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

static int moxart_mdio_reset(struct mii_bus *bus)
{}

static int moxart_mdio_probe(struct platform_device *pdev)
{}

static void moxart_mdio_remove(struct platform_device *pdev)
{}

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

static struct platform_driver moxart_mdio_driver =;

module_platform_driver();

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