[PATCH v3 038/129] net/ice/base: add Cage Max Power override NVM module
Anatoly Burakov
anatoly.burakov at intel.com
Tue Jun 25 13:12:43 CEST 2024
From: Wojciech Drewek <wojciech.drewek at intel.com>
Define Cage Max Power override NVM module which allows to override maximum power
of QSFP/SFP cage. There might be up to 8 cages so each of them has its own word
in the module. From the ice driver perspective we need only Override Enable bit
so there is no need to define bits where maximum power s stored. This bit
determines if the new max power should be used (1) or the default value should
be used (0).
Signed-off-by: Wojciech Drewek <wojciech.drewek at intel.com>
Signed-off-by: Ian Stokes <ian.stokes at intel.com>
---
drivers/net/ice/base/ice_adminq_cmd.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/net/ice/base/ice_adminq_cmd.h b/drivers/net/ice/base/ice_adminq_cmd.h
index 13db853eae..f235bfb2fe 100644
--- a/drivers/net/ice/base/ice_adminq_cmd.h
+++ b/drivers/net/ice/base/ice_adminq_cmd.h
@@ -1977,6 +1977,14 @@ struct ice_aqc_nvm {
#define ICE_AQC_NVM_LLDP_STATUS_RD_LEN 4 /* In Bytes */
#define ICE_AQC_NVM_TX_TOPO_MOD_ID 0x14B
+#define ICE_AQC_NVM_CMPO_MOD_ID 0x153
+
+/* Cage Max Power override NVM module */
+struct ice_aqc_nvm_cmpo {
+ __le16 length;
+#define ICE_AQC_NVM_CMPO_ENABLE BIT(8)
+ __le16 cages_cfg[8];
+};
struct ice_aqc_nvm_tx_topo_user_sel {
__le16 length;
--
2.43.0
More information about the dev
mailing list