 |
AM64x MCU+ SDK
07.03.00
|
|
Go to the documentation of this file.
71 #define ETHPHY_CMD_ENABLE_MII (0U)
75 #define ETHPHY_CMD_SOFT_RESTART (1U)
77 #define ETHPHY_CMD_ENABLE_AUTO_MDIX (2U)
81 #define ETHPHY_CMD_VERIFY_IDENTIFIER_REGISTER (3U)
83 #define ETHPHY_CMD_DISABLE_1000M_ADVERTISEMENT (4U)
85 #define ETHPHY_CMD_ENABLE_FAST_LINK_DOWN_DETECTION (5U)
87 #define ETHPHY_CMD_CONFIGURE_LED_SOURCE (6U)
89 #define ETHPHY_CMD_CONFIGURE_LED_BLINK_RATE (7U)
91 #define ETHPHY_CMD_ENABLE_EXTENDED_FD_ABILITY (8U)
93 #define ETHPHY_CMD_ENABLE_ODD_NIBBLE_DETECTION (9U)
95 #define ETHPHY_CMD_ENABLE_ENHANCED_IPG_DETECTION (10U)
97 #define ETHPHY_CMD_GET_LINK_STATUS (11U)
99 #define ETHPHY_CMD_GET_SPEED_AND_DUPLEXITY (12U)
101 #define ETHPHY_CMD_SET_SPEED_AND_DUPLEXITY (13U)
112 #define ETHPHY_SPEED_DUPLEXITY_CONFIG_AUTONEG (0U)
113 #define ETHPHY_SPEED_DUPLEXITY_CONFIG_10FD (1U)
114 #define ETHPHY_SPEED_DUPLEXITY_CONFIG_100FD (2U)
115 #define ETHPHY_SPEED_DUPLEXITY_CONFIG_1000FD (3U)
116 #define ETHPHY_SPEED_DUPLEXITY_CONFIG_10HD (4U)
117 #define ETHPHY_SPEED_DUPLEXITY_CONFIG_100HD (5U)
118 #define ETHPHY_SPEED_DUPLEXITY_CONFIG_1000HD (6U)
119 #define ETHPHY_SPEED_DUPLEXITY_CONFIG_INVALID (7U)
188 typedef struct ETHPHY_Params_s
196 typedef struct ETHPHY_Fxns_s
207 typedef struct ETHPHY_Attrs_s
217 typedef struct ETHPHY_Config_s
229 typedef struct ETHPHY_SpeedDuplexityConfig_s
238 #include <board/ethphy/ethphy_dp83869.h>
struct ETHPHY_Params_s ETHPHY_Params
Forward declaration of ETHPHY_Params.
Definition: ethphy.h:127
uint32_t phyAddress
Definition: ethphy.h:210
const ETHPHY_Attrs * ETHPHY_getAttrs(uint32_t instanceId)
Return ETHPHY attributes.
int32_t(* ETHPHY_OpenFxn)(ETHPHY_Config *config, const ETHPHY_Params *params)
Driver implementation to open a specific ETHPHY driver.
Definition: ethphy.h:146
ETHPHY_Attrs * attrs
Definition: ethphy.h:219
uint32_t mdioBaseAddress
Definition: ethphy.h:209
uint32_t data
Definition: tisci_rm_psil.h:1
Parameters passed during ETHPHY_open()
Definition: ethphy.h:189
uint32_t config
Definition: ethphy.h:231
void * object
Definition: ethphy.h:221
void ETHPHY_close(ETHPHY_Handle handle)
Close ETHPHY driver.
ETHPHY_CommandFxn commandFxn
Definition: ethphy.h:200
ETHPHY_CloseFxn closeFxn
Definition: ethphy.h:199
int32_t(* ETHPHY_CommandFxn)(ETHPHY_Config *config, uint32_t command, void *data, uint32_t dataSize)
Driver implementation to send command to the ETHPHY using specific ETHPHY driver.
Definition: ethphy.h:174
void ETHPHY_Params_init(ETHPHY_Params *params)
Set default parameters in the ETHPHY_Params structure.
ETHPHY device attributes. These are filled by SysCfg based on the PHY device that is selected.
Definition: ethphy.h:208
ETHPHY Driver implementation callbacks.
Definition: ethphy.h:197
ETHPHY driver configuration. These are filled by SysCfg based on the PHY device that is selected.
Definition: ethphy.h:218
struct ETHPHY_Config_s ETHPHY_Config
Forward declaration of ETHPHY_Config.
Definition: ethphy.h:125
ETHPHY_OpenFxn openFxn
Definition: ethphy.h:198
ETHPHY_Handle ETHPHY_open(uint32_t instanceId, const ETHPHY_Params *params)
Open ETHPHY driver.
ETHPHY_Fxns * fxns
Definition: ethphy.h:220
int32_t ETHPHY_command(ETHPHY_Handle handle, uint32_t command, void *data, uint32_t dataSize)
Send a command to the ETHPHY.
void * ETHPHY_Handle
Handle to the ETHPHY driver returned by ETHPHY_open()
Definition: ethphy.h:123
uint32_t reserved
Definition: ethphy.h:190
Data structure to be passed/returned when calling ETHPHY_command with ETHPHY_CMD_GET_SPEED_AND_DUPLEX...
Definition: ethphy.h:230
void(* ETHPHY_CloseFxn)(ETHPHY_Config *config)
Driver implementation to close a specific ETHPHY driver.
Definition: ethphy.h:158