summaryrefslogtreecommitdiffstats
path: root/drivers/nvme/nvme.h
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2017-08-22 08:15:10 -0700
committerTom Rini <trini@konsulko.com>2017-08-28 07:17:11 -0400
commitb65c6921433c8fcf306b4671f9f9f7c68c36cefc (patch)
tree4970188c3a7f3fb7710bb4c166636c7319ac12d7 /drivers/nvme/nvme.h
parent3e18562961933c7772b7e91ba6fc1e908b453d93 (diff)
downloadu-boot-b65c6921433c8fcf306b4671f9f9f7c68c36cefc.tar.gz
u-boot-b65c6921433c8fcf306b4671f9f9f7c68c36cefc.tar.xz
u-boot-b65c6921433c8fcf306b4671f9f9f7c68c36cefc.zip
nvme: Cache controller's capabilities
Capabilities register is RO and accessed at various places in the driver. Let's cache it in the controller driver's priv struct. Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'drivers/nvme/nvme.h')
-rw-r--r--drivers/nvme/nvme.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nvme/nvme.h b/drivers/nvme/nvme.h
index cd411be83d..f0fa6399bf 100644
--- a/drivers/nvme/nvme.h
+++ b/drivers/nvme/nvme.h
@@ -621,6 +621,7 @@ struct nvme_dev {
char model[40];
char firmware_rev[8];
u32 max_transfer_shift;
+ u64 cap;
u32 stripe_size;
u32 page_size;
u8 vwc;