idxd: move header file to include dir

Used to be in the lib directory but an upcoming patch needs
access to it so move it to a more appropriate location.

The changes in the .h file were needed to address compile
error when in the /include dir (didn't get errors elsewhere)

Signed-off-by: paul luse <paul.e.luse@intel.com>
Change-Id: I44d11fc620f213b13683d62dca899e2792ca6ed5
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9450
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Ziye Yang <ziye.yang@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
paul luse 2021-09-08 12:04:07 -04:00 committed by Keith Lucas
parent 8a3cc00fce
commit 00af36fd73
2 changed files with 8 additions and 9 deletions

View File

@ -226,18 +226,18 @@ struct idxd_hw_desc {
uint16_t rsvd1; uint16_t rsvd1;
union { union {
uint8_t expected_res; uint8_t expected_res;
struct delta { struct {
uint64_t addr; uint64_t addr;
uint32_t max_size; uint32_t max_size;
} delta; } delta;
uint32_t delta_rec_size; uint32_t delta_rec_size;
uint64_t dest2; uint64_t dest2;
struct crc32c { struct {
uint32_t seed; uint32_t seed;
uint32_t rsvd; uint32_t rsvd;
uint64_t addr; uint64_t addr;
} crc32c; } crc32c;
struct dif_chk { struct {
uint8_t src_flags; uint8_t src_flags;
uint8_t rsvd1; uint8_t rsvd1;
uint8_t flags; uint8_t flags;
@ -246,7 +246,7 @@ struct idxd_hw_desc {
uint16_t app_tag_mask; uint16_t app_tag_mask;
uint16_t app_tag_seed; uint16_t app_tag_seed;
} dif_chk; } dif_chk;
struct dif_ins { struct {
uint8_t rsvd1; uint8_t rsvd1;
uint8_t dest_flag; uint8_t dest_flag;
uint8_t flags; uint8_t flags;
@ -255,7 +255,7 @@ struct idxd_hw_desc {
uint16_t app_tag_mask; uint16_t app_tag_mask;
uint16_t app_tag_seed; uint16_t app_tag_seed;
} dif_ins; } dif_ins;
struct dif_upd { struct {
uint8_t src_flags; uint8_t src_flags;
uint8_t dest_flags; uint8_t dest_flags;
uint8_t flags; uint8_t flags;
@ -289,13 +289,13 @@ struct idxd_hw_comp_record {
uint16_t dif_chk_app_tag_mask; uint16_t dif_chk_app_tag_mask;
uint16_t dif_chk_app_tag; uint16_t dif_chk_app_tag;
}; };
struct dif_ins_comp { struct {
uint64_t rsvd; uint64_t rsvd;
uint32_t ref_tag; uint32_t ref_tag;
uint16_t app_tag_mask; uint16_t app_tag_mask;
uint16_t app_tag; uint16_t app_tag;
} dif_ins_comp; } dif_ins_comp;
struct dif_upd_comp { struct {
uint32_t src_ref_tag; uint32_t src_ref_tag;
uint16_t src_app_tag_mask; uint16_t src_app_tag_mask;
uint16_t src_app_tag; uint16_t src_app_tag;

View File

@ -39,8 +39,7 @@
#include "spdk/idxd.h" #include "spdk/idxd.h"
#include "spdk/queue.h" #include "spdk/queue.h"
#include "spdk/mmio.h" #include "spdk/mmio.h"
#include "spdk/idxd_spec.h"
#include "idxd_spec.h"
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {