23 #ifndef DOCA_DPA_DEV_BUF_H_
24 #define DOCA_DPA_DEV_BUF_H_
struct dpa_thread_arg __dpa_global__
uint64_t doca_dpa_dev_buf_arr_t
Type representing a doca_buf_arr handle on the DPA.
#define DOCA_EXPERIMENTAL
To set a Symbol (or specifically a function) as experimental.
DOCA_EXPERIMENTAL void doca_dpa_dev_post_memcpy(doca_dpa_dev_async_ops_t async_ops_handle, doca_dpa_dev_mmap_t dst_mmap_handle, uint64_t dst_addr, doca_dpa_dev_mmap_t src_mmap_handle, uint64_t src_addr, size_t length, uint32_t flags)
Initiate a copy data between two DOCA Mmaps.
DOCA_EXPERIMENTAL __forceinline uintptr_t doca_dpa_dev_buf_get_addr(doca_dpa_dev_buf_t buf)
Get address from a DPA buffer handle.
DOCA_EXPERIMENTAL doca_dpa_dev_uintptr_t doca_dpa_dev_buf_get_external_ptr(doca_dpa_dev_buf_t buf)
Obtain a pointer to externally allocated memory.
__dpa_global__ typedef uint64_t doca_dpa_dev_buf_arr_t
DPA buffer array handle type definition.
__dpa_global__ typedef uint64_t doca_dpa_dev_buf_t
DPA buffer handle type definition.
struct doca_dpa_dev_buf __attribute__((__packed__))
__dpa_global__ typedef uint32_t doca_dpa_dev_mmap_t
DPA mmap handle type definition.
DOCA_EXPERIMENTAL void doca_dpa_dev_post_buf_memcpy(doca_dpa_dev_async_ops_t async_ops_handle, doca_dpa_dev_buf_t dst_buf_handle, doca_dpa_dev_buf_t src_buf_handle, uint32_t flags)
Initiate a copy data between two DOCA buffers.
DOCA_EXPERIMENTAL __forceinline uint64_t doca_dpa_dev_buf_get_len(doca_dpa_dev_buf_t buf)
Get length from a DPA buffer handle.
DOCA_EXPERIMENTAL doca_dpa_dev_uintptr_t doca_dpa_dev_mmap_get_external_ptr(doca_dpa_dev_mmap_t mmap_handle, uint64_t addr)
Obtain a pointer to externally allocated memory.
DOCA_EXPERIMENTAL __forceinline void doca_dpa_dev_buf_set_len(doca_dpa_dev_buf_t buf, size_t len)
Set the length of a DPA buffer handle.
DOCA_EXPERIMENTAL __forceinline doca_dpa_dev_mmap_t doca_dpa_dev_buf_get_mmap(doca_dpa_dev_buf_t buf)
Get the DOCA Mmap associated with a DPA buffer handle.
DOCA_EXPERIMENTAL __forceinline void doca_dpa_dev_buf_set_mmap(doca_dpa_dev_buf_t buf, doca_dpa_dev_mmap_t mmap)
Set the DOCA Mmap associated with a DPA buffer handle.
DOCA_EXPERIMENTAL __forceinline void doca_dpa_dev_buf_set_addr(doca_dpa_dev_buf_t buf, uintptr_t addr)
Set the address of a DPA buffer handle.
DOCA_EXPERIMENTAL __forceinline doca_dpa_dev_buf_t doca_dpa_dev_buf_array_get_buf(doca_dpa_dev_buf_arr_t buf_arr, const uint64_t buf_idx)
Get DPA buffer handle from a DPA buffer array handle.
#define __forceinline
static inline wrapper
uint64_t doca_dpa_dev_uintptr_t
DPA pointer type definition.
uint64_t doca_dpa_dev_async_ops_t
DPA asynchronous ops handle type definition.
uint32_t doca_dpa_dev_mmap_t
Handle on the DPA for a doca_mmap instance.
__UINTPTR_TYPE__ uintptr_t
doca dpa device buf array declaration
unsigned char reserved[20]
struct doca_dpa_dev_buf * bufs
doca dpa device buf declaration
unsigned char reserved[12]