linux/drivers/net/phy/davicom.c

// SPDX-License-Identifier: GPL-2.0+
/*
 * drivers/net/phy/davicom.c
 *
 * Driver for Davicom PHYs
 *
 * Author: Andy Fleming
 *
 * Copyright (c) 2004 Freescale Semiconductor, Inc.
 */
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/errno.h>
#include <linux/unistd.h>
#include <linux/interrupt.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/skbuff.h>
#include <linux/spinlock.h>
#include <linux/mm.h>
#include <linux/module.h>
#include <linux/mii.h>
#include <linux/ethtool.h>
#include <linux/phy.h>

#include <asm/io.h>
#include <asm/irq.h>
#include <linux/uaccess.h>

#define MII_DM9161_SCR
#define MII_DM9161_SCR_INIT
#define MII_DM9161_SCR_RMII

/* DM9161 Interrupt Register */
#define MII_DM9161_INTR
#define MII_DM9161_INTR_PEND
#define MII_DM9161_INTR_DPLX_MASK
#define MII_DM9161_INTR_SPD_MASK
#define MII_DM9161_INTR_LINK_MASK
#define MII_DM9161_INTR_MASK
#define MII_DM9161_INTR_DPLX_CHANGE
#define MII_DM9161_INTR_SPD_CHANGE
#define MII_DM9161_INTR_LINK_CHANGE
#define MII_DM9161_INTR_INIT
#define MII_DM9161_INTR_STOP
#define MII_DM9161_INTR_CHANGE

/* DM9161 10BT Configuration/Status */
#define MII_DM9161_10BTCSR
#define MII_DM9161_10BTCSR_INIT

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


static int dm9161_ack_interrupt(struct phy_device *phydev)
{}

#define DM9161_DELAY
static int dm9161_config_intr(struct phy_device *phydev)
{}

static irqreturn_t dm9161_handle_interrupt(struct phy_device *phydev)
{}

static int dm9161_config_aneg(struct phy_device *phydev)
{}

static int dm9161_config_init(struct phy_device *phydev)
{}

static struct phy_driver dm91xx_driver[] =;

module_phy_driver(dm91xx_driver);

static struct mdio_device_id __maybe_unused davicom_tbl[] =;

MODULE_DEVICE_TABLE(mdio, davicom_tbl);