175eba5b6SRobert Mustacchi /****************************************************************************** 275eba5b6SRobert Mustacchi 3*42cc51e0SRobert 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. 3175eba5b6SRobert Mustacchi 3275eba5b6SRobert Mustacchi ******************************************************************************/ 3375eba5b6SRobert Mustacchi /*$FreeBSD$*/ 3475eba5b6SRobert Mustacchi 3575eba5b6SRobert Mustacchi #ifndef _E1000_MAC_H_ 3675eba5b6SRobert Mustacchi #define _E1000_MAC_H_ 3775eba5b6SRobert Mustacchi 3875eba5b6SRobert Mustacchi void e1000_init_mac_ops_generic(struct e1000_hw *hw); 39c124a83eSRobert Mustacchi #define E1000_REMOVED(a) (0) 4075eba5b6SRobert Mustacchi void e1000_null_mac_generic(struct e1000_hw *hw); 4175eba5b6SRobert Mustacchi s32 e1000_null_ops_generic(struct e1000_hw *hw); 4275eba5b6SRobert Mustacchi s32 e1000_null_link_info(struct e1000_hw *hw, u16 *s, u16 *d); 4375eba5b6SRobert Mustacchi bool e1000_null_mng_mode(struct e1000_hw *hw); 4475eba5b6SRobert Mustacchi void e1000_null_update_mc(struct e1000_hw *hw, u8 *h, u32 a); 4575eba5b6SRobert Mustacchi 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); 4875eba5b6SRobert Mustacchi s32 e1000_blink_led_generic(struct e1000_hw *hw); 4975eba5b6SRobert Mustacchi s32 e1000_check_for_copper_link_generic(struct e1000_hw *hw); 5075eba5b6SRobert Mustacchi s32 e1000_check_for_fiber_link_generic(struct e1000_hw *hw); 5175eba5b6SRobert Mustacchi s32 e1000_check_for_serdes_link_generic(struct e1000_hw *hw); 5275eba5b6SRobert Mustacchi 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); 5575eba5b6SRobert Mustacchi s32 e1000_config_fc_after_link_up_generic(struct e1000_hw *hw); 5675eba5b6SRobert Mustacchi s32 e1000_disable_pcie_master_generic(struct e1000_hw *hw); 5775eba5b6SRobert Mustacchi s32 e1000_force_mac_fc_generic(struct e1000_hw *hw); 5875eba5b6SRobert Mustacchi s32 e1000_get_auto_rd_done_generic(struct e1000_hw *hw); 5975eba5b6SRobert Mustacchi s32 e1000_get_bus_info_pci_generic(struct e1000_hw *hw); 6075eba5b6SRobert Mustacchi s32 e1000_get_bus_info_pcie_generic(struct e1000_hw *hw); 6175eba5b6SRobert Mustacchi 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); 6375eba5b6SRobert Mustacchi s32 e1000_get_hw_semaphore_generic(struct e1000_hw *hw); 6475eba5b6SRobert Mustacchi s32 e1000_get_speed_and_duplex_copper_generic(struct e1000_hw *hw, u16 *speed, 6575eba5b6SRobert Mustacchi u16 *duplex); 6675eba5b6SRobert Mustacchi s32 e1000_get_speed_and_duplex_fiber_serdes_generic(struct e1000_hw *hw, 6775eba5b6SRobert Mustacchi u16 *speed, u16 *duplex); 6875eba5b6SRobert Mustacchi s32 e1000_id_led_init_generic(struct e1000_hw *hw); 6975eba5b6SRobert Mustacchi s32 e1000_led_on_generic(struct e1000_hw *hw); 7075eba5b6SRobert Mustacchi s32 e1000_led_off_generic(struct e1000_hw *hw); 7175eba5b6SRobert Mustacchi 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); 7475eba5b6SRobert Mustacchi s32 e1000_set_fc_watermarks_generic(struct e1000_hw *hw); 7575eba5b6SRobert Mustacchi s32 e1000_setup_fiber_serdes_link_generic(struct e1000_hw *hw); 7675eba5b6SRobert Mustacchi s32 e1000_setup_led_generic(struct e1000_hw *hw); 7775eba5b6SRobert Mustacchi s32 e1000_setup_link_generic(struct e1000_hw *hw); 7875eba5b6SRobert Mustacchi s32 e1000_validate_mdi_setting_crossover_generic(struct e1000_hw *hw); 7975eba5b6SRobert Mustacchi s32 e1000_write_8bit_ctrl_reg_generic(struct e1000_hw *hw, u32 reg, 8075eba5b6SRobert Mustacchi u32 offset, u8 data); 8175eba5b6SRobert Mustacchi 8275eba5b6SRobert Mustacchi u32 e1000_hash_mc_addr_generic(struct e1000_hw *hw, u8 *mc_addr); 8375eba5b6SRobert Mustacchi 8475eba5b6SRobert Mustacchi void e1000_clear_hw_cntrs_base_generic(struct e1000_hw *hw); 8575eba5b6SRobert Mustacchi void e1000_clear_vfta_generic(struct e1000_hw *hw); 8675eba5b6SRobert Mustacchi void e1000_init_rx_addrs_generic(struct e1000_hw *hw, u16 rar_count); 8775eba5b6SRobert Mustacchi void e1000_pcix_mmrbc_workaround_generic(struct e1000_hw *hw); 8875eba5b6SRobert Mustacchi void e1000_put_hw_semaphore_generic(struct e1000_hw *hw); 8975eba5b6SRobert Mustacchi s32 e1000_check_alt_mac_addr_generic(struct e1000_hw *hw); 9075eba5b6SRobert Mustacchi void e1000_reset_adaptive_generic(struct e1000_hw *hw); 9175eba5b6SRobert Mustacchi void e1000_set_pcie_no_snoop_generic(struct e1000_hw *hw, u32 no_snoop); 9275eba5b6SRobert Mustacchi void e1000_update_adaptive_generic(struct e1000_hw *hw); 9375eba5b6SRobert Mustacchi void e1000_write_vfta_generic(struct e1000_hw *hw, u32 offset, u32 value); 9475eba5b6SRobert Mustacchi 9575eba5b6SRobert Mustacchi #endif 96