177555ee7228234257957fd54daa0b69178906320Masayuki Ohtake/* 277555ee7228234257957fd54daa0b69178906320Masayuki Ohtake * Copyright (C) 1999 - 2010 Intel Corporation. 377555ee7228234257957fd54daa0b69178906320Masayuki Ohtake * Copyright (C) 2010 OKI SEMICONDUCTOR Co., LTD. 477555ee7228234257957fd54daa0b69178906320Masayuki Ohtake * 577555ee7228234257957fd54daa0b69178906320Masayuki Ohtake * This code was derived from the Intel e1000e Linux driver. 677555ee7228234257957fd54daa0b69178906320Masayuki Ohtake * 777555ee7228234257957fd54daa0b69178906320Masayuki Ohtake * This program is free software; you can redistribute it and/or modify 877555ee7228234257957fd54daa0b69178906320Masayuki Ohtake * it under the terms of the GNU General Public License as published by 977555ee7228234257957fd54daa0b69178906320Masayuki Ohtake * the Free Software Foundation; version 2 of the License. 1077555ee7228234257957fd54daa0b69178906320Masayuki Ohtake * 1177555ee7228234257957fd54daa0b69178906320Masayuki Ohtake * This program is distributed in the hope that it will be useful, 1277555ee7228234257957fd54daa0b69178906320Masayuki Ohtake * but WITHOUT ANY WARRANTY; without even the implied warranty of 1377555ee7228234257957fd54daa0b69178906320Masayuki Ohtake * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1477555ee7228234257957fd54daa0b69178906320Masayuki Ohtake * GNU General Public License for more details. 1577555ee7228234257957fd54daa0b69178906320Masayuki Ohtake * 1677555ee7228234257957fd54daa0b69178906320Masayuki Ohtake * You should have received a copy of the GNU General Public License 1777555ee7228234257957fd54daa0b69178906320Masayuki Ohtake * along with this program; if not, write to the Free Software 1877555ee7228234257957fd54daa0b69178906320Masayuki Ohtake * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. 1977555ee7228234257957fd54daa0b69178906320Masayuki Ohtake */ 2077555ee7228234257957fd54daa0b69178906320Masayuki Ohtake#ifndef _PCH_GBE_API_H_ 2177555ee7228234257957fd54daa0b69178906320Masayuki Ohtake#define _PCH_GBE_API_H_ 2277555ee7228234257957fd54daa0b69178906320Masayuki Ohtake 2377555ee7228234257957fd54daa0b69178906320Masayuki Ohtake#include "pch_gbe_phy.h" 2477555ee7228234257957fd54daa0b69178906320Masayuki Ohtake 2577555ee7228234257957fd54daa0b69178906320Masayuki Ohtakes32 pch_gbe_hal_setup_init_funcs(struct pch_gbe_hw *hw); 2677555ee7228234257957fd54daa0b69178906320Masayuki Ohtakevoid pch_gbe_hal_get_bus_info(struct pch_gbe_hw *hw); 2777555ee7228234257957fd54daa0b69178906320Masayuki Ohtakes32 pch_gbe_hal_init_hw(struct pch_gbe_hw *hw); 2877555ee7228234257957fd54daa0b69178906320Masayuki Ohtakes32 pch_gbe_hal_read_phy_reg(struct pch_gbe_hw *hw, u32 offset, u16 *data); 2977555ee7228234257957fd54daa0b69178906320Masayuki Ohtakes32 pch_gbe_hal_write_phy_reg(struct pch_gbe_hw *hw, u32 offset, u16 data); 3077555ee7228234257957fd54daa0b69178906320Masayuki Ohtakevoid pch_gbe_hal_phy_hw_reset(struct pch_gbe_hw *hw); 3177555ee7228234257957fd54daa0b69178906320Masayuki Ohtakevoid pch_gbe_hal_phy_sw_reset(struct pch_gbe_hw *hw); 3277555ee7228234257957fd54daa0b69178906320Masayuki Ohtakes32 pch_gbe_hal_read_mac_addr(struct pch_gbe_hw *hw); 3377555ee7228234257957fd54daa0b69178906320Masayuki Ohtakevoid pch_gbe_hal_power_up_phy(struct pch_gbe_hw *hw); 3477555ee7228234257957fd54daa0b69178906320Masayuki Ohtakevoid pch_gbe_hal_power_down_phy(struct pch_gbe_hw *hw); 3577555ee7228234257957fd54daa0b69178906320Masayuki Ohtake 3677555ee7228234257957fd54daa0b69178906320Masayuki Ohtake#endif 37