mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-19 00:03:02 +07:00
2874c5fd28
Based on 1 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation either version 2 of the license or at your option any later version extracted by the scancode license scanner the SPDX license identifier GPL-2.0-or-later has been chosen to replace the boilerplate/reference in 3029 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Allison Randal <allison@lohutok.net> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190527070032.746973796@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
40 lines
1.4 KiB
C
40 lines
1.4 KiB
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Marvell 88E6xxx PHY access
|
|
*
|
|
* Copyright (c) 2008 Marvell Semiconductor
|
|
*
|
|
* Copyright (c) 2017 Andrew Lunn <andrew@lunn.ch>
|
|
*/
|
|
|
|
#ifndef _MV88E6XXX_PHY_H
|
|
#define _MV88E6XXX_PHY_H
|
|
|
|
#define MV88E6XXX_PHY_PAGE 0x16
|
|
#define MV88E6XXX_PHY_PAGE_COPPER 0x00
|
|
|
|
/* PHY Registers accesses implementations */
|
|
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 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);
|
|
|
|
/* Generic PHY operations */
|
|
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_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);
|
|
void mv88e6xxx_phy_init(struct mv88e6xxx_chip *chip);
|
|
void mv88e6xxx_phy_destroy(struct mv88e6xxx_chip *chip);
|
|
int mv88e6xxx_phy_setup(struct mv88e6xxx_chip *chip);
|
|
|
|
#endif /*_MV88E6XXX_PHY_H */
|