linux/drivers/net/phy/lxt.c

// SPDX-License-Identifier: GPL-2.0+
/*
 * drivers/net/phy/lxt.c
 *
 * Driver for Intel LXT 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>

/* The Level one LXT970 is used by many boards				     */

#define MII_LXT970_IER

#define MII_LXT970_IER_IEN

#define MII_LXT970_ISR

#define MII_LXT970_IRS_MINT

#define MII_LXT970_CONFIG

/* ------------------------------------------------------------------------- */
/* The Level one LXT971 is used on some of my custom boards                  */

/* register definitions for the 971 */
#define MII_LXT971_IER
#define MII_LXT971_IER_IEN

#define MII_LXT971_ISR
#define MII_LXT971_ISR_MASK

/* register definitions for the 973 */
#define MII_LXT973_PCR
#define PCR_FIBER_SELECT

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

static int lxt970_ack_interrupt(struct phy_device *phydev)
{}

static int lxt970_config_intr(struct phy_device *phydev)
{}

static irqreturn_t lxt970_handle_interrupt(struct phy_device *phydev)
{}

static int lxt970_config_init(struct phy_device *phydev)
{}


static int lxt971_ack_interrupt(struct phy_device *phydev)
{}

static int lxt971_config_intr(struct phy_device *phydev)
{}

static irqreturn_t lxt971_handle_interrupt(struct phy_device *phydev)
{}

/*
 * A2 version of LXT973 chip has an ERRATA: it randomly return the contents
 * of the previous even register when you read a odd register regularly
 */

static int lxt973a2_update_link(struct phy_device *phydev)
{}

static int lxt973a2_read_status(struct phy_device *phydev)
{}

static int lxt973_probe(struct phy_device *phydev)
{}

static int lxt973_config_aneg(struct phy_device *phydev)
{}

static struct phy_driver lxt97x_driver[] =;

module_phy_driver(lxt97x_driver);

static struct mdio_device_id __maybe_unused lxt_tbl[] =;

MODULE_DEVICE_TABLE(mdio, lxt_tbl);