1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright 2021 Intel Corporation
5 #ifndef _IDXD_HW_DEFS_H_
6 #define _IDXD_HW_DEFS_H_
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 */
15 * Completion record structure written back by DSA
17 struct idxd_completion {
20 /* 16-bits pad here */
21 uint32_t completed_size; /* data length, or descriptors for batch */
23 rte_iova_t fault_address;
24 uint32_t invalid_flags;