 |
AM261x MCU+ SDK
11.00.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 | \
334 typedef struct EnetPhy_GenericInArgs_s
343 typedef struct EnetPhy_ReadRegInArgs_s
355 typedef struct EnetPhy_WriteRegInArgs_s
370 typedef struct EnetPhy_C45ReadRegInArgs_s
385 typedef struct EnetPhy_C45WriteRegInArgs_s
403 typedef struct EnetPhy_PtpPktTimestampInArgs_s
414 typedef struct EnetPhy_AdjPtpFreqInArgs_s
423 typedef struct EnetPhy_AdjPtpPhaseInArgs_s
432 typedef struct EnetPhy_SetPtpTimeInArgs_s
441 typedef struct EnetPhy_ProcStatusFrameInArgs_s
451 typedef struct EnetPhy_ProcStatusFrameOutArgs_s
460 typedef struct EnetPhy_GetStatusFrameEthdrOutArgs_s
469 typedef struct EnetPhy_EnablePtpInArgs_s
482 typedef struct EnetPhy_EnableEventCaptureInArgs_s
493 typedef struct EnetPhy_EnableTriggerOutputInArgs_s
505 typedef struct EnetPhy_GetEventTimestampOutArgs_s
Enet_MacPort macPort
Definition: enet_mod_phy.h:337
@ 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:361
uint8_t * ethhdr
Definition: enet_mod_phy.h:462
@ ENET_PHY_IOCTL_READ_REG
Read PHY register.
Definition: enet_mod_phy.h:146
Input args for ENET_PHY_IOCTL_ADJ_PTP_PHASE command.
Definition: enet_mod_phy.h:424
@ 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:485
uint32_t size
Definition: enet_mod_phy.h:445
uint8_t * frame
Definition: enet_mod_phy.h:444
int64_t offset
Definition: enet_mod_phy.h:426
@ 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:388
@ 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:356
@ 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:476
uint16_t reg
Definition: enet_mod_phy.h:379
@ 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:397
@ 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:494
Generic input args.
Definition: enet_mod_phy.h:335
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:425
Enet_MacPort macPort
Definition: enet_mod_phy.h:358
uint32_t seqId
Definition: enet_mod_phy.h:408
This file contains the type definitions and helper macros for the Enet IOCTL interface.
uint16_t reg
Definition: enet_mod_phy.h:349
uint64_t startNsec
Definition: enet_mod_phy.h:497
Enet_MacPort macPort
Definition: enet_mod_phy.h:373
Input args for ENET_PHY_IOCTL_ADJ_PTP_FREQ command.
Definition: enet_mod_phy.h:415
bool falling
Definition: enet_mod_phy.h:486
Input args for ENET_PHY_IOCTL_C45_WRITE_REG command.
Definition: enet_mod_phy.h:386
Input args for ENET_PHY_IOCTL_C45_READ_REG command.
Definition: enet_mod_phy.h:371
@ 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:463
uint64_t ts64
Definition: enet_mod_phy.h:509
Enet_MacPort macPort
Definition: enet_mod_phy.h:405
uint8_t mmd
Definition: enet_mod_phy.h:391
Output args for ENET_PHY_IOCTL_GET_EVENT_TIMESTAMP command.
Definition: enet_mod_phy.h:506
Enet_MacPort macPort
Definition: enet_mod_phy.h:443
uint64_t periodNsec
Definition: enet_mod_phy.h:498
int64_t ppb
Definition: enet_mod_phy.h:417
Input args for ENET_PHY_IOCTL_PROC_STATUS_FRAME command.
Definition: enet_mod_phy.h:442
@ ENET_PHY_IOCTL_IS_ALIVE
Check PHY alive status.
Definition: enet_mod_phy.h:108
Enet_MacPort macPort
Definition: enet_mod_phy.h:495
@ 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:364
bool on
Definition: enet_mod_phy.h:472
bool on
Definition: enet_mod_phy.h:487
uint64_t ts64
Definition: enet_mod_phy.h:435
@ 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:346
@ 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:404
@ 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:461
uint32_t triggerIdx
Definition: enet_mod_phy.h:496
uint32_t types
Definition: enet_mod_phy.h:454
Enet_MacPort macPort
Definition: enet_mod_phy.h:484
@ 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:483
uint32_t seqId
Definition: enet_mod_phy.h:508
uint32_t msgType
Definition: enet_mod_phy.h:407
uint8_t mmd
Definition: enet_mod_phy.h:376
@ 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:344
Input args for ENET_PHY_IOCTL_ENABLE_PTP command.
Definition: enet_mod_phy.h:470
Input args for ENET_PHY_IOCTL_SET_PTP_TIME command.
Definition: enet_mod_phy.h:433
#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:406
Output args for ENET_PHY_IOCTL_PROC_STATUS_FRAME command.
Definition: enet_mod_phy.h:452
@ 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:499
Enet_MacPort macPort
Definition: enet_mod_phy.h:471
Enet_MacPort macPort
Definition: enet_mod_phy.h:434
@ ENET_PHY_IOCTL_ENABLE_TRIGGER_OUTPUT
Enable/Disable clock trigger on a GPIO pin.
Definition: enet_mod_phy.h:308
uint32_t eventIdx
Definition: enet_mod_phy.h:507
uint16_t reg
Definition: enet_mod_phy.h:394
@ 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:416
@ ENET_PHY_IOCTL_PROC_STATUS_FRAME
Process PHY status frame.
Definition: enet_mod_phy.h:272