drivers:misc:ti-st: remove rfkill dependency
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / drivers / net / pch_gbe / pch_gbe_phy.h
blob03264dc7b5ec8a294da8c4e662f348ca74230d32
1 /*
2 * Copyright (C) 1999 - 2010 Intel Corporation.
3 * Copyright (C) 2010 OKI SEMICONDUCTOR Co., LTD.
5 * This code was derived from the Intel e1000e Linux driver.
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; version 2 of the License.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
20 #ifndef _PCH_GBE_PHY_H_
21 #define _PCH_GBE_PHY_H_
23 #define PCH_GBE_PHY_REGS_LEN 32
24 #define PCH_GBE_PHY_RESET_DELAY_US 10
25 #define PCH_GBE_MAC_IFOP_RGMII
27 s32 pch_gbe_phy_get_id(struct pch_gbe_hw *hw);
28 s32 pch_gbe_phy_read_reg_miic(struct pch_gbe_hw *hw, u32 offset, u16 *data);
29 s32 pch_gbe_phy_write_reg_miic(struct pch_gbe_hw *hw, u32 offset, u16 data);
30 void pch_gbe_phy_sw_reset(struct pch_gbe_hw *hw);
31 void pch_gbe_phy_hw_reset(struct pch_gbe_hw *hw);
32 void pch_gbe_phy_power_up(struct pch_gbe_hw *hw);
33 void pch_gbe_phy_power_down(struct pch_gbe_hw *hw);
34 void pch_gbe_phy_set_rgmii(struct pch_gbe_hw *hw);
35 void pch_gbe_phy_init_setting(struct pch_gbe_hw *hw);
37 #endif /* _PCH_GBE_PHY_H_ */