 |
AM62x MCU+ SDK
10.01.00
|
|
Go to the documentation of this file.
40 #ifndef ENET_MOD_PHY_H_
41 #define ENET_MOD_PHY_H_
60 #define ENET_PHY_PUBLIC_IOCTL(x) (ENET_IOCTL_TYPE_PUBLIC | \
61 ENET_IOCTL_PHY_BASE | \
322 typedef struct EnetPhy_GenericInArgs_s
331 typedef struct EnetPhy_ReadRegInArgs_s
343 typedef struct EnetPhy_WriteRegInArgs_s
358 typedef struct EnetPhy_C45ReadRegInArgs_s
373 typedef struct EnetPhy_C45WriteRegInArgs_s
391 typedef struct EnetPhy_PtpPktTimestampInArgs_s
402 typedef struct EnetPhy_AdjPtpFreqInArgs_s
411 typedef struct EnetPhy_AdjPtpPhaseInArgs_s
420 typedef struct EnetPhy_SetPtpTimeInArgs_s
429 typedef struct EnetPhy_ProcStatusFrameInArgs_s
439 typedef struct EnetPhy_ProcStatusFrameOutArgs_s
448 typedef struct EnetPhy_GetStatusFrameEthdrOutArgs_s
457 typedef struct EnetPhy_EnablePtpInArgs_s
470 typedef struct EnetPhy_EnableEventCaptureInArgs_s
481 typedef struct EnetPhy_EnableTriggerOutputInArgs_s
493 typedef struct EnetPhy_GetEventTimestampOutArgs_s
Enet_MacPort macPort
Definition: enet_mod_phy.h:325
EnetPhy_Ioctl_e
PHY IOCTL commands.
Definition: enet_mod_phy.h:72
uint16_t reg
Definition: enet_mod_phy.h:349
uint8_t * ethhdr
Definition: enet_mod_phy.h:450
@ ENET_PHY_IOCTL_READ_REG
Read PHY register.
Definition: enet_mod_phy.h:145
Input args for ENET_PHY_IOCTL_ADJ_PTP_PHASE command.
Definition: enet_mod_phy.h:412
@ ENET_PHY_IOCTL_GET_LINK_MODE
Get the link speed and duplexity state after the state machine has reached the LINKED state.
Definition: enet_mod_phy.h:127
uint32_t eventIdx
Definition: enet_mod_phy.h:473
uint32_t size
Definition: enet_mod_phy.h:433
uint8_t * frame
Definition: enet_mod_phy.h:432
int64_t offset
Definition: enet_mod_phy.h:414
@ ENET_PHY_IOCTL_C45_WRITE_REG
Write PHY register using Clause-45 frame.
Definition: enet_mod_phy.h:190
Enet_MacPort macPort
Definition: enet_mod_phy.h:376
@ ENET_PHY_IOCTL_GET_ID
Get PHY identification.
Definition: enet_mod_phy.h:80
Input args for ENET_PHY_IOCTL_WRITE_EXT_REG command.
Definition: enet_mod_phy.h:344
@ ENET_PHY_IOCTL_GET_STATUS_FRAME_ETHDR
Get PHY status frame header.
Definition: enet_mod_phy.h:280
@ ENET_PHY_IOCTL_WRITE_REG
Write PHY register.
Definition: enet_mod_phy.h:154
uint32_t srcMacStatusFrameType
Definition: enet_mod_phy.h:464
uint16_t reg
Definition: enet_mod_phy.h:367
@ ENET_PHY_IOCTL_RESET
Reset PHY.
Definition: enet_mod_phy.h:136
@ ENET_PHY_IOCTL_READ_EXT_REG
Read PHY extended register.
Definition: enet_mod_phy.h:163
uint16_t val
Definition: enet_mod_phy.h:385
@ ENET_PHY_IOCTL_GET_SUPPORTED_MODES
Get PHY supported modes by local PHY device.
Definition: enet_mod_phy.h:89
Input args for ENET_PHY_IOCTL_ENABLE_TRIGGER_OUTPUT command.
Definition: enet_mod_phy.h:482
Generic input args.
Definition: enet_mod_phy.h:323
Enet_MacPort
MAC port.
Definition: enet_types.h:409
@ ENET_PHY_IOCTL_ENABLE_EVENT_CAPTURE
Enable/Disable an event capture on a PHY GPIO pin.
Definition: enet_mod_phy.h:298
Enet_MacPort macPort
Definition: enet_mod_phy.h:413
Enet_MacPort macPort
Definition: enet_mod_phy.h:346
uint32_t seqId
Definition: enet_mod_phy.h:396
uint16_t reg
Definition: enet_mod_phy.h:337
uint64_t startNsec
Definition: enet_mod_phy.h:485
Enet_MacPort macPort
Definition: enet_mod_phy.h:361
Input args for ENET_PHY_IOCTL_ADJ_PTP_FREQ command.
Definition: enet_mod_phy.h:403
bool falling
Definition: enet_mod_phy.h:474
Input args for ENET_PHY_IOCTL_C45_WRITE_REG command.
Definition: enet_mod_phy.h:374
Input args for ENET_PHY_IOCTL_C45_READ_REG command.
Definition: enet_mod_phy.h:359
@ ENET_PHY_IOCTL_GET_PTP_TXTS
Get PHY PTP TX packet timestamp.
Definition: enet_mod_phy.h:244
This file contains the type definitions and helper macros for the Ethernet PHY interface.
@ ENET_PHY_IOCTL_GET_PTP_TIME
Get current PHY PTP clock time.
Definition: enet_mod_phy.h:226
@ ENET_PHY_IOCTL_WRITE_EXT_REG
Write PHY extended register.
Definition: enet_mod_phy.h:172
uint32_t size
Definition: enet_mod_phy.h:451
uint64_t ts64
Definition: enet_mod_phy.h:497
Enet_MacPort macPort
Definition: enet_mod_phy.h:393
uint8_t mmd
Definition: enet_mod_phy.h:379
Output args for ENET_PHY_IOCTL_GET_EVENT_TIMESTAMP command.
Definition: enet_mod_phy.h:494
Enet_MacPort macPort
Definition: enet_mod_phy.h:431
uint64_t periodNsec
Definition: enet_mod_phy.h:486
int64_t ppb
Definition: enet_mod_phy.h:405
Input args for ENET_PHY_IOCTL_PROC_STATUS_FRAME command.
Definition: enet_mod_phy.h:430
@ ENET_PHY_IOCTL_IS_ALIVE
Check PHY alive status.
Definition: enet_mod_phy.h:107
Enet_MacPort macPort
Definition: enet_mod_phy.h:483
@ ENET_PHY_IOCTL_ADJ_PTP_PHASE
Adjust PHY PTP clock Phase.
Definition: enet_mod_phy.h:217
@ ENET_PHY_IOCTL_IS_LINKED
Check state-machine link state, that is, whether the state machine has reached the LINKED state.
Definition: enet_mod_phy.h:117
uint16_t val
Definition: enet_mod_phy.h:352
bool on
Definition: enet_mod_phy.h:460
bool on
Definition: enet_mod_phy.h:475
uint64_t ts64
Definition: enet_mod_phy.h:423
@ ENET_PHY_IOCTL_SET_PTP_TIME
Set PHY PTP clock time.
Definition: enet_mod_phy.h:235
Enet_MacPort macPort
Definition: enet_mod_phy.h:334
@ ENET_PHY_IOCTL_GET_EVENT_TIMESTAMP
Get event timestamp.
Definition: enet_mod_phy.h:316
Input args for ENET_PHY_IOCTL_GET_PTP_TXTS command.
Definition: enet_mod_phy.h:392
@ ENET_PHY_IOCTL_ADJ_PTP_FREQ
Adjust PHY PTP clock Frequency.
Definition: enet_mod_phy.h:208
Input args for ENET_PHY_IOCTL_GET_STATUS_FRAME_ETHDR command.
Definition: enet_mod_phy.h:449
uint32_t triggerIdx
Definition: enet_mod_phy.h:484
uint32_t types
Definition: enet_mod_phy.h:442
Enet_MacPort macPort
Definition: enet_mod_phy.h:472
@ ENET_PHY_IOCTL_PRINT_REGS
Print PHY registers.
Definition: enet_mod_phy.h:199
Input args for ENET_PHY_IOCTL_ENABLE_EVENT_CAPTURE command.
Definition: enet_mod_phy.h:471
uint32_t seqId
Definition: enet_mod_phy.h:496
uint32_t msgType
Definition: enet_mod_phy.h:395
uint8_t mmd
Definition: enet_mod_phy.h:364
@ ENET_PHY_IOCTL_WAIT_PTP_TXTS
Add PHY PTP TX packet info to a waiting TX timestamp list.
Definition: enet_mod_phy.h:262
Input args for ENET_PHY_IOCTL_READ_EXT_REG command.
Definition: enet_mod_phy.h:332
This file contains the type definitions and helper macros for the Enet Module interface.
Input args for ENET_PHY_IOCTL_ENABLE_PTP command.
Definition: enet_mod_phy.h:458
Input args for ENET_PHY_IOCTL_SET_PTP_TIME command.
Definition: enet_mod_phy.h:421
#define ENET_PHY_PUBLIC_IOCTL(x)
Helper macro to create PHY IOCTL commands.
Definition: enet_mod_phy.h:60
@ ENET_PHY_IOCTL_C45_READ_REG
Read PHY register using Clause-45 frame.
Definition: enet_mod_phy.h:181
uint32_t domain
Definition: enet_mod_phy.h:394
Output args for ENET_PHY_IOCTL_PROC_STATUS_FRAME command.
Definition: enet_mod_phy.h:440
@ ENET_PHY_IOCTL_GET_PTP_RXTS
Get PHY PTP RX packet timestamp.
Definition: enet_mod_phy.h:253
bool repeat
Definition: enet_mod_phy.h:487
Enet_MacPort macPort
Definition: enet_mod_phy.h:459
Enet_MacPort macPort
Definition: enet_mod_phy.h:422
@ ENET_PHY_IOCTL_ENABLE_TRIGGER_OUTPUT
Enable/Disable clock trigger on a GPIO pin.
Definition: enet_mod_phy.h:307
uint32_t eventIdx
Definition: enet_mod_phy.h:495
uint16_t reg
Definition: enet_mod_phy.h:382
@ ENET_PHY_IOCTL_ENABLE_PTP
Enable/Disable PHY PTP module.
Definition: enet_mod_phy.h:289
@ ENET_PHY_IOCTL_GET_LOOPBACK_STATE
Check if PHY is in loopback or not.
Definition: enet_mod_phy.h:98
Enet_MacPort macPort
Definition: enet_mod_phy.h:404
@ ENET_PHY_IOCTL_PROC_STATUS_FRAME
Process PHY status frame.
Definition: enet_mod_phy.h:271