linux/drivers/net/phy/cicada.c

// SPDX-License-Identifier: GPL-2.0+
/*
 * drivers/net/phy/cicada.c
 *
 * Driver for Cicada 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 <linux/io.h>
#include <asm/irq.h>
#include <linux/uaccess.h>

/* Cicada Extended Control Register 1 */
#define MII_CIS8201_EXT_CON1
#define MII_CIS8201_EXTCON1_INIT

/* Cicada Interrupt Mask Register */
#define MII_CIS8201_IMASK
#define MII_CIS8201_IMASK_IEN
#define MII_CIS8201_IMASK_SPEED
#define MII_CIS8201_IMASK_LINK
#define MII_CIS8201_IMASK_DUPLEX
#define MII_CIS8201_IMASK_MASK

/* Cicada Interrupt Status Register */
#define MII_CIS8201_ISTAT
#define MII_CIS8201_ISTAT_STATUS
#define MII_CIS8201_ISTAT_SPEED
#define MII_CIS8201_ISTAT_LINK
#define MII_CIS8201_ISTAT_DUPLEX

/* Cicada Auxiliary Control/Status Register */
#define MII_CIS8201_AUX_CONSTAT
#define MII_CIS8201_AUXCONSTAT_INIT
#define MII_CIS8201_AUXCONSTAT_DUPLEX
#define MII_CIS8201_AUXCONSTAT_SPEED
#define MII_CIS8201_AUXCONSTAT_GBIT
#define MII_CIS8201_AUXCONSTAT_100

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

static int cis820x_config_init(struct phy_device *phydev)
{}

static int cis820x_ack_interrupt(struct phy_device *phydev)
{}

static int cis820x_config_intr(struct phy_device *phydev)
{}

static irqreturn_t cis820x_handle_interrupt(struct phy_device *phydev)
{}

/* Cicada 8201, a.k.a Vitesse VSC8201 */
static struct phy_driver cis820x_driver[] =;

module_phy_driver(cis820x_driver);

static struct mdio_device_id __maybe_unused cicada_tbl[] =;

MODULE_DEVICE_TABLE(mdio, cicada_tbl);