linux/drivers/net/ethernet/qualcomm/emac/emac-phy.c

// SPDX-License-Identifier: GPL-2.0-only
/* Copyright (c) 2013-2016, The Linux Foundation. All rights reserved.
 */

/* Qualcomm Technologies, Inc. EMAC PHY Controller driver.
 */

#include <linux/of_mdio.h>
#include <linux/phy.h>
#include <linux/iopoll.h>
#include <linux/acpi.h>
#include "emac.h"

/* EMAC base register offsets */
#define EMAC_MDIO_CTRL
#define EMAC_PHY_STS
#define EMAC_MDIO_EX_CTRL

/* EMAC_MDIO_CTRL */
#define MDIO_MODE
#define MDIO_PR
#define MDIO_AP_EN
#define MDIO_BUSY
#define MDIO_CLK_SEL_BMSK
#define MDIO_CLK_SEL_SHFT
#define MDIO_START
#define SUP_PREAMBLE
#define MDIO_RD_NWR
#define MDIO_REG_ADDR_BMSK
#define MDIO_REG_ADDR_SHFT
#define MDIO_DATA_BMSK
#define MDIO_DATA_SHFT

/* EMAC_PHY_STS */
#define PHY_ADDR_BMSK
#define PHY_ADDR_SHFT

#define MDIO_CLK_25_4
#define MDIO_CLK_25_28

#define MDIO_WAIT_TIMES
#define MDIO_STATUS_DELAY_TIME

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

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

/* Configure the MDIO bus and connect the external PHY */
int emac_phy_config(struct platform_device *pdev, struct emac_adapter *adpt)
{}