Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ice/ice_type.h
Context not available. | |||||
#define IS_ASCII(_ch) ((_ch) < 0x80) | #define IS_ASCII(_ch) ((_ch) < 0x80) | ||||
#define STRUCT_HACK_VAR_LEN | |||||
/** | |||||
* ice_struct_size - size of struct with C99 flexible array member | |||||
* @ptr: pointer to structure | |||||
* @field: flexible array member (last member of the structure) | |||||
* @num: number of elements of that flexible array member | |||||
*/ | |||||
#define ice_struct_size(ptr, field, num) \ | #define ice_struct_size(ptr, field, num) \ | ||||
(sizeof(*(ptr)) + sizeof(*(ptr)->field) * (num)) | (sizeof(*(ptr)) + sizeof(*(ptr)->field) * (num)) | ||||
Context not available. | |||||
ICE_MEDIA_BASET, | ICE_MEDIA_BASET, | ||||
ICE_MEDIA_BACKPLANE, | ICE_MEDIA_BACKPLANE, | ||||
ICE_MEDIA_DA, | ICE_MEDIA_DA, | ||||
ICE_MEDIA_AUI, | |||||
}; | }; | ||||
/* Software VSI types. */ | /* Software VSI types. */ | ||||
Context not available. | |||||
u32 flash_size; /* Size of available flash in bytes */ | u32 flash_size; /* Size of available flash in bytes */ | ||||
u8 major_ver; /* major version of dev starter */ | u8 major_ver; /* major version of dev starter */ | ||||
u8 minor_ver; /* minor version of dev starter */ | u8 minor_ver; /* minor version of dev starter */ | ||||
u8 blank_nvm_mode; /* is NVM empty (no FW present)*/ | u8 blank_nvm_mode; /* is NVM empty (no FW present) */ | ||||
}; | }; | ||||
struct ice_link_default_override_tlv { | struct ice_link_default_override_tlv { | ||||
Context not available. | |||||
#define ICE_SCHED_NO_BW_WT 0 | #define ICE_SCHED_NO_BW_WT 0 | ||||
#define ICE_SCHED_DFLT_RL_PROF_ID 0 | #define ICE_SCHED_DFLT_RL_PROF_ID 0 | ||||
#define ICE_SCHED_NO_SHARED_RL_PROF_ID 0xFFFF | #define ICE_SCHED_NO_SHARED_RL_PROF_ID 0xFFFF | ||||
#define ICE_SCHED_DFLT_BW_WT 1 | #define ICE_SCHED_DFLT_BW_WT 4 | ||||
#define ICE_SCHED_INVAL_PROF_ID 0xFFFF | #define ICE_SCHED_INVAL_PROF_ID 0xFFFF | ||||
#define ICE_SCHED_DFLT_BURST_SIZE (15 * 1024) /* in bytes (15k) */ | #define ICE_SCHED_DFLT_BURST_SIZE (15 * 1024) /* in bytes (15k) */ | ||||
Context not available. | |||||
#define ICE_DCBX_APPS_NON_WILLING 0x1 | #define ICE_DCBX_APPS_NON_WILLING 0x1 | ||||
}; | }; | ||||
struct ice_qos_cfg { | |||||
struct ice_dcbx_cfg local_dcbx_cfg; /* Oper/Local Cfg */ | |||||
struct ice_dcbx_cfg desired_dcbx_cfg; /* CEE Desired Cfg */ | |||||
struct ice_dcbx_cfg remote_dcbx_cfg; /* Peer Cfg */ | |||||
u8 dcbx_status : 3; /* see ICE_DCBX_STATUS_DIS */ | |||||
u8 is_sw_lldp : 1; | |||||
}; | |||||
struct ice_port_info { | struct ice_port_info { | ||||
struct ice_sched_node *root; /* Root Node per Port */ | struct ice_sched_node *root; /* Root Node per Port */ | ||||
struct ice_hw *hw; /* back pointer to HW instance */ | struct ice_hw *hw; /* back pointer to HW instance */ | ||||
Context not available. | |||||
sib_head[ICE_MAX_TRAFFIC_CLASS][ICE_AQC_TOPO_MAX_LEVEL_NUM]; | sib_head[ICE_MAX_TRAFFIC_CLASS][ICE_AQC_TOPO_MAX_LEVEL_NUM]; | ||||
/* List contain profile ID(s) and other params per layer */ | /* List contain profile ID(s) and other params per layer */ | ||||
struct LIST_HEAD_TYPE rl_prof_list[ICE_AQC_TOPO_MAX_LEVEL_NUM]; | struct LIST_HEAD_TYPE rl_prof_list[ICE_AQC_TOPO_MAX_LEVEL_NUM]; | ||||
struct ice_bw_type_info root_node_bw_t_info; | |||||
struct ice_bw_type_info tc_node_bw_t_info[ICE_MAX_TRAFFIC_CLASS]; | struct ice_bw_type_info tc_node_bw_t_info[ICE_MAX_TRAFFIC_CLASS]; | ||||
struct ice_dcbx_cfg local_dcbx_cfg; /* Oper/Local Cfg */ | struct ice_qos_cfg qos_cfg; | ||||
/* DCBX info */ | |||||
struct ice_dcbx_cfg remote_dcbx_cfg; /* Peer Cfg */ | |||||
struct ice_dcbx_cfg desired_dcbx_cfg; /* CEE Desired Cfg */ | |||||
/* LLDP/DCBX Status */ | |||||
u8 dcbx_status:3; /* see ICE_DCBX_STATUS_DIS */ | |||||
u8 is_sw_lldp:1; | |||||
u8 is_vf:1; | u8 is_vf:1; | ||||
}; | }; | ||||
Context not available. | |||||
struct LIST_HEAD_TYPE vsi_list_map_head; | struct LIST_HEAD_TYPE vsi_list_map_head; | ||||
struct ice_sw_recipe *recp_list; | struct ice_sw_recipe *recp_list; | ||||
u16 prof_res_bm_init; | u16 prof_res_bm_init; | ||||
u16 max_used_prof_index; | |||||
ice_declare_bitmap(prof_res_bm[ICE_MAX_NUM_PROFILES], ICE_MAX_FV_WORDS); | ice_declare_bitmap(prof_res_bm[ICE_MAX_NUM_PROFILES], ICE_MAX_FV_WORDS); | ||||
}; | }; | ||||
Context not available. | |||||
#define ICE_SR_1ST_SCRATCH_PAD_PTR 0x41 | #define ICE_SR_1ST_SCRATCH_PAD_PTR 0x41 | ||||
#define ICE_SR_1ST_NVM_BANK_PTR 0x42 | #define ICE_SR_1ST_NVM_BANK_PTR 0x42 | ||||
#define ICE_SR_NVM_BANK_SIZE 0x43 | #define ICE_SR_NVM_BANK_SIZE 0x43 | ||||
#define ICE_SR_1ND_OROM_BANK_PTR 0x44 | #define ICE_SR_1ST_OROM_BANK_PTR 0x44 | ||||
#define ICE_SR_OROM_BANK_SIZE 0x45 | #define ICE_SR_OROM_BANK_SIZE 0x45 | ||||
#define ICE_SR_NETLIST_BANK_PTR 0x46 | #define ICE_SR_NETLIST_BANK_PTR 0x46 | ||||
#define ICE_SR_NETLIST_BANK_SIZE 0x47 | #define ICE_SR_NETLIST_BANK_SIZE 0x47 | ||||
Context not available. | |||||
#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 */ | |||||
#define ICE_FW_API_LLDP_FLTR_MAJ 1 | |||||
#define ICE_FW_API_LLDP_FLTR_MIN 7 | |||||
#define ICE_FW_API_LLDP_FLTR_PATCH 1 | |||||
#endif /* _ICE_TYPE_H_ */ | #endif /* _ICE_TYPE_H_ */ | ||||
Context not available. |