summaryrefslogtreecommitdiffstats
path: root/platform-intel.h
diff options
context:
space:
mode:
authorPawel Baldysiak <pawel.baldysiak@intel.com>2016-12-12 11:28:44 +0100
committerJes Sorensen <Jes.Sorensen@redhat.com>2016-12-12 20:23:39 +0100
commit32716c51d968de302ee4e9a9e3bfa4dfdeb14e91 (patch)
tree162f958564dc156a2562b42955d13d530218e981 /platform-intel.h
parentmdopen: open md devices O_RDONLY (diff)
downloadmdadm-32716c51d968de302ee4e9a9e3bfa4dfdeb14e91.tar.xz
mdadm-32716c51d968de302ee4e9a9e3bfa4dfdeb14e91.zip
IMSM: Add support for Non-Intel NVMe drives under VMD
This patch adds checking if platform (preOS) supports non-Intel NVMe drives under VMD domain, and - if so - allow creating IMSM Raid Volume with those drives. Signed-off-by: Pawel Baldysiak <pawel.baldysiak@intel.com> Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Diffstat (limited to 'platform-intel.h')
-rw-r--r--platform-intel.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/platform-intel.h b/platform-intel.h
index a8ae85f4..4851074c 100644
--- a/platform-intel.h
+++ b/platform-intel.h
@@ -99,6 +99,8 @@ struct imsm_orom {
#define IMSM_OROM_CAPABILITIES_Rohi (1 << 5)
#define IMSM_OROM_CAPABILITIES_ReadPatrol (1 << 6)
#define IMSM_OROM_CAPABILITIES_XorHw (1 << 7)
+ #define IMSM_OROM_CAPABILITIES_SKUMode ((1 << 8)|(1 << 9))
+ #define IMSM_OROM_CAPABILITIES_TPV (1 << 10)
} __attribute__((packed));
static inline int imsm_orom_has_raid0(const struct imsm_orom *orom)
@@ -184,6 +186,11 @@ static inline int imsm_orom_is_nvme(const struct imsm_orom *orom)
sizeof(orom->signature)) == 0;
}
+static inline int imsm_orom_has_tpv_support(const struct imsm_orom *orom)
+{
+ return !!(orom->driver_features & IMSM_OROM_CAPABILITIES_TPV);
+}
+
enum sys_dev_type {
SYS_DEV_UNKNOWN = 0,
SYS_DEV_SAS,