linux/drivers/net/phy/qsemi.c

// SPDX-License-Identifier: GPL-2.0+
/*
 * drivers/net/phy/qsemi.c
 *
 * Driver for Quality Semiconductor 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 Quality Semiconductor QS6612 is used on the RPX CLLF                  */

/* register definitions */

#define MII_QS6612_MCR
#define MII_QS6612_FTR
#define MII_QS6612_MCO
#define MII_QS6612_ISR
#define MII_QS6612_IMR
#define MII_QS6612_IMR_INIT
#define MII_QS6612_PCR

#define QS6612_PCR_AN_COMPLETE
#define QS6612_PCR_RLBEN
#define QS6612_PCR_DCREN
#define QS6612_PCR_4B5BEN
#define QS6612_PCR_TX_ISOLATE
#define QS6612_PCR_MLT3_DIS
#define QS6612_PCR_SCRM_DESCRM

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

/* Returns 0, unless there's a write error */
static int qs6612_config_init(struct phy_device *phydev)
{}

static int qs6612_ack_interrupt(struct phy_device *phydev)
{}

static int qs6612_config_intr(struct phy_device *phydev)
{}

static irqreturn_t qs6612_handle_interrupt(struct phy_device *phydev)
{}

static struct phy_driver qs6612_driver[] =;

module_phy_driver(qs6612_driver);

static struct mdio_device_id __maybe_unused qs6612_tbl[] =;

MODULE_DEVICE_TABLE(mdio, qs6612_tbl);