dma/idxd: create dmadev instances on bus probe
[dpdk.git] / drivers / dma / idxd / idxd_hw_defs.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright 2021 Intel Corporation
3  */
4
5 #ifndef _IDXD_HW_DEFS_H_
6 #define _IDXD_HW_DEFS_H_
7
8 #define IDXD_COMP_STATUS_INCOMPLETE        0
9 #define IDXD_COMP_STATUS_SUCCESS           1
10 #define IDXD_COMP_STATUS_INVALID_OPCODE 0x10
11 #define IDXD_COMP_STATUS_INVALID_SIZE   0x13
12 #define IDXD_COMP_STATUS_SKIPPED        0xFF /* not official IDXD error, needed as placeholder */
13
14 /**
15  * Completion record structure written back by DSA
16  */
17 struct idxd_completion {
18         uint8_t status;
19         uint8_t result;
20         /* 16-bits pad here */
21         uint32_t completed_size; /* data length, or descriptors for batch */
22
23         rte_iova_t fault_address;
24         uint32_t invalid_flags;
25 } __rte_aligned(32);
26
27 #endif