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

// SPDX-License-Identifier: GPL-2.0
/*
 * GPIO based MDIO bitbang driver.
 * Supports OpenFirmware.
 *
 * Copyright (c) 2008 CSE Semaphore Belgium.
 *  by Laurent Pinchart <[email protected]>
 *
 * Copyright (C) 2008, Paulius Zaleckas <[email protected]>
 *
 * Based on earlier work by
 *
 * Copyright (c) 2003 Intracom S.A.
 *  by Pantelis Antoniou <[email protected]>
 *
 * 2005 (c) MontaVista Software, Inc.
 * Vitaly Bordug <[email protected]>
 */

#include <linux/gpio/consumer.h>
#include <linux/interrupt.h>
#include <linux/mdio-bitbang.h>
#include <linux/mdio-gpio.h>
#include <linux/module.h>
#include <linux/of_mdio.h>
#include <linux/platform_data/mdio-gpio.h>
#include <linux/platform_device.h>
#include <linux/slab.h>

struct mdio_gpio_info {};

static int mdio_gpio_get_data(struct device *dev,
			      struct mdio_gpio_info *bitbang)
{}

static void mdio_dir(struct mdiobb_ctrl *ctrl, int dir)
{}

static int mdio_get(struct mdiobb_ctrl *ctrl)
{}

static void mdio_set(struct mdiobb_ctrl *ctrl, int what)
{}

static void mdc_set(struct mdiobb_ctrl *ctrl, int what)
{}

static const struct mdiobb_ops mdio_gpio_ops =;

static struct mii_bus *mdio_gpio_bus_init(struct device *dev,
					  struct mdio_gpio_info *bitbang,
					  int bus_id)
{}

static void mdio_gpio_bus_deinit(struct device *dev)
{}

static void mdio_gpio_bus_destroy(struct device *dev)
{}

static int mdio_gpio_probe(struct platform_device *pdev)
{}

static void mdio_gpio_remove(struct platform_device *pdev)
{}

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

static struct platform_driver mdio_gpio_driver =;

module_platform_driver();

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