 |
AM263Px 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 | \
323 typedef struct EnetPhy_GenericInArgs_s
332 typedef struct EnetPhy_ReadRegInArgs_s
344 typedef struct EnetPhy_WriteRegInArgs_s
359 typedef struct EnetPhy_C45ReadRegInArgs_s
374 typedef struct EnetPhy_C45WriteRegInArgs_s
392 typedef struct EnetPhy_PtpPktTimestampInArgs_s
403 typedef struct EnetPhy_AdjPtpFreqInArgs_s
412 typedef struct EnetPhy_AdjPtpPhaseInArgs_s
421 typedef struct EnetPhy_SetPtpTimeInArgs_s
430 typedef struct EnetPhy_ProcStatusFrameInArgs_s
440 typedef struct EnetPhy_ProcStatusFrameOutArgs_s
449 typedef struct EnetPhy_GetStatusFrameEthdrOutArgs_s
458 typedef struct EnetPhy_EnablePtpInArgs_s
471 typedef struct EnetPhy_EnableEventCaptureInArgs_s
482 typedef struct EnetPhy_EnableTriggerOutputInArgs_s
494 typedef struct EnetPhy_GetEventTimestampOutArgs_s
Enet_MacPort macPort
Definition: enet_mod_phy.h:326
EnetPhy_Ioctl_e
PHY IOCTL commands.
Definition: enet_mod_phy.h:73
uint16_t reg
Definition: enet_mod_phy.h:350
uint8_t * ethhdr
Definition: enet_mod_phy.h:451
@ 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:413
@ 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:474
uint32_t size
Definition: enet_mod_phy.h:434
uint8_t * frame
Definition: enet_mod_phy.h:433
int64_t offset
Definition: enet_mod_phy.h:415
@ 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:377
@ 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:345
@ 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:465
uint16_t reg
Definition: enet_mod_phy.h:368
@ 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:386
@ 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:483
Generic input args.
Definition: enet_mod_phy.h:324
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:414
Enet_MacPort macPort
Definition: enet_mod_phy.h:347
uint32_t seqId
Definition: enet_mod_phy.h:397
This file contains the type definitions and helper macros for the Enet IOCTL interface.
uint16_t reg
Definition: enet_mod_phy.h:338
uint64_t startNsec
Definition: enet_mod_phy.h:486
Enet_MacPort macPort
Definition: enet_mod_phy.h:362
Input args for ENET_PHY_IOCTL_ADJ_PTP_FREQ command.
Definition: enet_mod_phy.h:404
bool falling
Definition: enet_mod_phy.h:475
Input args for ENET_PHY_IOCTL_C45_WRITE_REG command.
Definition: enet_mod_phy.h:375
Input args for ENET_PHY_IOCTL_C45_READ_REG command.
Definition: enet_mod_phy.h:360
@ 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:452
uint64_t ts64
Definition: enet_mod_phy.h:498
Enet_MacPort macPort
Definition: enet_mod_phy.h:394
uint8_t mmd
Definition: enet_mod_phy.h:380
Output args for ENET_PHY_IOCTL_GET_EVENT_TIMESTAMP command.
Definition: enet_mod_phy.h:495
Enet_MacPort macPort
Definition: enet_mod_phy.h:432
uint64_t periodNsec
Definition: enet_mod_phy.h:487
int64_t ppb
Definition: enet_mod_phy.h:406
Input args for ENET_PHY_IOCTL_PROC_STATUS_FRAME command.
Definition: enet_mod_phy.h:431
@ ENET_PHY_IOCTL_IS_ALIVE
Check PHY alive status.
Definition: enet_mod_phy.h:108
Enet_MacPort macPort
Definition: enet_mod_phy.h:484
@ 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:353
bool on
Definition: enet_mod_phy.h:461
bool on
Definition: enet_mod_phy.h:476
uint64_t ts64
Definition: enet_mod_phy.h:424
@ 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:335
@ 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:393
@ 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:450
uint32_t triggerIdx
Definition: enet_mod_phy.h:485
uint32_t types
Definition: enet_mod_phy.h:443
Enet_MacPort macPort
Definition: enet_mod_phy.h:473
@ 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:472
uint32_t seqId
Definition: enet_mod_phy.h:497
uint32_t msgType
Definition: enet_mod_phy.h:396
uint8_t mmd
Definition: enet_mod_phy.h:365
@ 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:333
Input args for ENET_PHY_IOCTL_ENABLE_PTP command.
Definition: enet_mod_phy.h:459
Input args for ENET_PHY_IOCTL_SET_PTP_TIME command.
Definition: enet_mod_phy.h:422
#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:395
Output args for ENET_PHY_IOCTL_PROC_STATUS_FRAME command.
Definition: enet_mod_phy.h:441
@ 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:488
Enet_MacPort macPort
Definition: enet_mod_phy.h:460
Enet_MacPort macPort
Definition: enet_mod_phy.h:423
@ 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:496
uint16_t reg
Definition: enet_mod_phy.h:383
@ 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:405
@ ENET_PHY_IOCTL_PROC_STATUS_FRAME
Process PHY status frame.
Definition: enet_mod_phy.h:272