1 /* SPDX-License-Identifier: BSD-3-Clause 2 * Copyright (C) 2020 Intel Corporation. 3 * All rights reserved. 4 */ 5 6 #ifndef __IDXD_INTERNAL_H__ 7 #define __IDXD_INTERNAL_H__ 8 9 #include "spdk/stdinc.h" 10 11 #include "spdk/idxd.h" 12 #include "spdk/queue.h" 13 #include "spdk/mmio.h" 14 #include "spdk/bit_array.h" 15 16 #ifdef __cplusplus 17 extern "C" { 18 #endif 19 20 enum dsa_opcode { 21 IDXD_OPCODE_NOOP = 0, 22 IDXD_OPCODE_BATCH = 1, 23 IDXD_OPCODE_DRAIN = 2, 24 IDXD_OPCODE_MEMMOVE = 3, 25 IDXD_OPCODE_MEMFILL = 4, 26 IDXD_OPCODE_COMPARE = 5, 27 IDXD_OPCODE_COMPVAL = 6, 28 IDXD_OPCODE_CR_DELTA = 7, 29 IDXD_OPCODE_AP_DELTA = 8, 30 IDXD_OPCODE_DUALCAST = 9, 31 IDXD_OPCODE_CRC32C_GEN = 16, 32 IDXD_OPCODE_COPY_CRC = 17, 33 IDXD_OPCODE_DIF_CHECK = 18, 34 IDXD_OPCODE_DIF_INS = 19, 35 IDXD_OPCODE_DIF_STRP = 20, 36 IDXD_OPCODE_DIF_UPDT = 21, 37 IDXD_OPCODE_DIX_GEN = 23, 38 IDXD_OPCODE_CFLUSH = 32, 39 IDXD_OPCODE_DECOMPRESS = 66, 40 IDXD_OPCODE_COMPRESS = 67, 41 }; 42 43 #ifdef __cplusplus 44 } 45 #endif 46 47 #endif /* __IDXD_INTERNAL_H__ */ 48