nvme: add asynchronous event configuration definition
Change-Id: Id1e2a7da0db319c4d43988ec4991462fc956dde2 Signed-off-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-on: https://review.gerrithub.io/398542 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
parent
a0e22e1303
commit
6cfdeefe23
@ -1749,6 +1749,21 @@ struct __attribute__((packed)) spdk_nvme_health_information_page {
|
||||
};
|
||||
SPDK_STATIC_ASSERT(sizeof(struct spdk_nvme_health_information_page) == 512, "Incorrect size");
|
||||
|
||||
/**
|
||||
* Asynchronous Event Configuration
|
||||
*/
|
||||
union spdk_nvme_async_event_config {
|
||||
uint32_t raw;
|
||||
struct {
|
||||
union spdk_nvme_critical_warning_state crit_warn;
|
||||
uint32_t ns_attr_notice : 1;
|
||||
uint32_t fw_activation_notice : 1;
|
||||
uint32_t telemetry_log_notice : 1;
|
||||
uint32_t reserved : 21;
|
||||
} bits;
|
||||
};
|
||||
SPDK_STATIC_ASSERT(sizeof(union spdk_nvme_async_event_config) == 4, "Incorrect size");
|
||||
|
||||
/**
|
||||
* Firmware slot information page (\ref SPDK_NVME_LOG_FIRMWARE_SLOT)
|
||||
*/
|
||||
|
@ -178,14 +178,7 @@ struct spdk_nvmf_ctrlr {
|
||||
int num_qpairs;
|
||||
int max_qpairs_allowed;
|
||||
uint32_t kato;
|
||||
union {
|
||||
uint32_t raw;
|
||||
struct {
|
||||
union spdk_nvme_critical_warning_state crit_warn;
|
||||
uint8_t ns_attr_notice : 1;
|
||||
uint8_t fw_activation_notice : 1;
|
||||
} bits;
|
||||
} async_event_config;
|
||||
union spdk_nvme_async_event_config async_event_config;
|
||||
struct spdk_nvmf_request *aer_req;
|
||||
uint8_t hostid[16];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user