#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/mii.h>
#include <linux/phy.h>
#define PHY_ID_AC101L …
#define PHY_ID_AM79C874 …
#define MII_AM79C_IR …
#define MII_AM79C_IR_EN_LINK …
#define MII_AM79C_IR_EN_ANEG …
#define MII_AM79C_IR_IMASK_INIT …
#define MII_AM79C_IR_LINK_DOWN …
#define MII_AM79C_IR_ANEG_DONE …
#define MII_AM79C_IR_IMASK_STAT …
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;
static int am79c_ack_interrupt(struct phy_device *phydev)
{ … }
static int am79c_config_init(struct phy_device *phydev)
{ … }
static int am79c_config_intr(struct phy_device *phydev)
{ … }
static irqreturn_t am79c_handle_interrupt(struct phy_device *phydev)
{ … }
static struct phy_driver am79c_drivers[] = …;
module_phy_driver(am79c_drivers);
static struct mdio_device_id __maybe_unused amd_tbl[] = …;
MODULE_DEVICE_TABLE(mdio, amd_tbl);