Print this page
3014 Intel X540 Support (fix lint)


  19   
  20   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  21   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
  22   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
  23   ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 
  24   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 
  25   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 
  26   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 
  27   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 
  28   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
  29   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  30   POSSIBILITY OF SUCH DAMAGE.
  31 
  32 ******************************************************************************/
  33 /*$FreeBSD: src/sys/dev/ixgbe/ixgbe_common.h,v 1.12 2012/07/05 20:51:44 jfv Exp $*/
  34 
  35 #ifndef _IXGBE_COMMON_H_
  36 #define _IXGBE_COMMON_H_
  37 
  38 #include "ixgbe_type.h"




  39 #define IXGBE_WRITE_REG64(hw, reg, value) \
  40         do { \
  41                 IXGBE_WRITE_REG(hw, reg, (u32) value); \
  42                 IXGBE_WRITE_REG(hw, reg + 4, (u32) (value >> 32)); \
  43         } while (0)

  44 
  45 u16 ixgbe_get_pcie_msix_count_generic(struct ixgbe_hw *hw);
  46 
  47 s32 ixgbe_init_ops_generic(struct ixgbe_hw *hw);
  48 s32 ixgbe_init_hw_generic(struct ixgbe_hw *hw);
  49 s32 ixgbe_start_hw_generic(struct ixgbe_hw *hw);
  50 s32 ixgbe_start_hw_gen2(struct ixgbe_hw *hw);
  51 s32 ixgbe_clear_hw_cntrs_generic(struct ixgbe_hw *hw);
  52 s32 ixgbe_read_pba_num_generic(struct ixgbe_hw *hw, u32 *pba_num);
  53 s32 ixgbe_read_pba_string_generic(struct ixgbe_hw *hw, u8 *pba_num,
  54                                   u32 pba_num_size);
  55 s32 ixgbe_get_mac_addr_generic(struct ixgbe_hw *hw, u8 *mac_addr);
  56 s32 ixgbe_get_bus_info_generic(struct ixgbe_hw *hw);
  57 void ixgbe_set_lan_id_multi_port_pcie(struct ixgbe_hw *hw);
  58 s32 ixgbe_stop_adapter_generic(struct ixgbe_hw *hw);
  59 
  60 s32 ixgbe_led_on_generic(struct ixgbe_hw *hw, u32 index);
  61 s32 ixgbe_led_off_generic(struct ixgbe_hw *hw, u32 index);
  62 
  63 s32 ixgbe_init_eeprom_params_generic(struct ixgbe_hw *hw);




  19   
  20   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  21   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
  22   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
  23   ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 
  24   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 
  25   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 
  26   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 
  27   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 
  28   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
  29   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  30   POSSIBILITY OF SUCH DAMAGE.
  31 
  32 ******************************************************************************/
  33 /*$FreeBSD: src/sys/dev/ixgbe/ixgbe_common.h,v 1.12 2012/07/05 20:51:44 jfv Exp $*/
  34 
  35 #ifndef _IXGBE_COMMON_H_
  36 #define _IXGBE_COMMON_H_
  37 
  38 #include "ixgbe_type.h"
  39 #if lint
  40 /* Use "hw" somehow... */
  41 #define IXGBE_WRITE_REG64(hw, reg, value) hw = hw
  42 #else
  43 #define IXGBE_WRITE_REG64(hw, reg, value) \
  44         do { \
  45                 IXGBE_WRITE_REG(hw, reg, (u32) value); \
  46                 IXGBE_WRITE_REG(hw, reg + 4, (u32) (value >> 32)); \
  47         } while (0)
  48 #endif
  49 
  50 u16 ixgbe_get_pcie_msix_count_generic(struct ixgbe_hw *hw);
  51 
  52 s32 ixgbe_init_ops_generic(struct ixgbe_hw *hw);
  53 s32 ixgbe_init_hw_generic(struct ixgbe_hw *hw);
  54 s32 ixgbe_start_hw_generic(struct ixgbe_hw *hw);
  55 s32 ixgbe_start_hw_gen2(struct ixgbe_hw *hw);
  56 s32 ixgbe_clear_hw_cntrs_generic(struct ixgbe_hw *hw);
  57 s32 ixgbe_read_pba_num_generic(struct ixgbe_hw *hw, u32 *pba_num);
  58 s32 ixgbe_read_pba_string_generic(struct ixgbe_hw *hw, u8 *pba_num,
  59                                   u32 pba_num_size);
  60 s32 ixgbe_get_mac_addr_generic(struct ixgbe_hw *hw, u8 *mac_addr);
  61 s32 ixgbe_get_bus_info_generic(struct ixgbe_hw *hw);
  62 void ixgbe_set_lan_id_multi_port_pcie(struct ixgbe_hw *hw);
  63 s32 ixgbe_stop_adapter_generic(struct ixgbe_hw *hw);
  64 
  65 s32 ixgbe_led_on_generic(struct ixgbe_hw *hw, u32 index);
  66 s32 ixgbe_led_off_generic(struct ixgbe_hw *hw, u32 index);
  67 
  68 s32 ixgbe_init_eeprom_params_generic(struct ixgbe_hw *hw);