175eba5b6SRobert Mustacchi /******************************************************************************
2c869993eSxy 
3*49b78600SRobert Mustacchi   Copyright (c) 2001-2015, Intel Corporation
475eba5b6SRobert Mustacchi   All rights reserved.
575eba5b6SRobert Mustacchi 
675eba5b6SRobert Mustacchi   Redistribution and use in source and binary forms, with or without
775eba5b6SRobert Mustacchi   modification, are permitted provided that the following conditions are met:
875eba5b6SRobert Mustacchi 
975eba5b6SRobert Mustacchi    1. Redistributions of source code must retain the above copyright notice,
1075eba5b6SRobert Mustacchi       this list of conditions and the following disclaimer.
1175eba5b6SRobert Mustacchi 
1275eba5b6SRobert Mustacchi    2. Redistributions in binary form must reproduce the above copyright
1375eba5b6SRobert Mustacchi       notice, this list of conditions and the following disclaimer in the
1475eba5b6SRobert Mustacchi       documentation and/or other materials provided with the distribution.
1575eba5b6SRobert Mustacchi 
1675eba5b6SRobert Mustacchi    3. Neither the name of the Intel Corporation nor the names of its
1775eba5b6SRobert Mustacchi       contributors may be used to endorse or promote products derived from
1875eba5b6SRobert Mustacchi       this software without specific prior written permission.
1975eba5b6SRobert Mustacchi 
2075eba5b6SRobert Mustacchi   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
2175eba5b6SRobert Mustacchi   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2275eba5b6SRobert Mustacchi   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2375eba5b6SRobert Mustacchi   ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
2475eba5b6SRobert Mustacchi   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
2575eba5b6SRobert Mustacchi   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2675eba5b6SRobert Mustacchi   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
2775eba5b6SRobert Mustacchi   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
2875eba5b6SRobert Mustacchi   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
2975eba5b6SRobert Mustacchi   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
3075eba5b6SRobert Mustacchi   POSSIBILITY OF SUCH DAMAGE.
316d1cdc09SGuoqing Zhu 
3275eba5b6SRobert Mustacchi ******************************************************************************/
3375eba5b6SRobert Mustacchi /*$FreeBSD$*/
34c869993eSxy 
3575eba5b6SRobert Mustacchi #ifndef _E1000_MAC_H_
3675eba5b6SRobert Mustacchi #define _E1000_MAC_H_
37c869993eSxy 
3880a11ad2Schenlu chen - Sun Microsystems - Beijing China void e1000_init_mac_ops_generic(struct e1000_hw *hw);
39c124a83eSRobert Mustacchi #define E1000_REMOVED(a) (0)
4080a11ad2Schenlu chen - Sun Microsystems - Beijing China void e1000_null_mac_generic(struct e1000_hw *hw);
4180a11ad2Schenlu chen - Sun Microsystems - Beijing China s32  e1000_null_ops_generic(struct e1000_hw *hw);
4280a11ad2Schenlu chen - Sun Microsystems - Beijing China s32  e1000_null_link_info(struct e1000_hw *hw, u16 *s, u16 *d);
4380a11ad2Schenlu chen - Sun Microsystems - Beijing China bool e1000_null_mng_mode(struct e1000_hw *hw);
447d46e7adSzhefeng xu - Sun Microsystems - Beijing China void e1000_null_update_mc(struct e1000_hw *hw, u8 *h, u32 a);
4580a11ad2Schenlu chen - Sun Microsystems - Beijing China void e1000_null_write_vfta(struct e1000_hw *hw, u32 a, u32 b);
46c124a83eSRobert Mustacchi int  e1000_null_rar_set(struct e1000_hw *hw, u8 *h, u32 a);
4775eba5b6SRobert Mustacchi s32  e1000_null_set_obff_timer(struct e1000_hw *hw, u32 a);
48c869993eSxy s32  e1000_blink_led_generic(struct e1000_hw *hw);
49c869993eSxy s32  e1000_check_for_copper_link_generic(struct e1000_hw *hw);
50c869993eSxy s32  e1000_check_for_fiber_link_generic(struct e1000_hw *hw);
51c869993eSxy s32  e1000_check_for_serdes_link_generic(struct e1000_hw *hw);
52c869993eSxy s32  e1000_cleanup_led_generic(struct e1000_hw *hw);
5375eba5b6SRobert Mustacchi s32  e1000_commit_fc_settings_generic(struct e1000_hw *hw);
5475eba5b6SRobert Mustacchi s32  e1000_poll_fiber_serdes_link_generic(struct e1000_hw *hw);
55c869993eSxy s32  e1000_config_fc_after_link_up_generic(struct e1000_hw *hw);
56c869993eSxy s32  e1000_disable_pcie_master_generic(struct e1000_hw *hw);
57c869993eSxy s32  e1000_force_mac_fc_generic(struct e1000_hw *hw);
58c869993eSxy s32  e1000_get_auto_rd_done_generic(struct e1000_hw *hw);
5975eba5b6SRobert Mustacchi s32  e1000_get_bus_info_pci_generic(struct e1000_hw *hw);
60c869993eSxy s32  e1000_get_bus_info_pcie_generic(struct e1000_hw *hw);
617d46e7adSzhefeng xu - Sun Microsystems - Beijing China void e1000_set_lan_id_single_port(struct e1000_hw *hw);
6275eba5b6SRobert Mustacchi void e1000_set_lan_id_multi_port_pci(struct e1000_hw *hw);
63c869993eSxy s32  e1000_get_hw_semaphore_generic(struct e1000_hw *hw);
64c869993eSxy s32  e1000_get_speed_and_duplex_copper_generic(struct e1000_hw *hw, u16 *speed,
6575eba5b6SRobert Mustacchi 					       u16 *duplex);
66c869993eSxy s32  e1000_get_speed_and_duplex_fiber_serdes_generic(struct e1000_hw *hw,
6775eba5b6SRobert Mustacchi 						     u16 *speed, u16 *duplex);
68c869993eSxy s32  e1000_id_led_init_generic(struct e1000_hw *hw);
69c869993eSxy s32  e1000_led_on_generic(struct e1000_hw *hw);
70c869993eSxy s32  e1000_led_off_generic(struct e1000_hw *hw);
71c869993eSxy void e1000_update_mc_addr_list_generic(struct e1000_hw *hw,
7275eba5b6SRobert Mustacchi 				       u8 *mc_addr_list, u32 mc_addr_count);
7375eba5b6SRobert Mustacchi s32  e1000_set_default_fc_generic(struct e1000_hw *hw);
74c869993eSxy s32  e1000_set_fc_watermarks_generic(struct e1000_hw *hw);
75c869993eSxy s32  e1000_setup_fiber_serdes_link_generic(struct e1000_hw *hw);
76c869993eSxy s32  e1000_setup_led_generic(struct e1000_hw *hw);
77c869993eSxy s32  e1000_setup_link_generic(struct e1000_hw *hw);
7875eba5b6SRobert Mustacchi s32  e1000_validate_mdi_setting_crossover_generic(struct e1000_hw *hw);
79c869993eSxy s32  e1000_write_8bit_ctrl_reg_generic(struct e1000_hw *hw, u32 reg,
8075eba5b6SRobert Mustacchi 				       u32 offset, u8 data);
81c869993eSxy 
82c869993eSxy u32  e1000_hash_mc_addr_generic(struct e1000_hw *hw, u8 *mc_addr);
83c869993eSxy 
84c869993eSxy void e1000_clear_hw_cntrs_base_generic(struct e1000_hw *hw);
85c869993eSxy void e1000_clear_vfta_generic(struct e1000_hw *hw);
86c869993eSxy void e1000_init_rx_addrs_generic(struct e1000_hw *hw, u16 rar_count);
87c869993eSxy void e1000_pcix_mmrbc_workaround_generic(struct e1000_hw *hw);
88c869993eSxy void e1000_put_hw_semaphore_generic(struct e1000_hw *hw);
89c869993eSxy s32  e1000_check_alt_mac_addr_generic(struct e1000_hw *hw);
90c869993eSxy void e1000_reset_adaptive_generic(struct e1000_hw *hw);
91c869993eSxy void e1000_set_pcie_no_snoop_generic(struct e1000_hw *hw, u32 no_snoop);
92c869993eSxy void e1000_update_adaptive_generic(struct e1000_hw *hw);
93c869993eSxy void e1000_write_vfta_generic(struct e1000_hw *hw, u32 offset, u32 value);
94c869993eSxy 
95c869993eSxy #endif
96