Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/sfxge/common/efx_impl.h
Show First 20 Lines • Show All 72 Lines • ▼ Show 20 Lines | |||||
#define EFX_MOD_INTR 0x00000020 | #define EFX_MOD_INTR 0x00000020 | ||||
#define EFX_MOD_EV 0x00000040 | #define EFX_MOD_EV 0x00000040 | ||||
#define EFX_MOD_RX 0x00000080 | #define EFX_MOD_RX 0x00000080 | ||||
#define EFX_MOD_TX 0x00000100 | #define EFX_MOD_TX 0x00000100 | ||||
#define EFX_MOD_PORT 0x00000200 | #define EFX_MOD_PORT 0x00000200 | ||||
#define EFX_MOD_MON 0x00000400 | #define EFX_MOD_MON 0x00000400 | ||||
#define EFX_MOD_FILTER 0x00001000 | #define EFX_MOD_FILTER 0x00001000 | ||||
#define EFX_MOD_LIC 0x00002000 | #define EFX_MOD_LIC 0x00002000 | ||||
#define EFX_MOD_TUNNEL 0x00004000 | |||||
#define EFX_RESET_PHY 0x00000001 | #define EFX_RESET_PHY 0x00000001 | ||||
#define EFX_RESET_RXQ_ERR 0x00000002 | #define EFX_RESET_RXQ_ERR 0x00000002 | ||||
#define EFX_RESET_TXQ_ERR 0x00000004 | #define EFX_RESET_TXQ_ERR 0x00000004 | ||||
typedef enum efx_mac_type_e { | typedef enum efx_mac_type_e { | ||||
EFX_MAC_INVALID = 0, | EFX_MAC_INVALID = 0, | ||||
EFX_MAC_SIENA, | EFX_MAC_SIENA, | ||||
▲ Show 20 Lines • Show All 172 Lines • ▼ Show 20 Lines | efx_filter_reconfigure( | ||||
__in boolean_t mulcst, | __in boolean_t mulcst, | ||||
__in boolean_t all_mulcst, | __in boolean_t all_mulcst, | ||||
__in boolean_t brdcst, | __in boolean_t brdcst, | ||||
__in_ecount(6*count) uint8_t const *addrs, | __in_ecount(6*count) uint8_t const *addrs, | ||||
__in uint32_t count); | __in uint32_t count); | ||||
#endif /* EFSYS_OPT_FILTER */ | #endif /* EFSYS_OPT_FILTER */ | ||||
#if EFSYS_OPT_TUNNEL | |||||
typedef struct efx_tunnel_ops_s { | |||||
boolean_t (*eto_udp_encap_supported)(efx_nic_t *); | |||||
efx_rc_t (*eto_reconfigure)(efx_nic_t *); | |||||
} efx_tunnel_ops_t; | |||||
#endif /* EFSYS_OPT_TUNNEL */ | |||||
typedef struct efx_port_s { | typedef struct efx_port_s { | ||||
efx_mac_type_t ep_mac_type; | efx_mac_type_t ep_mac_type; | ||||
uint32_t ep_phy_type; | uint32_t ep_phy_type; | ||||
uint8_t ep_port; | uint8_t ep_port; | ||||
uint32_t ep_mac_pdu; | uint32_t ep_mac_pdu; | ||||
uint8_t ep_mac_addr[6]; | uint8_t ep_mac_addr[6]; | ||||
efx_link_mode_t ep_link_mode; | efx_link_mode_t ep_link_mode; | ||||
▲ Show 20 Lines • Show All 147 Lines • ▼ Show 20 Lines | |||||
siena_filter_tbl_clear( | siena_filter_tbl_clear( | ||||
__in efx_nic_t *enp, | __in efx_nic_t *enp, | ||||
__in siena_filter_tbl_id_t tbl); | __in siena_filter_tbl_id_t tbl); | ||||
#endif /* EFSYS_OPT_FILTER */ | #endif /* EFSYS_OPT_FILTER */ | ||||
#if EFSYS_OPT_MCDI | #if EFSYS_OPT_MCDI | ||||
#define EFX_TUNNEL_MAXNENTRIES (16) | |||||
#if EFSYS_OPT_TUNNEL | |||||
typedef struct efx_tunnel_udp_entry_s { | |||||
uint16_t etue_port; /* host/cpu-endian */ | |||||
uint16_t etue_protocol; | |||||
} efx_tunnel_udp_entry_t; | |||||
typedef struct efx_tunnel_cfg_s { | |||||
efx_tunnel_udp_entry_t etc_udp_entries[EFX_TUNNEL_MAXNENTRIES]; | |||||
unsigned int etc_udp_entries_num; | |||||
} efx_tunnel_cfg_t; | |||||
#endif /* EFSYS_OPT_TUNNEL */ | |||||
typedef struct efx_mcdi_ops_s { | typedef struct efx_mcdi_ops_s { | ||||
efx_rc_t (*emco_init)(efx_nic_t *, const efx_mcdi_transport_t *); | efx_rc_t (*emco_init)(efx_nic_t *, const efx_mcdi_transport_t *); | ||||
void (*emco_send_request)(efx_nic_t *, void *, size_t, | void (*emco_send_request)(efx_nic_t *, void *, size_t, | ||||
void *, size_t); | void *, size_t); | ||||
efx_rc_t (*emco_poll_reboot)(efx_nic_t *); | efx_rc_t (*emco_poll_reboot)(efx_nic_t *); | ||||
boolean_t (*emco_poll_response)(efx_nic_t *); | boolean_t (*emco_poll_response)(efx_nic_t *); | ||||
void (*emco_read_response)(efx_nic_t *, void *, size_t, size_t); | void (*emco_read_response)(efx_nic_t *, void *, size_t, size_t); | ||||
void (*emco_fini)(efx_nic_t *); | void (*emco_fini)(efx_nic_t *); | ||||
▲ Show 20 Lines • Show All 196 Lines • ▼ Show 20 Lines | struct efx_nic_s { | ||||
const efx_nic_ops_t *en_enop; | const efx_nic_ops_t *en_enop; | ||||
const efx_ev_ops_t *en_eevop; | const efx_ev_ops_t *en_eevop; | ||||
const efx_tx_ops_t *en_etxop; | const efx_tx_ops_t *en_etxop; | ||||
const efx_rx_ops_t *en_erxop; | const efx_rx_ops_t *en_erxop; | ||||
#if EFSYS_OPT_FILTER | #if EFSYS_OPT_FILTER | ||||
efx_filter_t en_filter; | efx_filter_t en_filter; | ||||
const efx_filter_ops_t *en_efop; | const efx_filter_ops_t *en_efop; | ||||
#endif /* EFSYS_OPT_FILTER */ | #endif /* EFSYS_OPT_FILTER */ | ||||
#if EFSYS_OPT_TUNNEL | |||||
efx_tunnel_cfg_t en_tunnel_cfg; | |||||
const efx_tunnel_ops_t *en_etop; | |||||
#endif /* EFSYS_OPT_TUNNEL */ | |||||
#if EFSYS_OPT_MCDI | #if EFSYS_OPT_MCDI | ||||
efx_mcdi_t en_mcdi; | efx_mcdi_t en_mcdi; | ||||
#endif /* EFSYS_OPT_MCDI */ | #endif /* EFSYS_OPT_MCDI */ | ||||
#if EFSYS_OPT_NVRAM | #if EFSYS_OPT_NVRAM | ||||
uint32_t en_nvram_partn_locked; | uint32_t en_nvram_partn_locked; | ||||
const efx_nvram_ops_t *en_envop; | const efx_nvram_ops_t *en_envop; | ||||
#endif /* EFSYS_OPT_NVRAM */ | #endif /* EFSYS_OPT_NVRAM */ | ||||
#if EFSYS_OPT_VPD | #if EFSYS_OPT_VPD | ||||
▲ Show 20 Lines • Show All 531 Lines • Show Last 20 Lines |