-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
types: Update id-ctrl field based on NVMe 2.1 spec #912
base: master
Are you sure you want to change the base?
Conversation
* @NVME_CTRL_BACAP_SFBPWPS: Set Features Boot Partition Write Protection Support | ||
*/ | ||
enum nvme_id_ctrl_bpcap { | ||
NVME_CTRL_BACAP_RPMBBPWPS = 3 << 0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should these be _MASK
and _SHIFT
fields so we use the NVME_GET
and NVME_SET
macros?
And then include actual values for various RPMBBPWPS
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, please introduce the _MASK
and _SHIFT
fields.
Boot Partition Capabilities (BPCAP) NVM Subsystem Shutdown Latency (NSSL) Power Loss Signaling Information (PLSI) Controller Reachability Capabilities (CRCAP) Key Per I/O Capabilities (KPIOC) Maximum Processing Time for Firmware Activation Without Reset (MPTFAWR) Command Quiesce Time (CQT) Recommended Host-Initiated Refresh Interval (RHIRI) Host-Initiated Refresh Time (HIRT) Signed-off-by: Steven Seungcheol Lee <[email protected]>
* not supported by this controller. | ||
* 10b - RPMB Boot Partition Write Protection is | ||
* supported by this controller. | ||
* 11b - Reserved |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you also introduce enums for these? Thanks!
looks good, just add the mask/shift things and also the missing bit field definition, so that all is consistent. thanks |
Boot Partition Capabilities (BPCAP)
NVM Subsystem Shutdown Latency (NSSL)
Power Loss Signaling Information (PLSI)
Controller Reachability Capabilities (CRCAP)
Key Per I/O Capabilities (KPIOC)
Maximum Processing Time for Firmware Activation Without Reset (MPTFAWR)