2022-06-03 19:15:11 +00:00
|
|
|
/* SPDX-License-Identifier: BSD-3-Clause
|
2022-11-01 20:26:26 +00:00
|
|
|
* Copyright (C) 2020 Intel Corporation.
|
2020-04-10 15:29:01 +00:00
|
|
|
* All rights reserved.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __IDXD_INTERNAL_H__
|
|
|
|
#define __IDXD_INTERNAL_H__
|
|
|
|
|
|
|
|
#include "spdk/stdinc.h"
|
|
|
|
|
|
|
|
#include "spdk/idxd.h"
|
|
|
|
#include "spdk/queue.h"
|
|
|
|
#include "spdk/mmio.h"
|
|
|
|
#include "spdk/bit_array.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
enum dsa_opcode {
|
2020-04-24 15:04:25 +00:00
|
|
|
IDXD_OPCODE_NOOP = 0,
|
|
|
|
IDXD_OPCODE_BATCH = 1,
|
|
|
|
IDXD_OPCODE_DRAIN = 2,
|
|
|
|
IDXD_OPCODE_MEMMOVE = 3,
|
|
|
|
IDXD_OPCODE_MEMFILL = 4,
|
|
|
|
IDXD_OPCODE_COMPARE = 5,
|
|
|
|
IDXD_OPCODE_COMPVAL = 6,
|
|
|
|
IDXD_OPCODE_CR_DELTA = 7,
|
|
|
|
IDXD_OPCODE_AP_DELTA = 8,
|
|
|
|
IDXD_OPCODE_DUALCAST = 9,
|
2020-04-29 17:36:30 +00:00
|
|
|
IDXD_OPCODE_CRC32C_GEN = 16,
|
2020-04-24 15:04:25 +00:00
|
|
|
IDXD_OPCODE_COPY_CRC = 17,
|
|
|
|
IDXD_OPCODE_DIF_CHECK = 18,
|
|
|
|
IDXD_OPCODE_DIF_INS = 19,
|
|
|
|
IDXD_OPCODE_DIF_STRP = 20,
|
|
|
|
IDXD_OPCODE_DIF_UPDT = 21,
|
|
|
|
IDXD_OPCODE_CFLUSH = 32,
|
2022-04-18 19:34:57 +00:00
|
|
|
IDXD_OPCODE_DECOMPRESS = 66,
|
|
|
|
IDXD_OPCODE_COMPRESS = 67,
|
2020-04-10 15:29:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* __IDXD_INTERNAL_H__ */
|