DPDK 25.03.0-rc0
rte_pmd_dpaax_qdma.h
1/* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright 2021-2024 NXP
3 */
4
5#ifndef RTE_PMD_DPAAX_QDMA_H
6#define RTE_PMD_DPAAX_QDMA_H
7
8#include <rte_compat.h>
9
10#define RTE_DPAAX_QDMA_COPY_IDX_OFFSET 8
11#define RTE_DPAAX_QDMA_SG_IDX_ADDR_ALIGN \
12 RTE_BIT64(RTE_DPAAX_QDMA_COPY_IDX_OFFSET)
13#define RTE_DPAAX_QDMA_SG_IDX_ADDR_MASK \
14 (RTE_DPAAX_QDMA_SG_IDX_ADDR_ALIGN - 1)
15#define RTE_DPAAX_QDMA_SG_SUBMIT(idx_addr, flag) \
16 (((uint64_t)idx_addr) | (flag))
17
18#define RTE_DPAAX_QDMA_COPY_SUBMIT(idx, flag) \
19 ((idx << RTE_DPAAX_QDMA_COPY_IDX_OFFSET) | (flag))
20
21#define RTE_DPAAX_QDMA_JOB_SUBMIT_MAX 64
22#define RTE_DMA_CAPA_DPAAX_QDMA_FLAGS_INDEX RTE_BIT64(63)
23
24#endif /* RTE_PMD_DPAAX_QDMA_H */