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

// SPDX-License-Identifier: GPL-2.0+
/* Applied Micro X-Gene SoC MDIO Driver
 *
 * Copyright (c) 2016, Applied Micro Circuits Corporation
 * Author: Iyappan Subramanian <[email protected]>
 */

#include <linux/acpi.h>
#include <linux/clk.h>
#include <linux/device.h>
#include <linux/efi.h>
#include <linux/if_vlan.h>
#include <linux/io.h>
#include <linux/mdio/mdio-xgene.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_mdio.h>
#include <linux/of_net.h>
#include <linux/phy.h>
#include <linux/platform_device.h>
#include <linux/prefetch.h>
#include <linux/property.h>
#include <net/ip.h>

u32 xgene_mdio_rd_mac(struct xgene_mdio_pdata *pdata, u32 rd_addr)
{}
EXPORT_SYMBOL();

void xgene_mdio_wr_mac(struct xgene_mdio_pdata *pdata, u32 wr_addr, u32 data)
{}
EXPORT_SYMBOL();

int xgene_mdio_rgmii_read(struct mii_bus *bus, int phy_id, int reg)
{}
EXPORT_SYMBOL();

int xgene_mdio_rgmii_write(struct mii_bus *bus, int phy_id, int reg, u16 data)
{}
EXPORT_SYMBOL();

static u32 xgene_menet_rd_diag_csr(struct xgene_mdio_pdata *pdata, u32 offset)
{}

static void xgene_menet_wr_diag_csr(struct xgene_mdio_pdata *pdata,
				    u32 offset, u32 val)
{}

static int xgene_enet_ecc_init(struct xgene_mdio_pdata *pdata)
{}

static void xgene_gmac_reset(struct xgene_mdio_pdata *pdata)
{}

static int xgene_mdio_reset(struct xgene_mdio_pdata *pdata)
{}

static void xgene_enet_rd_mdio_csr(void __iomem *base_addr,
				   u32 offset, u32 *val)
{}

static void xgene_enet_wr_mdio_csr(void __iomem *base_addr,
				   u32 offset, u32 val)
{}

static int xgene_xfi_mdio_write(struct mii_bus *bus, int phy_id,
				int reg, u16 data)
{}

static int xgene_xfi_mdio_read(struct mii_bus *bus, int phy_id, int reg)
{}

struct phy_device *xgene_enet_phy_register(struct mii_bus *bus, int phy_addr)
{}
EXPORT_SYMBOL();

#ifdef CONFIG_ACPI
static acpi_status acpi_register_phy(acpi_handle handle, u32 lvl,
				     void *context, void **ret)
{}
#endif

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

#ifdef CONFIG_ACPI
static const struct acpi_device_id xgene_mdio_acpi_match[] =;

MODULE_DEVICE_TABLE(acpi, xgene_mdio_acpi_match);
#endif


static int xgene_mdio_probe(struct platform_device *pdev)
{}

static void xgene_mdio_remove(struct platform_device *pdev)
{}

static struct platform_driver xgene_mdio_driver =;

module_platform_driver();

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