nvme: add ONCS definition

It's already defined in spdk_nvme_ctrlr_data, just move it out
so that other library can use this definition.

Change-Id: Ic40ba6f6e7870395ad3cec9511ce841f5dc4dff1
Signed-off-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9123
Community-CI: Mellanox Build Bot
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Changpeng Liu 2021-08-09 21:53:22 +08:00
parent 1afe4de585
commit beb6ffd2f7

View File

@ -1856,6 +1856,20 @@ struct spdk_nvme_cdata_sgls {
uint32_t reserved2 : 10;
};
/** Identify Controller data Optional NVM Command Support */
struct spdk_nvme_cdata_oncs {
uint16_t compare : 1;
uint16_t write_unc : 1;
uint16_t dsm: 1;
uint16_t write_zeroes: 1;
uint16_t set_features_save: 1;
uint16_t reservations: 1;
uint16_t timestamp: 1;
uint16_t verify: 1;
uint16_t copy: 1;
uint16_t reserved9: 7;
};
struct __attribute__((packed)) spdk_nvme_ctrlr_data {
/* bytes 0-255: controller capabilities and features */
@ -2175,18 +2189,7 @@ struct __attribute__((packed)) spdk_nvme_ctrlr_data {
uint32_t nn;
/** optional nvm command support */
struct {
uint16_t compare : 1;
uint16_t write_unc : 1;
uint16_t dsm: 1;
uint16_t write_zeroes: 1;
uint16_t set_features_save: 1;
uint16_t reservations: 1;
uint16_t timestamp: 1;
uint16_t verify: 1;
uint16_t copy: 1;
uint16_t reserved9: 7;
} oncs;
struct spdk_nvme_cdata_oncs oncs;
/** fused operation support */
struct {