/* * Copyright (C) 2015 Broadcom Corporation * * 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 version 2. * * This program is distributed "as is" WITHOUT ANY WARRANTY of any * kind, whether express or implied; without even the implied warranty * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */#ifndef _LINUX_BCM_PHY_LIB_H#define _LINUX_BCM_PHY_LIB_H#include <linux/phy.h>intbcm_phy_write_exp(structphy_device*phydev,u16reg,u16val);intbcm_phy_read_exp(structphy_device*phydev,u16reg);intbcm_phy_write_misc(structphy_device*phydev,u16reg,u16chl,u16value);intbcm_phy_read_misc(structphy_device*phydev,u16reg,u16chl);intbcm_phy_write_shadow(structphy_device*phydev,u16shadow,u16val);intbcm_phy_read_shadow(structphy_device*phydev,u16shadow);intbcm_phy_ack_intr(structphy_device*phydev);intbcm_phy_config_intr(structphy_device*phydev);intbcm_phy_enable_apd(structphy_device*phydev,booldll_pwr_down);intbcm_phy_enable_eee(structphy_device*phydev);#endif /* _LINUX_BCM_PHY_LIB_H */