nvme: add Boot Partition Support to CAP register
Add the section of boot partition support. Change-Id: I81357d657f1a55376ab98b5ffab511c6227e43c8 Signed-off-by: Cunyin Chang <cunyin.chang@intel.com> Reviewed-on: https://review.gerrithub.io/397033 Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
ad9b3ef5a5
commit
37273c20c2
@ -629,6 +629,8 @@ print_controller(struct spdk_nvme_ctrlr *ctrlr, const struct spdk_nvme_transport
|
||||
printf("Command Sets Supported\n");
|
||||
printf(" NVM Command Set: %s\n",
|
||||
cap.bits.css_nvm ? "Supported" : "Not Supported");
|
||||
printf("Boot Partition: %s\n",
|
||||
cap.bits.bps ? "Supported" : "Not Supported");
|
||||
printf("Memory Page Size Minimum: %" PRIu64 " bytes\n",
|
||||
(uint64_t)1 << (12 + cap.bits.mpsmin));
|
||||
printf("Memory Page Size Maximum: %" PRIu64 " bytes\n",
|
||||
|
@ -98,8 +98,12 @@ union spdk_nvme_cap_register {
|
||||
/** command sets supported */
|
||||
uint32_t css_nvm : 1;
|
||||
|
||||
uint32_t css_reserved : 3;
|
||||
uint32_t reserved2 : 7;
|
||||
uint32_t css_reserved : 7;
|
||||
|
||||
/** boot partition support */
|
||||
uint32_t bps : 1;
|
||||
|
||||
uint32_t reserved2 : 2;
|
||||
|
||||
/** memory page size minimum */
|
||||
uint32_t mpsmin : 4;
|
||||
|
Loading…
Reference in New Issue
Block a user