summaryrefslogtreecommitdiffstats
path: root/include/linux/nvme.h
diff options
context:
space:
mode:
authorMatthew Wilcox <matthew.r.wilcox@intel.com>2011-10-20 17:00:41 -0400
committerMatthew Wilcox <matthew.r.wilcox@intel.com>2011-11-04 15:53:05 -0400
commitf1938f6e1ee1583c87ec74dc406fdd8694e99ac8 (patch)
treea1e27b0feb844ac675ba90230e8411dce7a86f71 /include/linux/nvme.h
parentce38c149576fd0a3360fec3bef4012212d42e736 (diff)
downloadop-kernel-dev-f1938f6e1ee1583c87ec74dc406fdd8694e99ac8.zip
op-kernel-dev-f1938f6e1ee1583c87ec74dc406fdd8694e99ac8.tar.gz
NVMe: Implement doorbell stride capability
The doorbell stride allows devices to spread out their doorbells instead of packing them tightly. This feature was added as part of ECN 003. This patch also enables support for more than 512 queues :-) Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
Diffstat (limited to 'include/linux/nvme.h')
-rw-r--r--include/linux/nvme.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/nvme.h b/include/linux/nvme.h
index c96ab0f..2a2c535 100644
--- a/include/linux/nvme.h
+++ b/include/linux/nvme.h
@@ -36,6 +36,7 @@ struct nvme_bar {
};
#define NVME_CAP_TIMEOUT(cap) (((cap) >> 24) & 0xff)
+#define NVME_CAP_STRIDE(cap) (((cap) >> 32) & 0xf)
enum {
NVME_CC_ENABLE = 1 << 0,
OpenPOWER on IntegriCloud