Skip to content

Commit 2c0adc1

Browse files
arbaz404igaw
authored andcommitted
type: Added enums for ANSAN and RGCNS bit of OAES field
Added enums for ANSAN and RGCNS bit of OAES field based on NVM Express Base Specification 2.1 Signed-off-by: Arbaz Khan <[email protected]> Reviewed-by: Steven Seungcheol Lee <[email protected]> Reviewed-by: Sathyavathi M <[email protected]>
1 parent e48845e commit 2c0adc1

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

src/nvme/types.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1603,6 +1603,9 @@ enum nvme_id_ctrl_cmic {
16031603
* @NVME_CTRL_OAES_NS_SHIFT: Shift amount to get the Normal NVM Subsystem Shutdown event supported
16041604
* @NVME_CTRL_OAES_TTH_SHIFT: Shift amount to get the Temperature Threshold Hysteresis Recovery
16051605
* event supported
1606+
* @NVME_CTRL_OAES_RGCNS_SHIFT: Shift amount to get the Reachability Groups Change Notices supported
1607+
* @NVME_CTRL_OAES_ANSAN_SHIFT: Shift amount to get the Allocated Namespace Attribute Notices
1608+
* supported
16061609
* @NVME_CTRL_OAES_ZD_SHIFT: Shift amount to get the Zone Descriptor Change Notifications supported
16071610
* @NVME_CTRL_OAES_DL_SHIFT: Shift amount to get the Discover Log Page Change Notifications
16081611
* supported
@@ -1617,6 +1620,8 @@ enum nvme_id_ctrl_cmic {
16171620
* @NVME_CTRL_OAES_NS_MASK: Mask to get the Normal NVM Subsystem Shutdown event supported
16181621
* @NVME_CTRL_OAES_TTH_MASK: Mask to get the Temperature Threshold Hysteresis Recovery event
16191622
* supported
1623+
* @NVME_CTRL_OAES_RGCNS_MASK: Mask to get the Reachability Groups Change Notices supported
1624+
* @NVME_CTRL_OAES_ANSAN_MASK: Mask to get the Allocated Namespace Attribute Notices supported
16201625
* @NVME_CTRL_OAES_ZD_MASK: Mask to get the Zone Descriptor Change Notifications supported
16211626
* @NVME_CTRL_OAES_DL_MASK: Mask to get the Discover Log Page Change Notifications supported
16221627
* @NVME_CTRL_OAES_NA: Namespace Attribute Notices event supported
@@ -1627,6 +1632,8 @@ enum nvme_id_ctrl_cmic {
16271632
* @NVME_CTRL_OAES_EGE: Endurance Group Events Aggregate Log Change Notices event supported
16281633
* @NVME_CTRL_OAES_NS: Normal NVM Subsystem Shutdown event supported
16291634
* @NVME_CTRL_OAES_TTH: Temperature Threshold Hysteresis Recovery event supported
1635+
* @NVME_CTRL_OAES_RGCNS: Reachability Groups Change Notices supported
1636+
* @NVME_CTRL_OAES_ANSAN: Allocated Namespace Attribute Notices supported
16301637
* @NVME_CTRL_OAES_ZD: Zone Descriptor Change Notifications supported
16311638
* @NVME_CTRL_OAES_DL: Discover Log Page Change Notifications supported
16321639
*/
@@ -1639,6 +1646,8 @@ enum nvme_id_ctrl_oaes {
16391646
NVME_CTRL_OAES_EGE_SHIFT = 14,
16401647
NVME_CTRL_OAES_NS_SHIFT = 15,
16411648
NVME_CTRL_OAES_TTH_SHIFT = 16,
1649+
NVME_CTRL_OAES_RGCNS_SHIFT = 17,
1650+
NVME_CTRL_OAES_ANSAN_SHIFT = 19,
16421651
NVME_CTRL_OAES_ZD_SHIFT = 27,
16431652
NVME_CTRL_OAES_DL_SHIFT = 31,
16441653
NVME_CTRL_OAES_NA_MASK = 0x1,
@@ -1649,6 +1658,8 @@ enum nvme_id_ctrl_oaes {
16491658
NVME_CTRL_OAES_EGE_MASK = 0x1,
16501659
NVME_CTRL_OAES_NS_MASK = 0x1,
16511660
NVME_CTRL_OAES_TTH_MASK = 0x1,
1661+
NVME_CTRL_OAES_RGCNS_MASK = 0x1,
1662+
NVME_CTRL_OAES_ANSAN_MASK = 0x1,
16521663
NVME_CTRL_OAES_ZD_MASK = 0x1,
16531664
NVME_CTRL_OAES_DL_MASK = 0x1,
16541665
NVME_CTRL_OAES_NA = NVME_VAL(CTRL_OAES_NA),
@@ -1659,6 +1670,8 @@ enum nvme_id_ctrl_oaes {
16591670
NVME_CTRL_OAES_EGE = NVME_VAL(CTRL_OAES_EGE),
16601671
NVME_CTRL_OAES_NS = NVME_VAL(CTRL_OAES_NS),
16611672
NVME_CTRL_OAES_TTH = NVME_VAL(CTRL_OAES_TTH),
1673+
NVME_CTRL_OAES_RGCNS = NVME_VAL(CTRL_OAES_RGCNS),
1674+
NVME_CTRL_OAES_ANSAN = NVME_VAL(CTRL_OAES_ANSAN),
16621675
NVME_CTRL_OAES_ZD = NVME_VAL(CTRL_OAES_ZD),
16631676
NVME_CTRL_OAES_DL = NVME_VAL(CTRL_OAES_DL),
16641677
};
@@ -1671,6 +1684,8 @@ enum nvme_id_ctrl_oaes {
16711684
#define NVME_CTRL_OAES_EGEALPCN(oaes) NVME_GET(oaes, CTRL_OAES_EGE)
16721685
#define NVME_CTRL_OAES_NNVMSS(oaes) NVME_GET(oaes, CTRL_OAES_NS)
16731686
#define NVME_CTRL_OAES_TTHR(oaes) NVME_GET(oaes, CTRL_OAES_TTH)
1687+
#define NVME_CTRL_OAES_RGCNS(oaes) NVME_GET(oaes, CTRL_OAES_RGCNS)
1688+
#define NVME_CTRL_OAES_ANSAN(oaes) NVME_GET(oaes, CTRL_OAES_ANSAN)
16741689
#define NVME_CTRL_OAES_ZDCN(oaes) NVME_GET(oaes, CTRL_OAES_ZD)
16751690
#define NVME_CTRL_OAES_DLPCN(oaes) NVME_GET(oaes, CTRL_OAES_DL)
16761691

0 commit comments

Comments
 (0)