phy.h (82d72a1b9967cff4908f22c57536c3660f794401) phy.h (ed6fad3e25e945e7042a53e129adde6a27476c90)
1/*
2 * Copyright 2011 Freescale Semiconductor, Inc.
3 * Andy Fleming <afleming@gmail.com>
4 *
5 * SPDX-License-Identifier: GPL-2.0+
6 *
7 * This file pretty much stolen from Linux's mii.h/ethtool.h/phy.h
8 */

--- 250 unchanged lines hidden (view full) ---

259int phy_marvell_init(void);
260int phy_micrel_init(void);
261int phy_natsemi_init(void);
262int phy_realtek_init(void);
263int phy_smsc_init(void);
264int phy_teranetics_init(void);
265int phy_ti_init(void);
266int phy_vitesse_init(void);
1/*
2 * Copyright 2011 Freescale Semiconductor, Inc.
3 * Andy Fleming <afleming@gmail.com>
4 *
5 * SPDX-License-Identifier: GPL-2.0+
6 *
7 * This file pretty much stolen from Linux's mii.h/ethtool.h/phy.h
8 */

--- 250 unchanged lines hidden (view full) ---

259int phy_marvell_init(void);
260int phy_micrel_init(void);
261int phy_natsemi_init(void);
262int phy_realtek_init(void);
263int phy_smsc_init(void);
264int phy_teranetics_init(void);
265int phy_ti_init(void);
266int phy_vitesse_init(void);
267int phy_xilinx_init(void);
267
268int board_phy_config(struct phy_device *phydev);
269int get_phy_id(struct mii_dev *bus, int addr, int devad, u32 *phy_id);
270
271/**
272 * phy_get_interface_by_name() - Look up a PHY interface name
273 *
274 * @str: PHY interface name, e.g. "mii"
275 * @return PHY_INTERFACE_MODE_... value, or -1 if not found
276 */
277int phy_get_interface_by_name(const char *str);
278
279/* PHY UIDs for various PHYs that are referenced in external code */
280#define PHY_UID_CS4340 0x13e51002
281#define PHY_UID_TN2020 0x00a19410
282
283#endif
268
269int board_phy_config(struct phy_device *phydev);
270int get_phy_id(struct mii_dev *bus, int addr, int devad, u32 *phy_id);
271
272/**
273 * phy_get_interface_by_name() - Look up a PHY interface name
274 *
275 * @str: PHY interface name, e.g. "mii"
276 * @return PHY_INTERFACE_MODE_... value, or -1 if not found
277 */
278int phy_get_interface_by_name(const char *str);
279
280/* PHY UIDs for various PHYs that are referenced in external code */
281#define PHY_UID_CS4340 0x13e51002
282#define PHY_UID_TN2020 0x00a19410
283
284#endif