![]() |
GaIA BIOS Library
|
GaIA PHY NetXDuo utility functions prototypes. More...
Functions | |
| int32_t | phy_utils_reset (const nx_phy_ioctx_t *io_ctx, uint8_t dev_addr) |
| Utility to reset the PHY. | |
| int32_t | phy_utils_set_power_mode (const nx_phy_ioctx_t *io_ctx, uint8_t dev_addr, int32_t power_mode) |
| Utility to set the power mode of the PHY. | |
| int32_t | phy_utils_set_mode (const nx_phy_ioctx_t *io_ctx, uint8_t dev_addr, int32_t mode) |
| Utility to set the mode of the PHY. | |
| int32_t | phy_utils_get_link_state (const nx_phy_ioctx_t *io_ctx, uint8_t dev_addr, int32_t *link_state) |
| Utility to get the PHY's link state. | |
| int32_t | phy_utils_get_link_info (const nx_phy_ioctx_t *io_ctx, uint8_t dev_addr, int32_t *link_info) |
| Utility to get the PHY's link information. | |
GaIA PHY NetXDuo utility functions prototypes.
| int32_t phy_utils_get_link_info | ( | const nx_phy_ioctx_t * | io_ctx, |
| uint8_t | dev_addr, | ||
| int32_t * | link_info ) |
Utility to get the PHY's link information.
| io_ctx | pointer to PHY context structure. |
| dev_addr | address of the device |
| link_info | pointer to variable where to store the link information. |
PHY_ERROR_NONE if successful, error code otherwise | int32_t phy_utils_get_link_state | ( | const nx_phy_ioctx_t * | io_ctx, |
| uint8_t | dev_addr, | ||
| int32_t * | link_state ) |
Utility to get the PHY's link state.
| io_ctx | pointer to PHY context structure. |
| dev_addr | address of the device. |
| link_state | pointer to variable where to store the link state. |
PHY_ERROR_NONE if successful, error code otherwise | int32_t phy_utils_reset | ( | const nx_phy_ioctx_t * | io_ctx, |
| uint8_t | dev_addr ) |
Utility to reset the PHY.
| io_ctx | pointer to PHY context structure. |
| dev_addr | address of the device. |
PHY_ERROR_NONE if successful, error code otherwise. | int32_t phy_utils_set_mode | ( | const nx_phy_ioctx_t * | io_ctx, |
| uint8_t | dev_addr, | ||
| int32_t | mode ) |
Utility to set the mode of the PHY.
| io_ctx | pointer to PHY context structure. |
| dev_addr | address of the device. |
| mode | mode (speed, half/full duplex, autonegotiation). |
PHY_ERROR_NONE if successful, error code otherwise. | int32_t phy_utils_set_power_mode | ( | const nx_phy_ioctx_t * | io_ctx, |
| uint8_t | dev_addr, | ||
| int32_t | power_mode ) |
Utility to set the power mode of the PHY.
| io_ctx | pointer to PHY context structure. |
| dev_addr | address of the device. |
| power_mode | power mode. |
PHY_ERROR_NONE if successful, error code otherwise.