21 #ifndef DOCA_PCC_DEV_ALGO_ACCESS_H_
22 #define DOCA_PCC_DEV_ALGO_ACCESS_H_
35 #define DOCA_PCC_DEV_TARGET_APP_RP (0)
42 #define DOCA_PCC_DEV_TARGET_APP_NP (1)
49 #define DOCA_PCC_DEV_ALGO_SLOT(target_app, ppcc_algo_slot) ((target_app << 16) | (ppcc_algo_slot & 0xffff))
88 uint32_t counter_num);
112 uint32_t default_value,
115 uint32_t permissions,
116 uint32_t param_desc_size,
117 uint64_t param_desc_addr);
139 uint32_t permissions,
140 uint32_t counter_desc_size,
141 uint64_t counter_desc_addr);
#define DOCA_STABLE
To set a Symbol (or specifically a function) as stable API, i.e. it won't be changed.
DOCA_STABLE doca_pcc_dev_error_t doca_pcc_dev_algo_init_counter(uint32_t algo_idx, uint32_t counter_id, uint32_t max_value, uint32_t permissions, uint32_t counter_desc_size, uint64_t counter_desc_addr)
Initialize a single counter for an algo.
DOCA_STABLE uint32_t * doca_pcc_dev_get_algo_params(uint32_t port_num, uint32_t algo_slot)
Get pointer to param array of a specific algo and specific port.
DOCA_STABLE uint32_t doca_pcc_dev_get_algo_params_num(uint32_t port_num, uint32_t algo_slot)
Get number of params supported per algo on the port.
DOCA_STABLE doca_pcc_dev_error_t doca_pcc_dev_algo_init_param(uint32_t algo_idx, uint32_t param_id, uint32_t default_value, uint32_t max_value, uint32_t min_value, uint32_t permissions, uint32_t param_desc_size, uint64_t param_desc_addr)
Initialize a single parameter for an algo.
DOCA_STABLE doca_pcc_dev_error_t doca_pcc_dev_algo_init_metadata(uint32_t algo_idx, const struct doca_pcc_dev_algo_meta_data *user_def, uint32_t param_num, uint32_t counter_num)
Initialize the algo database.
DOCA_STABLE uint32_t * doca_pcc_dev_get_counters(uint32_t port_num, uint32_t algo_slot)
Get pointer to counter array of a specific algo and specific port.
DOCA_STABLE doca_pcc_dev_error_t doca_pcc_dev_init_algo_slot(uint32_t portid, uint32_t algo_slot, uint32_t algo_idx, uint32_t algo_en)
Initialize the algo per port database.
DOCA_STABLE uint32_t doca_pcc_dev_get_algo_index(uint32_t port_num, uint32_t algo_slot)
Get identifier of a specific algo and specific port.
DOCA_STABLE uint32_t doca_pcc_dev_get_counters_num(uint32_t port_num, uint32_t algo_slot)
Get number of counters supported per algo on the port.
doca_pcc_dev_error_t
API functions return status.