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