linux/drivers/net/mdio/mdio-hisi-femac.c

// SPDX-License-Identifier: GPL-2.0+
/*
 * Hisilicon Fast Ethernet MDIO Bus Driver
 *
 * Copyright (c) 2016 HiSilicon Technologies Co., Ltd.
 */

#include <linux/clk.h>
#include <linux/iopoll.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/of_address.h>
#include <linux/of_mdio.h>
#include <linux/platform_device.h>

#define MDIO_RWCTRL
#define MDIO_RO_DATA
#define MDIO_WRITE
#define MDIO_RW_FINISH
#define BIT_PHY_ADDR_OFFSET
#define BIT_WR_DATA_OFFSET

struct hisi_femac_mdio_data {};

static int hisi_femac_mdio_wait_ready(struct hisi_femac_mdio_data *data)
{}

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

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

static int hisi_femac_mdio_probe(struct platform_device *pdev)
{}

static void hisi_femac_mdio_remove(struct platform_device *pdev)
{}

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

static struct platform_driver hisi_femac_mdio_driver =;

module_platform_driver();

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