Home | History | Annotate | Line # | Download | only in igc
igc_mac.h revision 1.1
      1 /*	$OpenBSD: igc_mac.h,v 1.1 2021/10/31 14:52:57 patrick Exp $	*/
      2 /*-
      3  * Copyright 2021 Intel Corp
      4  * Copyright 2021 Rubicon Communications, LLC (Netgate)
      5  * SPDX-License-Identifier: BSD-3-Clause
      6  *
      7  * $FreeBSD$
      8  */
      9 
     10 #ifndef _IGC_MAC_H_
     11 #define _IGC_MAC_H_
     12 
     13 void	igc_init_mac_ops_generic(struct igc_hw *);
     14 int	igc_null_ops_generic(struct igc_hw *);
     15 int	igc_null_link_info(struct igc_hw *, uint16_t *, uint16_t *);
     16 bool	igc_null_mng_mode(struct igc_hw *);
     17 void	igc_null_update_mc(struct igc_hw *, uint8_t *h, uint32_t);
     18 void	igc_null_write_vfta(struct igc_hw *, uint32_t a, uint32_t);
     19 int	igc_check_for_copper_link_generic(struct igc_hw *);
     20 int	igc_config_fc_after_link_up_generic(struct igc_hw *);
     21 int	igc_disable_pcie_master_generic(struct igc_hw *);
     22 int	igc_force_mac_fc_generic(struct igc_hw *);
     23 int	igc_get_auto_rd_done_generic(struct igc_hw *);
     24 int	igc_get_bus_info_pcie_generic(struct igc_hw *);
     25 void	igc_set_lan_id_single_port(struct igc_hw *);
     26 int	igc_get_speed_and_duplex_copper_generic(struct igc_hw *, uint16_t *,
     27  	    uint16_t *);
     28 void	igc_update_mc_addr_list_generic(struct igc_hw *, uint8_t *, uint32_t);
     29 int	igc_rar_set_generic(struct igc_hw *, uint8_t *, uint32_t);
     30 int	igc_set_fc_watermarks_generic(struct igc_hw *);
     31 int	igc_setup_link_generic(struct igc_hw *);
     32 int	igc_validate_mdi_setting_crossover_generic(struct igc_hw *);
     33 
     34 int	igc_hash_mc_addr_generic(struct igc_hw *, uint8_t *);
     35 
     36 void	igc_clear_hw_cntrs_base_generic(struct igc_hw *);
     37 void	igc_clear_vfta_generic(struct igc_hw *);
     38 void	igc_init_rx_addrs_generic(struct igc_hw *, uint16_t);
     39 void	igc_pcix_mmrbc_workaround_generic(struct igc_hw *);
     40 void	igc_put_hw_semaphore_generic(struct igc_hw *);
     41 int	igc_check_alt_mac_addr_generic(struct igc_hw *);
     42 void	igc_set_pcie_no_snoop_generic(struct igc_hw *, uint32_t);
     43 void	igc_write_vfta_generic(struct igc_hw *, uint32_t, uint32_t);
     44 void	igc_config_collision_dist_generic(struct igc_hw *);
     45 
     46 #endif	/* _IGC_MAC_H_ */
     47