 |
AM62D FreeRTOS SDK
11.02.00
|
|
Go to the documentation of this file.
40 #ifndef ENET_MOD_PHY_H_
41 #define ENET_MOD_PHY_H_
61 #define ENET_PHY_PUBLIC_IOCTL(x) (ENET_IOCTL_TYPE_PUBLIC | \
62 ENET_IOCTL_PHY_BASE | \
352 typedef struct EnetPhy_GenericInArgs_s
361 typedef struct EnetPhy_ReadRegInArgs_s
373 typedef struct EnetPhy_WriteRegInArgs_s
388 typedef struct EnetPhy_C45ReadRegInArgs_s
403 typedef struct EnetPhy_C45WriteRegInArgs_s
421 typedef struct EnetPhy_PtpPktTimestampInArgs_s
432 typedef struct EnetPhy_AdjPtpFreqInArgs_s
441 typedef struct EnetPhy_AdjPtpPhaseInArgs_s
450 typedef struct EnetPhy_SetPtpTimeInArgs_s
459 typedef struct EnetPhy_ProcStatusFrameInArgs_s
469 typedef struct EnetPhy_ProcStatusFrameOutArgs_s
478 typedef struct EnetPhy_GetStatusFrameEthdrOutArgs_s
487 typedef struct EnetPhy_EnablePtpInArgs_s
500 typedef struct EnetPhy_EnableEventCaptureInArgs_s
511 typedef struct EnetPhy_EnableTriggerOutputInArgs_s
523 typedef struct EnetPhy_GetEventTimestampOutArgs_s
532 typedef struct EnetPhy_ConfigMediaClockInArgs_s
543 typedef struct EnetPhy_NudgeCodecClockInArgs_s
Enet_MacPort macPort
Definition: enet_mod_phy.h:355
@ ENET_PHY_IOCTL_GET_LINK_STATUS
Get Phy Link status. This IOTCL will not have longterm support and this functionality will eventually...
Definition: enet_mod_phy.h:328
EnetPhy_Ioctl_e
PHY IOCTL commands.
Definition: enet_mod_phy.h:73
uint16_t reg
Definition: enet_mod_phy.h:379
uint8_t * ethhdr
Definition: enet_mod_phy.h:480
@ ENET_PHY_IOCTL_READ_REG
Read PHY register.
Definition: enet_mod_phy.h:146
@ ENET_PHY_IOCTL_NUDGE_CODEC_CLOCK
Nudge Codec Clock.
Definition: enet_mod_phy.h:346
Input args for ENET_PHY_IOCTL_ADJ_PTP_PHASE command.
Definition: enet_mod_phy.h:442
@ 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:128
uint32_t eventIdx
Definition: enet_mod_phy.h:503
uint32_t size
Definition: enet_mod_phy.h:463
Enet_MacPort macPort
Definition: enet_mod_phy.h:545
uint8_t * frame
Definition: enet_mod_phy.h:462
int64_t offset
Definition: enet_mod_phy.h:444
@ ENET_PHY_IOCTL_C45_WRITE_REG
Write PHY register using Clause-45 frame.
Definition: enet_mod_phy.h:191
Enet_MacPort macPort
Definition: enet_mod_phy.h:406
@ ENET_PHY_IOCTL_GET_ID
Get PHY identification.
Definition: enet_mod_phy.h:81
Input args for ENET_PHY_IOCTL_WRITE_EXT_REG command.
Definition: enet_mod_phy.h:374
@ ENET_PHY_IOCTL_GET_STATUS_FRAME_ETHDR
Get PHY status frame header.
Definition: enet_mod_phy.h:281
@ ENET_PHY_IOCTL_WRITE_REG
Write PHY register.
Definition: enet_mod_phy.h:155
uint32_t srcMacStatusFrameType
Definition: enet_mod_phy.h:494
uint16_t reg
Definition: enet_mod_phy.h:397
@ ENET_PHY_IOCTL_RESET
Reset PHY.
Definition: enet_mod_phy.h:137
@ ENET_PHY_IOCTL_READ_EXT_REG
Read PHY extended register.
Definition: enet_mod_phy.h:164
uint16_t val
Definition: enet_mod_phy.h:415
@ ENET_PHY_IOCTL_GET_SUPPORTED_MODES
Get PHY supported modes by local PHY device.
Definition: enet_mod_phy.h:90
This file contains the basic types using across the Enet driver.
Input args for ENET_PHY_IOCTL_ENABLE_TRIGGER_OUTPUT command.
Definition: enet_mod_phy.h:512
Generic input args.
Definition: enet_mod_phy.h:353
Enet_MacPort
MAC port.
Definition: enet_types.h:412
@ ENET_PHY_IOCTL_ENABLE_EVENT_CAPTURE
Enable/Disable an event capture on a PHY GPIO pin.
Definition: enet_mod_phy.h:299
Enet_MacPort macPort
Definition: enet_mod_phy.h:443
Enet_MacPort macPort
Definition: enet_mod_phy.h:376
uint32_t seqId
Definition: enet_mod_phy.h:426
This file contains the type definitions and helper macros for the Enet IOCTL interface.
uint16_t reg
Definition: enet_mod_phy.h:367
uint64_t startNsec
Definition: enet_mod_phy.h:515
Enet_MacPort macPort
Definition: enet_mod_phy.h:391
Input args for ENET_PHY_IOCTL_NUDGE_CODEC_CLOCK command.
Definition: enet_mod_phy.h:544
Input args for ENET_PHY_IOCTL_ADJ_PTP_FREQ command.
Definition: enet_mod_phy.h:433
bool falling
Definition: enet_mod_phy.h:504
Input args for ENET_PHY_IOCTL_C45_WRITE_REG command.
Definition: enet_mod_phy.h:404
Input args for ENET_PHY_IOCTL_C45_READ_REG command.
Definition: enet_mod_phy.h:389
@ ENET_PHY_IOCTL_GET_PTP_TXTS
Get PHY PTP TX packet timestamp.
Definition: enet_mod_phy.h:245
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:227
@ ENET_PHY_IOCTL_WRITE_EXT_REG
Write PHY extended register.
Definition: enet_mod_phy.h:173
uint32_t size
Definition: enet_mod_phy.h:481
uint64_t ts64
Definition: enet_mod_phy.h:527
Enet_MacPort macPort
Definition: enet_mod_phy.h:423
uint8_t mmd
Definition: enet_mod_phy.h:409
Output args for ENET_PHY_IOCTL_GET_EVENT_TIMESTAMP command.
Definition: enet_mod_phy.h:524
@ ENET_PHY_IOCTL_CONFIG_MEDIA_CLOCK
Config Media Clock.
Definition: enet_mod_phy.h:337
Enet_MacPort macPort
Definition: enet_mod_phy.h:461
uint64_t periodNsec
Definition: enet_mod_phy.h:516
int64_t ppb
Definition: enet_mod_phy.h:435
Input args for ENET_PHY_IOCTL_PROC_STATUS_FRAME command.
Definition: enet_mod_phy.h:460
@ ENET_PHY_IOCTL_IS_ALIVE
Check PHY alive status.
Definition: enet_mod_phy.h:108
Enet_MacPort macPort
Definition: enet_mod_phy.h:513
@ ENET_PHY_IOCTL_ADJ_PTP_PHASE
Adjust PHY PTP clock Phase.
Definition: enet_mod_phy.h:218
@ 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:118
uint16_t val
Definition: enet_mod_phy.h:382
bool on
Definition: enet_mod_phy.h:490
bool on
Definition: enet_mod_phy.h:505
uint64_t ts64
Definition: enet_mod_phy.h:453
@ ENET_PHY_IOCTL_SET_PTP_TIME
Set PHY PTP clock time.
Definition: enet_mod_phy.h:236
Enet_MacPort macPort
Definition: enet_mod_phy.h:364
@ ENET_PHY_IOCTL_GET_EVENT_TIMESTAMP
Get event timestamp.
Definition: enet_mod_phy.h:317
Input args for ENET_PHY_IOCTL_GET_PTP_TXTS command.
Definition: enet_mod_phy.h:422
@ ENET_PHY_IOCTL_ADJ_PTP_FREQ
Adjust PHY PTP clock Frequency.
Definition: enet_mod_phy.h:209
Input args for ENET_PHY_IOCTL_GET_STATUS_FRAME_ETHDR command.
Definition: enet_mod_phy.h:479
uint32_t triggerIdx
Definition: enet_mod_phy.h:514
uint32_t types
Definition: enet_mod_phy.h:472
Enet_MacPort macPort
Definition: enet_mod_phy.h:502
@ ENET_PHY_IOCTL_PRINT_REGS
Print PHY registers.
Definition: enet_mod_phy.h:200
Input args for ENET_PHY_IOCTL_ENABLE_EVENT_CAPTURE command.
Definition: enet_mod_phy.h:501
uint32_t seqId
Definition: enet_mod_phy.h:526
uint32_t msgType
Definition: enet_mod_phy.h:425
uint8_t mmd
Definition: enet_mod_phy.h:394
@ ENET_PHY_IOCTL_WAIT_PTP_TXTS
Add PHY PTP TX packet info to a waiting TX timestamp list.
Definition: enet_mod_phy.h:263
Input args for ENET_PHY_IOCTL_READ_EXT_REG command.
Definition: enet_mod_phy.h:362
Input args for ENET_PHY_IOCTL_ENABLE_PTP command.
Definition: enet_mod_phy.h:488
Input args for ENET_PHY_IOCTL_SET_PTP_TIME command.
Definition: enet_mod_phy.h:451
#define ENET_PHY_PUBLIC_IOCTL(x)
Helper macro to create PHY IOCTL commands.
Definition: enet_mod_phy.h:61
@ ENET_PHY_IOCTL_C45_READ_REG
Read PHY register using Clause-45 frame.
Definition: enet_mod_phy.h:182
uint32_t domain
Definition: enet_mod_phy.h:424
Output args for ENET_PHY_IOCTL_PROC_STATUS_FRAME command.
Definition: enet_mod_phy.h:470
@ ENET_PHY_IOCTL_GET_PTP_RXTS
Get PHY PTP RX packet timestamp.
Definition: enet_mod_phy.h:254
bool repeat
Definition: enet_mod_phy.h:517
Enet_MacPort macPort
Definition: enet_mod_phy.h:489
Enet_MacPort macPort
Definition: enet_mod_phy.h:452
@ ENET_PHY_IOCTL_ENABLE_TRIGGER_OUTPUT
Enable/Disable clock trigger on a GPIO pin.
Definition: enet_mod_phy.h:308
int8_t nudgeValue
Definition: enet_mod_phy.h:546
uint32_t eventIdx
Definition: enet_mod_phy.h:525
uint16_t reg
Definition: enet_mod_phy.h:412
@ ENET_PHY_IOCTL_ENABLE_PTP
Enable/Disable PHY PTP module.
Definition: enet_mod_phy.h:290
@ ENET_PHY_IOCTL_GET_LOOPBACK_STATE
Check if PHY is in loopback or not.
Definition: enet_mod_phy.h:99
Enet_MacPort macPort
Definition: enet_mod_phy.h:434
@ ENET_PHY_IOCTL_PROC_STATUS_FRAME
Process PHY status frame.
Definition: enet_mod_phy.h:272