linux/drivers/net/phy/mdio_device.c

// SPDX-License-Identifier: GPL-2.0+
/* Framework for MDIO devices, other than PHYs.
 *
 * Copyright (c) 2016 Andrew Lunn <[email protected]>
 */

#define pr_fmt(fmt)

#include <linux/delay.h>
#include <linux/errno.h>
#include <linux/gpio.h>
#include <linux/gpio/consumer.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/kernel.h>
#include <linux/mdio.h>
#include <linux/mii.h>
#include <linux/module.h>
#include <linux/phy.h>
#include <linux/reset.h>
#include <linux/slab.h>
#include <linux/string.h>
#include <linux/unistd.h>
#include <linux/property.h>

void mdio_device_free(struct mdio_device *mdiodev)
{}
EXPORT_SYMBOL();

static void mdio_device_release(struct device *dev)
{}

int mdio_device_bus_match(struct device *dev, const struct device_driver *drv)
{}

struct mdio_device *mdio_device_create(struct mii_bus *bus, int addr)
{}
EXPORT_SYMBOL();

/**
 * mdio_device_register - Register the mdio device on the MDIO bus
 * @mdiodev: mdio_device structure to be added to the MDIO bus
 */
int mdio_device_register(struct mdio_device *mdiodev)
{}
EXPORT_SYMBOL();

/**
 * mdio_device_remove - Remove a previously registered mdio device from the
 *			MDIO bus
 * @mdiodev: mdio_device structure to remove
 *
 * This doesn't free the mdio_device itself, it merely reverses the effects
 * of mdio_device_register(). Use mdio_device_free() to free the device
 * after calling this function.
 */
void mdio_device_remove(struct mdio_device *mdiodev)
{}
EXPORT_SYMBOL();

void mdio_device_reset(struct mdio_device *mdiodev, int value)
{}
EXPORT_SYMBOL();

/**
 * mdio_probe - probe an MDIO device
 * @dev: device to probe
 *
 * Description: Take care of setting up the mdio_device structure
 * and calling the driver to probe the device.
 */
static int mdio_probe(struct device *dev)
{}

static int mdio_remove(struct device *dev)
{}

static void mdio_shutdown(struct device *dev)
{}

/**
 * mdio_driver_register - register an mdio_driver with the MDIO layer
 * @drv: new mdio_driver to register
 */
int mdio_driver_register(struct mdio_driver *drv)
{}
EXPORT_SYMBOL();

void mdio_driver_unregister(struct mdio_driver *drv)
{}
EXPORT_SYMBOL();