@@ -1546,31 +1546,88 @@ enum nvme_id_ctrl_cmic {
15461546
15471547/**
15481548 * enum nvme_id_ctrl_oaes - Optional Asynchronous Events Supported
1549+ * @NVME_CTRL_OAES_NA_SHIFT: Shift amount to get the Namespace Attribute Notices event supported
1550+ * @NVME_CTRL_OAES_FA_SHIFT: Shift amount to get the Firmware Activation Notices event supported
1551+ * @NVME_CTRL_OAES_ANA_SHIFT: Shift amount to get the ANA Change Notices supported
1552+ * @NVME_CTRL_OAES_PLEA_SHIFT: Shift amount to get the Predictable Latency Event Aggregate Log
1553+ * Change Notices event supported
1554+ * @NVME_CTRL_OAES_LBAS_SHIFT: Shift amount to get the LBA Status Information Notices event
1555+ * supported
1556+ * @NVME_CTRL_OAES_EGE_SHIFT: Shift amount to get the Endurance Group Events Aggregate Log Change
1557+ * Notices event supported
1558+ * @NVME_CTRL_OAES_NS_SHIFT: Shift amount to get the Normal NVM Subsystem Shutdown event supported
1559+ * @NVME_CTRL_OAES_TTH_SHIFT: Shift amount to get the Temperature Threshold Hysteresis Recovery
1560+ * event supported
1561+ * @NVME_CTRL_OAES_ZD_SHIFT: Shift amount to get the Zone Descriptor Change Notifications supported
1562+ * @NVME_CTRL_OAES_DL_SHIFT: Shift amount to get the Discover Log Page Change Notifications
1563+ * supported
1564+ * @NVME_CTRL_OAES_NA_MASK: Mask to get the Namespace Attribute Notices event supported
1565+ * @NVME_CTRL_OAES_FA_MASK: Mask to get the Firmware Activation Notices event supported
1566+ * @NVME_CTRL_OAES_ANA_MASK: Mask to get the ANA Change Notices supported
1567+ * @NVME_CTRL_OAES_PLEA_MASK: Mask to get the Predictable Latency Event Aggregate Log Change Notices
1568+ * event supported
1569+ * @NVME_CTRL_OAES_LBAS_MASK: Mask to get the LBA Status Information Notices event supported
1570+ * @NVME_CTRL_OAES_EGE_MASK: Mask to get the Endurance Group Events Aggregate Log Change Notices
1571+ * event supported
1572+ * @NVME_CTRL_OAES_NS_MASK: Mask to get the Normal NVM Subsystem Shutdown event supported
1573+ * @NVME_CTRL_OAES_TTH_MASK: Mask to get the Temperature Threshold Hysteresis Recovery event
1574+ * supported
1575+ * @NVME_CTRL_OAES_ZD_MASK: Mask to get the Zone Descriptor Change Notifications supported
1576+ * @NVME_CTRL_OAES_DL_MASK: Mask to get the Discover Log Page Change Notifications supported
15491577 * @NVME_CTRL_OAES_NA: Namespace Attribute Notices event supported
15501578 * @NVME_CTRL_OAES_FA: Firmware Activation Notices event supported
15511579 * @NVME_CTRL_OAES_ANA: ANA Change Notices supported
1552- * @NVME_CTRL_OAES_PLEA: Predictable Latency Event Aggregate Log
1553- * Change Notices event supported
1580+ * @NVME_CTRL_OAES_PLEA: Predictable Latency Event Aggregate Log Change Notices event supported
15541581 * @NVME_CTRL_OAES_LBAS: LBA Status Information Notices event supported
1555- * @NVME_CTRL_OAES_EGE: Endurance Group Events Aggregate Log Change
1556- * Notices event supported
1582+ * @NVME_CTRL_OAES_EGE: Endurance Group Events Aggregate Log Change Notices event supported
15571583 * @NVME_CTRL_OAES_NS: Normal NVM Subsystem Shutdown event supported
1558- * @NVME_CTRL_OAES_TTHR : Temperature Threshold Hysteresis Recovery event supported
1584+ * @NVME_CTRL_OAES_TTH : Temperature Threshold Hysteresis Recovery event supported
15591585 * @NVME_CTRL_OAES_ZD: Zone Descriptor Change Notifications supported
15601586 * @NVME_CTRL_OAES_DL: Discover Log Page Change Notifications supported
15611587 */
15621588enum nvme_id_ctrl_oaes {
1563- NVME_CTRL_OAES_NA = 1 << 8 ,
1564- NVME_CTRL_OAES_FA = 1 << 9 ,
1565- NVME_CTRL_OAES_ANA = 1 << 11 ,
1566- NVME_CTRL_OAES_PLEA = 1 << 12 ,
1567- NVME_CTRL_OAES_LBAS = 1 << 13 ,
1568- NVME_CTRL_OAES_EGE = 1 << 14 ,
1569- NVME_CTRL_OAES_NS = 1 << 15 ,
1570- NVME_CTRL_OAES_TTHR = 1 << 16 ,
1571- NVME_CTRL_OAES_ZD = 1 << 27 ,
1572- NVME_CTRL_OAES_DL = 1 << 31 ,
1573- };
1589+ NVME_CTRL_OAES_NA_SHIFT = 8 ,
1590+ NVME_CTRL_OAES_FA_SHIFT = 9 ,
1591+ NVME_CTRL_OAES_ANA_SHIFT = 11 ,
1592+ NVME_CTRL_OAES_PLEA_SHIFT = 12 ,
1593+ NVME_CTRL_OAES_LBAS_SHIFT = 13 ,
1594+ NVME_CTRL_OAES_EGE_SHIFT = 14 ,
1595+ NVME_CTRL_OAES_NS_SHIFT = 15 ,
1596+ NVME_CTRL_OAES_TTH_SHIFT = 16 ,
1597+ NVME_CTRL_OAES_ZD_SHIFT = 27 ,
1598+ NVME_CTRL_OAES_DL_SHIFT = 31 ,
1599+ NVME_CTRL_OAES_NA_MASK = 0x1 ,
1600+ NVME_CTRL_OAES_FA_MASK = 0x1 ,
1601+ NVME_CTRL_OAES_ANA_MASK = 0x1 ,
1602+ NVME_CTRL_OAES_PLEA_MASK = 0x1 ,
1603+ NVME_CTRL_OAES_LBAS_MASK = 0x1 ,
1604+ NVME_CTRL_OAES_EGE_MASK = 0x1 ,
1605+ NVME_CTRL_OAES_NS_MASK = 0x1 ,
1606+ NVME_CTRL_OAES_TTH_MASK = 0x1 ,
1607+ NVME_CTRL_OAES_ZD_MASK = 0x1 ,
1608+ NVME_CTRL_OAES_DL_MASK = 0x1 ,
1609+ NVME_CTRL_OAES_NA = NVME_VAL (CTRL_OAES_NA ),
1610+ NVME_CTRL_OAES_FA = NVME_VAL (CTRL_OAES_FA ),
1611+ NVME_CTRL_OAES_ANA = NVME_VAL (CTRL_OAES_ANA ),
1612+ NVME_CTRL_OAES_PLEA = NVME_VAL (CTRL_OAES_PLEA ),
1613+ NVME_CTRL_OAES_LBAS = NVME_VAL (CTRL_OAES_LBAS ),
1614+ NVME_CTRL_OAES_EGE = NVME_VAL (CTRL_OAES_EGE ),
1615+ NVME_CTRL_OAES_NS = NVME_VAL (CTRL_OAES_NS ),
1616+ NVME_CTRL_OAES_TTH = NVME_VAL (CTRL_OAES_TTH ),
1617+ NVME_CTRL_OAES_ZD = NVME_VAL (CTRL_OAES_ZD ),
1618+ NVME_CTRL_OAES_DL = NVME_VAL (CTRL_OAES_DL ),
1619+ };
1620+
1621+ #define NVME_CTRL_OAES_NAN (oaes ) NVME_GET(oaes, CTRL_OAES_NA)
1622+ #define NVME_CTRL_OAES_FAN (oaes ) NVME_GET(oaes, CTRL_OAES_FA)
1623+ #define NVME_CTRL_OAES_ANACN (oaes ) NVME_GET(oaes, CTRL_OAES_ANA)
1624+ #define NVME_CTRL_OAES_PLEALCN (oaes ) NVME_GET(oaes, CTRL_OAES_PLEA)
1625+ #define NVME_CTRL_OAES_LBASIAN (oaes ) NVME_GET(oaes, CTRL_OAES_LBAS)
1626+ #define NVME_CTRL_OAES_EGEALPCN (oaes ) NVME_GET(oaes, CTRL_OAES_EGE)
1627+ #define NVME_CTRL_OAES_NNVMSS (oaes ) NVME_GET(oaes, CTRL_OAES_NS)
1628+ #define NVME_CTRL_OAES_TTHR (oaes ) NVME_GET(oaes, CTRL_OAES_TTH)
1629+ #define NVME_CTRL_OAES_ZDCN (oaes ) NVME_GET(oaes, CTRL_OAES_ZD)
1630+ #define NVME_CTRL_OAES_DLPCN (oaes ) NVME_GET(oaes, CTRL_OAES_DL)
15741631
15751632/**
15761633 * enum nvme_id_ctrl_ctratt - Controller attributes
0 commit comments