@@ -230,6 +230,42 @@ static inline bool nvme_is_64bit_reg(__u32 offset)
230230 }
231231}
232232
233+ /**
234+ * enum nvme_cap - This field indicates the controller capabilities register
235+ * @NVME_CAP_MQES_SHIFT: Shift amount to get the maximum queue entries supported
236+ * @NVME_CAP_CQR_SHIFT: Shift amount to get the contiguous queues required
237+ * @NVME_CAP_AMS_SHIFT: Shift amount to get the arbitration mechanism supported
238+ * @NVME_CAP_TO_SHIFT: Shift amount to get the timeout
239+ * @NVME_CAP_DSTRD_SHIFT: Shift amount to get the doorbell stride
240+ * @NVME_CAP_NSSRC_SHIFT: Shift amount to get the NVM subsystem reset supported
241+ * @NVME_CAP_CSS_SHIFT: Shift amount to get the command sets supported
242+ * @NVME_CAP_BPS_SHIFT: Shift amount to get the boot partition support
243+ * @NVME_CAP_MPSMIN_SHIFT: Shift amount to get the memory page size minimum
244+ * @NVME_CAP_MPSMAX_SHIFT: Shift amount to get the memory page size maximum
245+ * @NVME_CAP_PMRS_SHIFT: Shift amount to get the persistent memory region supported
246+ * @NVME_CAP_CMBS_SHIFT: Shift amount to get the controller memory buffer supported
247+ * @NVME_CAP_CRMS_SHIFT: Shift amount to get the controller ready modes supported
248+ * @NVME_CAP_MQES_MASK: Mask to get the maximum queue entries supported
249+ * @NVME_CAP_CQR_MASK: Mask to get the contiguous queues required
250+ * @NVME_CAP_AMS_MASK: Mask to get the arbitration mechanism supported
251+ * @NVME_CAP_TO_MASK: Mask to get the timeout
252+ * @NVME_CAP_DSTRD_MASK: Mask to get the doorbell stride
253+ * @NVME_CAP_NSSRC_MASK: Mask to get the NVM subsystem reset supported
254+ * @NVME_CAP_CSS_MASK: Mask to get the command sets supported
255+ * @NVME_CAP_BPS_MASK: Mask to get the boot partition support
256+ * @NVME_CAP_MPSMIN_MASK: Mask to get the memory page size minimum
257+ * @NVME_CAP_MPSMAX_MASK: Mask to get the memory page size maximum
258+ * @NVME_CAP_PMRS_MASK: Mask to get the persistent memory region supported
259+ * @NVME_CAP_CMBS_MASK: Mask to get the controller memory buffer supported
260+ * @NVME_CAP_CRMS_MASK: Mask to get the controller ready modes supported
261+ * @NVME_CAP_AMS_WRR: Weighted round robin with urgent priority class
262+ * @NVME_CAP_AMS_VS: Vendor specific
263+ * @NVME_CAP_CSS_NVM: NVM command set or a discovery controller
264+ * @NVME_CAP_CSS_CSI: Controller supports one or more I/O command sets
265+ * @NVME_CAP_CSS_ADMIN: No I/O command set is supported
266+ * @NVME_CAP_CRWMS: Controller ready with media support
267+ * @NVME_CAP_CRIMS: Controller ready independent of media support
268+ */
233269enum nvme_cap {
234270 NVME_CAP_MQES_SHIFT = 0 ,
235271 NVME_CAP_CQR_SHIFT = 16 ,
0 commit comments