NVMe: Mismatched host/device page size support
[linux-2.6-block.git] / include / linux / nvme.h
index 974efd04a4b1bb6b2279485dbc37b214efc5c95f..ed09074e555496d247b4d225eafcc8262cab4a0f 100644 (file)
@@ -38,6 +38,7 @@ struct nvme_bar {
 #define NVME_CAP_TIMEOUT(cap)  (((cap) >> 24) & 0xff)
 #define NVME_CAP_STRIDE(cap)   (((cap) >> 32) & 0xf)
 #define NVME_CAP_MPSMIN(cap)   (((cap) >> 48) & 0xf)
+#define NVME_CAP_MPSMAX(cap)   (((cap) >> 52) & 0xf)
 
 enum {
        NVME_CC_ENABLE          = 1 << 0,
@@ -97,6 +98,7 @@ struct nvme_dev {
        char firmware_rev[8];
        u32 max_hw_sectors;
        u32 stripe_size;
+       u32 page_size;
        u16 oncs;
        u16 abort_limit;
        u8 event_limit;