diff --git a/inc/saiswitch.h b/inc/saiswitch.h index c7d521288..c5183d6a1 100644 --- a/inc/saiswitch.h +++ b/inc/saiswitch.h @@ -261,6 +261,19 @@ typedef enum _sai_switch_hardware_access_bus_t } sai_switch_hardware_access_bus_t; +/** + * @brief Attribute data for #SAI_SWITCH_ATTR_MDIO_ACCESS_TYPE + */ +typedef enum _sai_switch_mdio_clause_t +{ + /** MDIO Clause 22 */ + SAI_SWITCH_MDIO_CLAUSE_22, + + /** MDIO Clause 45 */ + SAI_SWITCH_MDIO_CLAUSE_45, + +} sai_switch_mdio_clause_t; + /** * @brief Attribute data for #SAI_SWITCH_ATTR_FIRMWARE_LOAD_METHOD */ @@ -2776,6 +2789,17 @@ typedef enum _sai_switch_attr_t */ SAI_SWITCH_ATTR_ECMP_MEMBER_COUNT, + /** + * @brief Switch MDIO access type + * + * set mdio access type (clause 22 or clause 45) before calling sai_switch_mdio_read_fn and sai_switch_mdio_write_fn + * + * @type sai_switch_mdio_clause_t + * @flags CREATE_AND_SET + * @default SAI_SWITCH_MDIO_CLAUSE_45 + */ + SAI_SWITCH_ATTR_MDIO_ACCESS_TYPE, + /** * @brief End of attributes */