Print fuses and fna fields in identify data.
MFC after: 2 weeks Sponsored by: iXsystems, Inc.
This commit is contained in:
parent
1f17982a75
commit
a7ab51623b
@ -196,6 +196,17 @@ print_controller(struct nvme_controller_data *cdata)
|
||||
printf("Timestamp feature: %sSupported\n",
|
||||
((oncs >> NVME_CTRLR_DATA_ONCS_TIMESTAMP_SHIFT) &
|
||||
NVME_CTRLR_DATA_ONCS_TIMESTAMP_MASK) ? "" : "Not ");
|
||||
printf("Fused Operation Support: %s%s\n",
|
||||
(cdata->fuses == 0) ? "Not Supported" : "",
|
||||
((cdata->fuses >> NVME_CTRLR_DATA_FUSES_CNW_SHIFT) &
|
||||
NVME_CTRLR_DATA_FUSES_CNW_MASK) ? "Compare and Write" : "");
|
||||
printf("Format NVM Attributes: %s%s Erase, %s Format\n",
|
||||
((cdata->fna >> NVME_CTRLR_DATA_FNA_CRYPTO_ERASE_SHIFT) &
|
||||
NVME_CTRLR_DATA_FNA_CRYPTO_ERASE_MASK) ? "Crypto Erase, " : "",
|
||||
((cdata->fna >> NVME_CTRLR_DATA_FNA_ERASE_ALL_SHIFT) &
|
||||
NVME_CTRLR_DATA_FNA_ERASE_ALL_MASK) ? "All-NVM" : "Per-NS",
|
||||
((cdata->fna >> NVME_CTRLR_DATA_FNA_FORMAT_ALL_SHIFT) &
|
||||
NVME_CTRLR_DATA_FNA_FORMAT_ALL_MASK) ? "All-NVM" : "Per-NS");
|
||||
printf("Volatile Write Cache: %s\n",
|
||||
vwc_present ? "Present" : "Not Present");
|
||||
|
||||
|
@ -244,6 +244,18 @@
|
||||
#define NVME_CTRLR_DATA_ONCS_TIMESTAMP_SHIFT (6)
|
||||
#define NVME_CTRLR_DATA_ONCS_TIMESTAMP_MASK (0x1)
|
||||
|
||||
/** Fused Operation Support */
|
||||
#define NVME_CTRLR_DATA_FUSES_CNW_SHIFT (0)
|
||||
#define NVME_CTRLR_DATA_FUSES_CNW_MASK (0x1)
|
||||
|
||||
/** Format NVM Attributes */
|
||||
#define NVME_CTRLR_DATA_FNA_FORMAT_ALL_SHIFT (0)
|
||||
#define NVME_CTRLR_DATA_FNA_FORMAT_ALL_MASK (0x1)
|
||||
#define NVME_CTRLR_DATA_FNA_ERASE_ALL_SHIFT (1)
|
||||
#define NVME_CTRLR_DATA_FNA_ERASE_ALL_MASK (0x1)
|
||||
#define NVME_CTRLR_DATA_FNA_CRYPTO_ERASE_SHIFT (2)
|
||||
#define NVME_CTRLR_DATA_FNA_CRYPTO_ERASE_MASK (0x1)
|
||||
|
||||
/** volatile write cache */
|
||||
#define NVME_CTRLR_DATA_VWC_PRESENT_SHIFT (0)
|
||||
#define NVME_CTRLR_DATA_VWC_PRESENT_MASK (0x1)
|
||||
|
Loading…
Reference in New Issue
Block a user