Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ice/ice_type.h
Show First 20 Lines • Show All 253 Lines • ▼ Show 20 Lines | |||||
struct ice_link_status { | struct ice_link_status { | ||||
/* Refer to ice_aq_phy_type for bits definition */ | /* Refer to ice_aq_phy_type for bits definition */ | ||||
u64 phy_type_low; | u64 phy_type_low; | ||||
u64 phy_type_high; | u64 phy_type_high; | ||||
u8 topo_media_conflict; | u8 topo_media_conflict; | ||||
u16 max_frame_size; | u16 max_frame_size; | ||||
u16 link_speed; | u16 link_speed; | ||||
u16 req_speeds; | u16 req_speeds; | ||||
u8 link_cfg_err; | |||||
u8 lse_ena; /* Link Status Event notification */ | u8 lse_ena; /* Link Status Event notification */ | ||||
u8 link_info; | u8 link_info; | ||||
u8 an_info; | u8 an_info; | ||||
u8 ext_info; | u8 ext_info; | ||||
u8 fec_info; | u8 fec_info; | ||||
u8 pacing; | u8 pacing; | ||||
/* Refer to #define from module_type[ICE_MODULE_TYPE_TOTAL_BYTE] of | /* Refer to #define from module_type[ICE_MODULE_TYPE_TOTAL_BYTE] of | ||||
* ice_aqc_get_phy_caps structure | * ice_aqc_get_phy_caps structure | ||||
▲ Show 20 Lines • Show All 386 Lines • ▼ Show 20 Lines | |||||
/* Access Macros for Tx Sched RL Profile data */ | /* Access Macros for Tx Sched RL Profile data */ | ||||
#define ICE_TXSCHED_GET_RL_PROF_ID(p) LE16_TO_CPU((p)->info.profile_id) | #define ICE_TXSCHED_GET_RL_PROF_ID(p) LE16_TO_CPU((p)->info.profile_id) | ||||
#define ICE_TXSCHED_GET_RL_MBS(p) LE16_TO_CPU((p)->info.max_burst_size) | #define ICE_TXSCHED_GET_RL_MBS(p) LE16_TO_CPU((p)->info.max_burst_size) | ||||
#define ICE_TXSCHED_GET_RL_MULTIPLIER(p) LE16_TO_CPU((p)->info.rl_multiply) | #define ICE_TXSCHED_GET_RL_MULTIPLIER(p) LE16_TO_CPU((p)->info.rl_multiply) | ||||
#define ICE_TXSCHED_GET_RL_WAKEUP_MV(p) LE16_TO_CPU((p)->info.wake_up_calc) | #define ICE_TXSCHED_GET_RL_WAKEUP_MV(p) LE16_TO_CPU((p)->info.wake_up_calc) | ||||
#define ICE_TXSCHED_GET_RL_ENCODE(p) LE16_TO_CPU((p)->info.rl_encode) | #define ICE_TXSCHED_GET_RL_ENCODE(p) LE16_TO_CPU((p)->info.rl_encode) | ||||
#define ICE_MAX_PORT_PER_PCI_DEV 8 | |||||
/* The following tree example shows the naming conventions followed under | /* The following tree example shows the naming conventions followed under | ||||
* ice_port_info struct for default scheduler tree topology. | * ice_port_info struct for default scheduler tree topology. | ||||
* | * | ||||
* A tree on a port | * A tree on a port | ||||
* * ---> root node | * * ---> root node | ||||
* (TC0)/ / / / \ \ \ \(TC7) ---> num_branches (range:1- 8) | * (TC0)/ / / / \ \ \ \(TC7) ---> num_branches (range:1- 8) | ||||
* * * * * * * * * | | * * * * * * * * * | | ||||
* / | | * / | | ||||
▲ Show 20 Lines • Show All 347 Lines • ▼ Show 20 Lines | #define ICE_NUM_EXTERNAL_PORTS ICE_PORTS_PER_PHY | ||||
/* HW block tables */ | /* HW block tables */ | ||||
struct ice_blk_info blk[ICE_BLK_COUNT]; | struct ice_blk_info blk[ICE_BLK_COUNT]; | ||||
struct ice_lock fl_profs_locks[ICE_BLK_COUNT]; /* lock fltr profiles */ | struct ice_lock fl_profs_locks[ICE_BLK_COUNT]; /* lock fltr profiles */ | ||||
struct LIST_HEAD_TYPE fl_profs[ICE_BLK_COUNT]; | struct LIST_HEAD_TYPE fl_profs[ICE_BLK_COUNT]; | ||||
struct ice_lock rss_locks; /* protect RSS configuration */ | struct ice_lock rss_locks; /* protect RSS configuration */ | ||||
struct LIST_HEAD_TYPE rss_list_head; | struct LIST_HEAD_TYPE rss_list_head; | ||||
struct ice_mbx_snapshot mbx_snapshot; | struct ice_mbx_snapshot mbx_snapshot; | ||||
struct ice_vlan_mode_ops vlan_mode_ops; | u8 dvm_ena; | ||||
}; | }; | ||||
/* Statistics collected by each port, VSI, VEB, and S-channel */ | /* Statistics collected by each port, VSI, VEB, and S-channel */ | ||||
struct ice_eth_stats { | struct ice_eth_stats { | ||||
u64 rx_bytes; /* gorc */ | u64 rx_bytes; /* gorc */ | ||||
u64 rx_unicast; /* uprc */ | u64 rx_unicast; /* uprc */ | ||||
u64 rx_multicast; /* mprc */ | u64 rx_multicast; /* mprc */ | ||||
u64 rx_broadcast; /* bprc */ | u64 rx_broadcast; /* bprc */ | ||||
▲ Show 20 Lines • Show All 236 Lines • ▼ Show 20 Lines | |||||
#define GLPCI_LBARCTRL_VF_PE_DB_SIZE_0KB 0x0 | #define GLPCI_LBARCTRL_VF_PE_DB_SIZE_0KB 0x0 | ||||
#define GLPCI_LBARCTRL_VF_PE_DB_SIZE_8KB 0x1 | #define GLPCI_LBARCTRL_VF_PE_DB_SIZE_8KB 0x1 | ||||
#define GLPCI_LBARCTRL_VF_PE_DB_SIZE_64KB 0x2 | #define GLPCI_LBARCTRL_VF_PE_DB_SIZE_64KB 0x2 | ||||
/* AQ API version for LLDP_FILTER_CONTROL */ | /* AQ API version for LLDP_FILTER_CONTROL */ | ||||
#define ICE_FW_API_LLDP_FLTR_MAJ 1 | #define ICE_FW_API_LLDP_FLTR_MAJ 1 | ||||
#define ICE_FW_API_LLDP_FLTR_MIN 7 | #define ICE_FW_API_LLDP_FLTR_MIN 7 | ||||
#define ICE_FW_API_LLDP_FLTR_PATCH 1 | #define ICE_FW_API_LLDP_FLTR_PATCH 1 | ||||
/* AQ API version for report default configuration */ | |||||
#define ICE_FW_API_REPORT_DFLT_CFG_MAJ 1 | |||||
#define ICE_FW_API_REPORT_DFLT_CFG_MIN 7 | |||||
#define ICE_FW_API_REPORT_DFLT_CFG_PATCH 3 | |||||
/* AQ API version for FW health reports */ | |||||
#define ICE_FW_API_HEALTH_REPORT_MAJ 1 | |||||
#define ICE_FW_API_HEALTH_REPORT_MIN 7 | |||||
#define ICE_FW_API_HEALTH_REPORT_PATCH 6 | |||||
#endif /* _ICE_TYPE_H_ */ | #endif /* _ICE_TYPE_H_ */ |