linux/drivers/net/ethernet/freescale/enetc/enetc_mdio.c

// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
/* Copyright 2019 NXP */

#include <linux/fsl/enetc_mdio.h>
#include <linux/mdio.h>
#include <linux/of_mdio.h>
#include <linux/iopoll.h>
#include <linux/of.h>

#include "enetc_pf.h"

#define ENETC_MDIO_CFG
#define ENETC_MDIO_CTL
#define ENETC_MDIO_DATA
#define ENETC_MDIO_ADDR

#define MDIO_CFG_CLKDIV(x)
#define MDIO_CFG_BSY
#define MDIO_CFG_RD_ER
#define MDIO_CFG_HOLD(x)
#define MDIO_CFG_ENC45
 /* external MDIO only - driven on neg MDC edge */
#define MDIO_CFG_NEG

#define ENETC_EMDIO_CFG

#define MDIO_CTL_DEV_ADDR(x)
#define MDIO_CTL_PORT_ADDR(x)
#define MDIO_CTL_READ

static inline u32 enetc_mdio_rd(struct enetc_mdio_priv *mdio_priv, int off)
{}

static inline void enetc_mdio_wr(struct enetc_mdio_priv *mdio_priv, int off,
				 u32 val)
{}

static bool enetc_mdio_is_busy(struct enetc_mdio_priv *mdio_priv)
{}

static int enetc_mdio_wait_complete(struct enetc_mdio_priv *mdio_priv)
{}

int enetc_mdio_write_c22(struct mii_bus *bus, int phy_id, int regnum,
			 u16 value)
{}
EXPORT_SYMBOL_GPL();

int enetc_mdio_write_c45(struct mii_bus *bus, int phy_id, int dev_addr,
			 int regnum, u16 value)
{}
EXPORT_SYMBOL_GPL();

int enetc_mdio_read_c22(struct mii_bus *bus, int phy_id, int regnum)
{}
EXPORT_SYMBOL_GPL();

int enetc_mdio_read_c45(struct mii_bus *bus, int phy_id, int dev_addr,
			int regnum)
{}
EXPORT_SYMBOL_GPL();

struct enetc_hw *enetc_hw_alloc(struct device *dev, void __iomem *port_regs)
{}
EXPORT_SYMBOL_GPL();

/* Lock for MDIO access errata on LS1028A */
DEFINE_RWLOCK();
EXPORT_SYMBOL_GPL();