NVIDIA DOCA SDK Data Center on a Chip Framework Documentation
doca_pcc_dev_algo_access.h File Reference
#include <doca_pcc_dev.h>
Include dependency graph for doca_pcc_dev_algo_access.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  doca_pcc_dev_algo_meta_data
 This struct provides meta data for a pcc user algo. More...
 

Macros

#define DOCA_PCC_DEV_TARGET_APP_RP   (0)
 Reaction Point target app. More...
 
#define DOCA_PCC_DEV_TARGET_APP_NP   (1)
 Notification Point target app. More...
 
#define DOCA_PCC_DEV_ALGO_SLOT(target_app, ppcc_algo_slot)   ((target_app << 16) | (ppcc_algo_slot & 0xffff))
 wrapper to define algorithm slot per target device More...
 

Functions

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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...