aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGollu Appalanaidu <anaidu.gollu@samsung.com>2021-04-21 18:26:46 +0530
committerKlaus Jensen <k.jensen@samsung.com>2021-06-29 07:16:25 +0200
commit18de1526baa606789fbe11f17087543ab20a9c49 (patch)
tree2949c73971f4def09b4a63cd81a8e99002b7bfe7 /include
parentf42be416cd0d50bcb2987031fbab09ee257a5058 (diff)
hw/nvme: add identify namespace flbas/mc enums
Add enums for the Identify Namespace FLBAS and MC fields. Signed-off-by: Gollu Appalanaidu <anaidu.gollu@samsung.com> [k.jensen: squashed separate flbas/mc commits into one] Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Diffstat (limited to 'include')
-rw-r--r--include/block/nvme.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/block/nvme.h b/include/block/nvme.h
index 0ff9ce17a9..333affdb85 100644
--- a/include/block/nvme.h
+++ b/include/block/nvme.h
@@ -1341,6 +1341,15 @@ enum NvmeIdNsDps {
NVME_ID_NS_DPS_FIRST_EIGHT = 8,
};
+enum NvmeIdNsFlbas {
+ NVME_ID_NS_FLBAS_EXTENDED = 1 << 4,
+};
+
+enum NvmeIdNsMc {
+ NVME_ID_NS_MC_EXTENDED = 1 << 0,
+ NVME_ID_NS_MC_SEPARATE = 1 << 1,
+};
+
#define NVME_ID_NS_DPS_TYPE(dps) (dps & NVME_ID_NS_DPS_TYPE_MASK)
typedef struct NvmeDifTuple {