14#include <rte_compat.h>
32#define RTE_GPU_DEFAULT_MAX 32
35#define RTE_GPU_ID_NONE -1
37#define RTE_GPU_ID_ANY INT16_MIN
40#define RTE_GPU_CALLBACK_ANY_DATA ((void *)-1)
43#define RTE_GPU_VOLATILE(x) (*(volatile typeof(x) *)&(x))
46#define RTE_GPU_COMM_LIST_PKTS_MAX 1024
207 int16_t parent, uint64_t child_context);
238#define RTE_GPU_FOREACH(dev_id) \
239 RTE_GPU_FOREACH_CHILD(dev_id, RTE_GPU_ID_ANY)
250#define RTE_GPU_FOREACH_PARENT(dev_id) \
251 RTE_GPU_FOREACH_CHILD(dev_id, RTE_GPU_ID_NONE)
264#define RTE_GPU_FOREACH_CHILD(dev_id, parent) \
265 for (dev_id = rte_gpu_find_next(0, parent); \
267 dev_id = rte_gpu_find_next(dev_id + 1, parent))
641 uint32_t num_comm_items);
660 uint32_t num_comm_items);
#define __rte_alloc_size(...)
__rte_experimental int rte_gpu_callback_unregister(int16_t dev_id, enum rte_gpu_event event, rte_gpu_callback_t *function, void *user_data)
__rte_experimental int rte_gpu_comm_get_status(struct rte_gpu_comm_list *comm_list_item, enum rte_gpu_comm_list_status *status)
@ RTE_GPU_COMM_LIST_READY
@ RTE_GPU_COMM_LIST_ERROR
__rte_experimental uint16_t rte_gpu_count_avail(void)
__rte_experimental int rte_gpu_comm_destroy_flag(struct rte_gpu_comm_flag *devflag)
__rte_experimental int rte_gpu_wmb(int16_t dev_id)
__rte_experimental int rte_gpu_comm_create_flag(uint16_t dev_id, struct rte_gpu_comm_flag *devflag, enum rte_gpu_comm_flag_type mtype)
__rte_experimental int rte_gpu_close(int16_t dev_id)
__rte_experimental int rte_gpu_comm_populate_list_pkts(struct rte_gpu_comm_list *comm_list_item, struct rte_mbuf **mbufs, uint32_t num_mbufs)
__rte_experimental int rte_gpu_comm_set_status(struct rte_gpu_comm_list *comm_list_item, enum rte_gpu_comm_list_status status)
__rte_experimental int rte_gpu_comm_destroy_list(struct rte_gpu_comm_list *comm_list, uint32_t num_comm_items)
__rte_experimental int rte_gpu_info_get(int16_t dev_id, struct rte_gpu_info *info)
__rte_experimental int rte_gpu_mem_register(int16_t dev_id, size_t size, void *ptr)
void() rte_gpu_callback_t(int16_t dev_id, enum rte_gpu_event event, void *user_data)
__rte_experimental int rte_gpu_comm_cleanup_list(struct rte_gpu_comm_list *comm_list_item)
__rte_experimental int rte_gpu_callback_register(int16_t dev_id, enum rte_gpu_event event, rte_gpu_callback_t *function, void *user_data)
__rte_experimental int rte_gpu_init(size_t dev_max)
__rte_experimental void * rte_gpu_mem_cpu_map(int16_t dev_id, size_t size, void *ptr)
__rte_experimental void * rte_gpu_mem_alloc(int16_t dev_id, size_t size, unsigned int align) __rte_alloc_size(2)
__rte_experimental int rte_gpu_mem_free(int16_t dev_id, void *ptr)
__rte_experimental struct rte_gpu_comm_list * rte_gpu_comm_create_list(uint16_t dev_id, uint32_t num_comm_items)
__rte_experimental int16_t rte_gpu_find_next(int16_t dev_id, int16_t parent)
__rte_experimental bool rte_gpu_is_valid(int16_t dev_id)
__rte_experimental int rte_gpu_comm_get_flag_value(struct rte_gpu_comm_flag *devflag, uint32_t *val)
__rte_experimental int rte_gpu_mem_unregister(int16_t dev_id, void *ptr)
__rte_experimental int rte_gpu_comm_set_flag(struct rte_gpu_comm_flag *devflag, uint32_t val)
__rte_experimental int rte_gpu_mem_cpu_unmap(int16_t dev_id, void *ptr)
__rte_experimental int16_t rte_gpu_add_child(const char *name, int16_t parent, uint64_t child_context)
enum rte_gpu_comm_flag_type mtype
enum rte_gpu_comm_list_status * status_h
enum rte_gpu_comm_list_status * status_d
struct rte_gpu_comm_pkt * pkt_list