linux/drivers/net/dsa/mv88e6xxx/phy.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Marvell 88e6xxx Ethernet switch PHY and PPU support
 *
 * Copyright (c) 2008 Marvell Semiconductor
 *
 * Copyright (c) 2017 Andrew Lunn <[email protected]>
 */

#include <linux/mdio.h>
#include <linux/module.h>

#include "chip.h"
#include "phy.h"

int mv88e6165_phy_read(struct mv88e6xxx_chip *chip, struct mii_bus *bus,
		       int addr, int reg, u16 *val)
{}

int mv88e6165_phy_write(struct mv88e6xxx_chip *chip, struct mii_bus *bus,
			int addr, int reg, u16 val)
{}

int mv88e6xxx_phy_read(struct mv88e6xxx_chip *chip, int phy, int reg, u16 *val)
{}

int mv88e6xxx_phy_write(struct mv88e6xxx_chip *chip, int phy, int reg, u16 val)
{}

int mv88e6xxx_phy_read_c45(struct mv88e6xxx_chip *chip, int phy, int devad,
			   int reg, u16 *val)
{}

int mv88e6xxx_phy_write_c45(struct mv88e6xxx_chip *chip, int phy, int devad,
			    int reg, u16 val)
{}

static int mv88e6xxx_phy_page_get(struct mv88e6xxx_chip *chip, int phy, u8 page)
{}

static void mv88e6xxx_phy_page_put(struct mv88e6xxx_chip *chip, int phy)
{}

int mv88e6xxx_phy_page_read(struct mv88e6xxx_chip *chip, int phy,
			    u8 page, int reg, u16 *val)
{}

int mv88e6xxx_phy_page_write(struct mv88e6xxx_chip *chip, int phy,
			     u8 page, int reg, u16 val)
{}

static int mv88e6xxx_phy_ppu_disable(struct mv88e6xxx_chip *chip)
{}

static int mv88e6xxx_phy_ppu_enable(struct mv88e6xxx_chip *chip)
{}

static void mv88e6xxx_phy_ppu_reenable_work(struct work_struct *ugly)
{}

static void mv88e6xxx_phy_ppu_reenable_timer(struct timer_list *t)
{}

static int mv88e6xxx_phy_ppu_access_get(struct mv88e6xxx_chip *chip)
{}

static void mv88e6xxx_phy_ppu_access_put(struct mv88e6xxx_chip *chip)
{}

static void mv88e6xxx_phy_ppu_state_init(struct mv88e6xxx_chip *chip)
{}

static void mv88e6xxx_phy_ppu_state_destroy(struct mv88e6xxx_chip *chip)
{}

int mv88e6185_phy_ppu_read(struct mv88e6xxx_chip *chip, struct mii_bus *bus,
			   int addr, int reg, u16 *val)
{}

int mv88e6185_phy_ppu_write(struct mv88e6xxx_chip *chip, struct mii_bus *bus,
			    int addr, int reg, u16 val)
{}

void mv88e6xxx_phy_init(struct mv88e6xxx_chip *chip)
{}

void mv88e6xxx_phy_destroy(struct mv88e6xxx_chip *chip)
{}

int mv88e6xxx_phy_setup(struct mv88e6xxx_chip *chip)
{}