1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2018 Intel Corporation
11 /**< Intel(R) QAT Symmetric Crypto PMD device name */
12 #define CRYPTODEV_NAME_QAT_SYM_PMD crypto_qat
14 /**< Intel(R) QAT device name for PCI registration */
15 #define QAT_PCI_NAME qat
17 * Maximum number of SGL entries
19 #define QAT_SGL_MAX_NUMBER 16
21 /* Intel(R) QuickAssist Technology device generation is enumerated
22 * from one according to the generation of the device
30 enum qat_service_type {
31 QAT_SERVICE_ASYMMETRIC = 0,
32 QAT_SERVICE_SYMMETRIC,
33 QAT_SERVICE_COMPRESSION,
36 #define QAT_MAX_SERVICES (QAT_SERVICE_INVALID)
38 /**< Common struct for scatter-gather list operations */
48 uint32_t num_mapped_bufs;
49 struct qat_flat_buf buffers[QAT_SGL_MAX_NUMBER];
50 } __rte_packed __rte_cache_aligned;
53 qat_sgl_fill_array(struct rte_mbuf *buf, uint64_t buf_start,
54 struct qat_sgl *list, uint32_t data_len);
56 #endif /* _QAT_COMMON_H_ */