|
AM64x MCU+ SDK
10.01.00
|
|
Go to the documentation of this file.
84 #define CPSW_CPTS_PUBLIC_IOCTL(x) (ENET_IOCTL_TYPE_PUBLIC | \
85 ENET_IOCTL_TIMESYNC_BASE | \
86 ENET_IOCTL_PER_CPSW | \
90 #define CPSW_CPTS_NUDGE_MIN_VAL (-128)
93 #define CPSW_CPTS_NUDGE_MAX_VAL (127)
102 typedef enum CpswCpts_Ioctl_s
238 typedef enum CpswCpts_RftClkFreq_e
268 typedef enum CpswCpts_EventType_e
301 typedef enum CpswCpts_OutputBitSel_e
355 typedef enum CpswCpts_HwPush_e
392 #define CPSW_CPTS_HWPUSH_COUNT_MAX ((uint32_t)CPSW_CPTS_HWPUSH_LAST)
395 #define CPSW_CPTS_HWPUSH_NORM(x) ((uint32_t)((x) - CPSW_CPTS_HWPUSH_FIRST))
400 typedef enum CpswCpts_FxnGenAdjDir_e
412 typedef struct CpswCpts_Event_s
439 typedef struct CpswCpts_EstEventMatchParams_s
452 typedef struct CpswCpts_EstEvent_s
498 typedef struct CpswCpts_StackConfig_s
510 typedef struct CpswCpts_RegisterHwPushCbInArgs_s
525 typedef struct CpswCpts_SetCompValInArgs_s
543 typedef struct CpswCpts_SetFxnGenInArgs_s
575 typedef struct CpswCpts_SetFxnGenNudgeInArgs_s
590 typedef struct CpswCpts_Cfg_s
Input args for CPSW_CPTS_IOCTL_REGISTER_STACK command.
Definition: cpsw_cpts.h:499
uint32_t index
Definition: cpsw_cpts.h:578
@ CPSW_CPTS_IOCTL_SET_GENF_NUDGE
CPTS set GenFn stamp nudge.
Definition: cpsw_cpts.h:186
@ CPSW_CPTS_HWPUSH_5
Definition: cpsw_cpts.h:373
uint32_t egressPort
Definition: cpsw_cpts.h:467
bool tsCompPolarity
Definition: cpsw_cpts.h:599
@ CPSW_CPTS_IOCTL_SET_GENF
CPTS set function generator.
Definition: cpsw_cpts.h:177
void * eventNotifyCbArg
Definition: cpsw_cpts.h:504
@ CPSW_CPTS_IOCTL_UNREGISTER_STACK
CPTS unregister stack.
Definition: cpsw_cpts.h:120
@ CPSW_CPTS_RFTCLK_FREQ_125MHZ
Definition: cpsw_cpts.h:262
bool tsRxEventsDis
Definition: cpsw_cpts.h:602
@ CPSW_CPTS_EVENTTYPE_ETH_RECEIVE
Definition: cpsw_cpts.h:283
uint32_t ingressPort
Definition: cpsw_cpts.h:464
uint8_t priority
Definition: cpsw_cpts.h:458
@ CPSW_CPTS_EVENTTYPE_TS_ROLLOVER
Definition: cpsw_cpts.h:274
@ CPSW_CPTS_HWPUSH_INVALID
Definition: cpsw_cpts.h:388
Input args for CPSW_CPTS_IOCTL_SET_COMP command.
Definition: cpsw_cpts.h:526
void(* CpswCpts_EventNotifyCb)(void *eventNotifyCbArg, CpswCpts_Event *eventInfo)
CPTS event notify callback.
Definition: cpsw_cpts.h:480
@ CPSW_CPTS_TS_OUTPUT_BIT_29
Definition: cpsw_cpts.h:343
@ CPSW_CPTS_HWPUSH_FIRST
Definition: cpsw_cpts.h:358
uint64_t ppmVal
Definition: cpsw_cpts.h:560
@ CPSW_CPTS_EVENTTYPE_INVALID
Definition: cpsw_cpts.h:295
@ CPSW_CPTS_TS_OUTPUT_BIT_23
Definition: cpsw_cpts.h:325
@ CPSW_CPTS_RFTCLK_FREQ_1000MHZ
Definition: cpsw_cpts.h:241
CpswCpts_HwPush hwPushNum
Definition: cpsw_cpts.h:513
bool polarityInv
Definition: cpsw_cpts.h:557
uint64_t tsVal
Definition: cpsw_cpts.h:455
int32_t tsNudge
Definition: cpsw_cpts.h:582
Enet_MacPort
MAC port.
Definition: enet_types.h:409
@ CPSW_CPTS_IOCTL_REGISTER_HWPUSH_CALLBACK
CPTS register hardware push event callback.
Definition: cpsw_cpts.h:129
CPTS EST timestamp.
Definition: cpsw_cpts.h:453
EnetTimeSync_MsgType msgType
Definition: cpsw_cpts.h:421
@ CPSW_CPTS_TS_OUTPUT_BIT_28
Definition: cpsw_cpts.h:340
@ CPSW_CPTS_TS_OUTPUT_BIT_17
Definition: cpsw_cpts.h:307
@ CPSW_CPTS_HWPUSH_1
Definition: cpsw_cpts.h:361
@ CPSW_CPTS_RFTCLK_FREQ_200MHZ
Definition: cpsw_cpts.h:253
@ CPSW_CPTS_EVENTTYPE_TS_PUSH
Definition: cpsw_cpts.h:271
@ CPSW_CPTS_EVENTTYPE_TS_HOST_TX
Definition: cpsw_cpts.h:292
@ CPSW_CPTS_IOCTL_SET_ESTF_NUDGE
CPTS set ESTFn stamp nudge.
Definition: cpsw_cpts.h:204
CpswCpts_HwPushNotifyCb hwPushNotifyCb
Definition: cpsw_cpts.h:516
@ CPSW_CPTS_HWPUSH_LAST
Definition: cpsw_cpts.h:385
@ CPSW_CPTS_TS_OUTPUT_BIT_25
Definition: cpsw_cpts.h:331
CpswCpts_OutputBitSel
CPTS time stamp output bit.
Definition: cpsw_cpts.h:302
@ CPSW_CPTS_HWPUSH_3
Definition: cpsw_cpts.h:367
@ CPSW_CPTS_GENF_PPM_ADJDIR_DECREASE
Definition: cpsw_cpts.h:403
@ CPSW_CPTS_TS_OUTPUT_BIT_26
Definition: cpsw_cpts.h:334
@ CPSW_CPTS_IOCTL_SET_ESTF
CPTS set EST function generator.
Definition: cpsw_cpts.h:195
uint32_t length
Definition: cpsw_cpts.h:549
@ CPSW_CPTS_IOCTL_REGISTER_STACK
CPTS register stack.
Definition: cpsw_cpts.h:111
@ CPSW_CPTS_HWPUSH_2
Definition: cpsw_cpts.h:364
CpswCpts_FxnGenAdjDir
Genf adjustment direction.
Definition: cpsw_cpts.h:401
bool hostRxTsEn
Definition: cpsw_cpts.h:594
Input args for CPSW_CPTS_IOCTL_SET_GENF and CPSW_CPTS_IOCTL_SET_ESTF commands.
Definition: cpsw_cpts.h:544
CPTS configuration.
Definition: cpsw_cpts.h:591
void * hwPushNotifyCbArg
Definition: cpsw_cpts.h:519
uint64_t tsVal
Definition: cpsw_cpts.h:415
@ CPSW_CPTS_IOCTL_UNREGISTER_HWPUSH_CALLBACK
CPTS unregister hardware push event callback.
Definition: cpsw_cpts.h:138
@ CPSW_CPTS_TS_OUTPUT_BIT_30
Definition: cpsw_cpts.h:346
CpswCpts_EventNotifyCb eventNotifyCb
Definition: cpsw_cpts.h:501
uint32_t domain
Definition: cpsw_cpts.h:446
@ CPSW_CPTS_EVENTTYPE_TS_HALFROLLOVER
Definition: cpsw_cpts.h:277
@ CPSW_CPTS_GENF_PPM_ADJDIR_INCREASE
Definition: cpsw_cpts.h:406
#define CPSW_CPTS_PUBLIC_IOCTL(x)
Helper macro to create IOCTL commands for CPSW CPTS module.
Definition: cpsw_cpts.h:84
uint64_t tsCompVal
Definition: cpsw_cpts.h:528
CpswCpts_HwPush hwPushNum
Definition: cpsw_cpts.h:433
CpswCpts_HwPush
CPTS Hardware push instances.
Definition: cpsw_cpts.h:356
uint32_t index
Definition: cpsw_cpts.h:546
@ CPSW_CPTS_IOCTL_SET_COMP
CPTS set compare value.
Definition: cpsw_cpts.h:159
@ CPSW_CPTS_TS_OUTPUT_BIT_24
Definition: cpsw_cpts.h:328
uint32_t portNum
Definition: cpsw_cpts.h:427
void CpswCpts_initCfg(CpswCpts_Cfg *cptsCfg)
Initialize CPSW CPTS configuration parameters.
CPTS EST event match params.
Definition: cpsw_cpts.h:440
CpswCpts_Ioctl
CPSW CPTS IOCTL commands.
Definition: cpsw_cpts.h:103
uint32_t domain
Definition: cpsw_cpts.h:470
@ CPSW_CPTS_HWPUSH_7
Definition: cpsw_cpts.h:379
CpswCpts_FxnGenAdjDir ppmDir
Definition: cpsw_cpts.h:563
@ CPSW_CPTS_EVENTTYPE_HW_TS_PUSH
Definition: cpsw_cpts.h:280
Enet_MacPort macPort
Definition: cpsw_cpts.h:442
@ CPSW_CPTS_TS_OUTPUT_BIT_DISABLED
Definition: cpsw_cpts.h:304
@ CPSW_CPTS_HWPUSH_8
Definition: cpsw_cpts.h:382
@ CPSW_CPTS_HWPUSH_4
Definition: cpsw_cpts.h:370
Input args for CPSW_CPTS_IOCTL_REGISTER_HWPUSH_CALLBACK command.
Definition: cpsw_cpts.h:511
@ CPSW_CPTS_TS_OUTPUT_BIT_22
Definition: cpsw_cpts.h:322
@ CPSW_CPTS_TS_OUTPUT_BIT_31
Definition: cpsw_cpts.h:349
@ CPSW_CPTS_RFTCLK_FREQ_500MHZ
Definition: cpsw_cpts.h:244
@ CPSW_CPTS_TS_OUTPUT_BIT_20
Definition: cpsw_cpts.h:316
@ CPSW_CPTS_IOCTL_LOOKUP_EVENT
CPTS lookup event.
Definition: cpsw_cpts.h:222
@ CPSW_CPTS_IOCTL_LOOKUP_EST_EVENT
CPTS lookup EST event/.
Definition: cpsw_cpts.h:231
EnetTimeSync_AdjMode
TimeSync adjustment mode.
Definition: enet_mod_timesync.h:217
@ CPSW_CPTS_RFTCLK_FREQ_250MHZ
Definition: cpsw_cpts.h:250
@ CPSW_CPTS_TS_OUTPUT_BIT_21
Definition: cpsw_cpts.h:319
uint64_t compare
Definition: cpsw_cpts.h:552
@ CPSW_CPTS_HWPUSH_6
Definition: cpsw_cpts.h:376
This file contains the type definitions and helper macros for the Enet Time Synchronization module in...
@ CPSW_CPTS_EVENTTYPE_ETH_TRANSMIT
Definition: cpsw_cpts.h:286
CpswCpts_EventType
CPTS event type.
Definition: cpsw_cpts.h:269
CpswCpts_EventType eventType
Definition: cpsw_cpts.h:418
@ CPSW_CPTS_EVENTTYPE_TS_COMP
Definition: cpsw_cpts.h:289
uint32_t domain
Definition: cpsw_cpts.h:430
Input args for CPSW_CPTS_IOCTL_SET_GENF_NUDGE and CPSW_CPTS_IOCTL_SET_ESTF_NUDGE commands.
Definition: cpsw_cpts.h:576
@ CPSW_CPTS_RFTCLK_FREQ_333_33MHZ
Definition: cpsw_cpts.h:247
void(* CpswCpts_HwPushNotifyCb)(void *hwPushNotifyCbArg, CpswCpts_HwPush hwPushNum)
CPTS hardware push notify callback/.
Definition: cpsw_cpts.h:490
@ CPSW_CPTS_TS_OUTPUT_BIT_18
Definition: cpsw_cpts.h:310
@ CPSW_CPTS_IOCTL_SET_COMP_NUDGE
CPTS set compare nudge.
Definition: cpsw_cpts.h:168
@ CPSW_CPTS_TS_OUTPUT_BIT_19
Definition: cpsw_cpts.h:313
@ CPSW_CPTS_IOCTL_SELECT_TS_OUTPUT_BIT
CPTS TS output bit select.
Definition: cpsw_cpts.h:213
@ CPSW_CPTS_RFTCLK_FREQ_142_85MHZ
Definition: cpsw_cpts.h:259
EnetTimeSync_MsgType
TimeSync Ethernet message type.
Definition: enet_mod_timesync.h:178
bool tsCompToggle
Definition: cpsw_cpts.h:536
CpswCpts_RftClkFreq
CPTS clock frequency add value.
Definition: cpsw_cpts.h:239
@ CPSW_CPTS_RFTCLK_FREQ_166_66MHZ
Definition: cpsw_cpts.h:256
CpswCpts_RftClkFreq cptsRftClkFreq
Definition: cpsw_cpts.h:612
uint32_t tsCompLen
Definition: cpsw_cpts.h:531
@ CPSW_CPTS_TS_OUTPUT_BIT_27
Definition: cpsw_cpts.h:337
CPTS event.
Definition: cpsw_cpts.h:413
bool tsGenfClrEn
Definition: cpsw_cpts.h:609
uint32_t seqNum
Definition: cpsw_cpts.h:461
EnetTimeSync_AdjMode ppmMode
Definition: cpsw_cpts.h:568
@ CPSW_CPTS_IOCTL_SET_TS_NUDGE
CPTS set timestamp nudge.
Definition: cpsw_cpts.h:150
uint32_t seqId
Definition: cpsw_cpts.h:424