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

// SPDX-License-Identifier: GPL-2.0-or-later
/* Copyright (C) 2019 IBM Corp. */

#include <linux/bitfield.h>
#include <linux/delay.h>
#include <linux/reset.h>
#include <linux/iopoll.h>
#include <linux/mdio.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_mdio.h>
#include <linux/phy.h>
#include <linux/platform_device.h>

#define DRV_NAME

#define ASPEED_MDIO_CTRL
#define ASPEED_MDIO_CTRL_FIRE
#define ASPEED_MDIO_CTRL_ST
#define ASPEED_MDIO_CTRL_ST_C45
#define ASPEED_MDIO_CTRL_ST_C22
#define ASPEED_MDIO_CTRL_OP
#define MDIO_C22_OP_WRITE
#define MDIO_C22_OP_READ
#define MDIO_C45_OP_ADDR
#define MDIO_C45_OP_WRITE
#define MDIO_C45_OP_PREAD
#define MDIO_C45_OP_READ
#define ASPEED_MDIO_CTRL_PHYAD
#define ASPEED_MDIO_CTRL_REGAD
#define ASPEED_MDIO_CTRL_MIIWDATA

#define ASPEED_MDIO_DATA
#define ASPEED_MDIO_DATA_MDC_THRES
#define ASPEED_MDIO_DATA_MDIO_EDGE
#define ASPEED_MDIO_DATA_MDIO_LATCH
#define ASPEED_MDIO_DATA_IDLE
#define ASPEED_MDIO_DATA_MIIRDATA

#define ASPEED_MDIO_INTERVAL_US
#define ASPEED_MDIO_TIMEOUT_US

struct aspeed_mdio {};

static int aspeed_mdio_op(struct mii_bus *bus, u8 st, u8 op, u8 phyad, u8 regad,
			  u16 data)
{}

static int aspeed_mdio_get_data(struct mii_bus *bus)
{}

static int aspeed_mdio_read_c22(struct mii_bus *bus, int addr, int regnum)
{}

static int aspeed_mdio_write_c22(struct mii_bus *bus, int addr, int regnum,
				 u16 val)
{}

static int aspeed_mdio_read_c45(struct mii_bus *bus, int addr, int devad,
				int regnum)
{}

static int aspeed_mdio_write_c45(struct mii_bus *bus, int addr, int devad,
				 int regnum, u16 val)
{}

static int aspeed_mdio_probe(struct platform_device *pdev)
{}

static void aspeed_mdio_remove(struct platform_device *pdev)
{}

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

static struct platform_driver aspeed_mdio_driver =;

module_platform_driver();

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