AM263Px MCU+ SDK: cpsw_cpts.h Source File

| AM263Px MCU+ SDK 26.00.00 |

cpsw_cpts.h
Go to the documentation of this file.
1 /*
2 * Copyright (c) Texas Instruments Incorporated 2020
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 *
11 * Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the
14 * distribution.
15 *
16 * Neither the name of Texas Instruments Incorporated nor the names of
17 * its contributors may be used to endorse or promote products derived
18 * from this software without specific prior written permission.
19 *
20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 */
32
66 #ifndef CPSW_CPTS_H_
67 #define CPSW_CPTS_H_
68
69 /* ========================================================================== */
70 /* Include Files */
71 /* ========================================================================== */
72
73 #include <include/core/enet_mod_timesync.h>
74
75 #ifdef __cplusplus
76 extern "C" {
77 #endif
78
79 /* ========================================================================== */
80 /* Macros */
81 /* ========================================================================== */
82
84 #define CPSW_CPTS_PUBLIC_IOCTL(x) (ENET_IOCTL_TYPE_PUBLIC | \
85 ENET_IOCTL_TIMESYNC_BASE | \
86 ENET_IOCTL_PER_CPSW | \
87 ENET_IOCTL_MIN(x))
88
90 #define CPSW_CPTS_NUDGE_MIN_VAL (-128)
91
93 #define CPSW_CPTS_NUDGE_MAX_VAL (127)
94
95 /* ========================================================================== */
96 /* Structures and Enums */
97 /* ========================================================================== */
98
102 typedef enum CpswCpts_Ioctl_s
103 {
111 CPSW_CPTS_IOCTL_REGISTER_STACK = CPSW_CPTS_PUBLIC_IOCTL(0U),
112
120 CPSW_CPTS_IOCTL_UNREGISTER_STACK = CPSW_CPTS_PUBLIC_IOCTL(1U),
121
129 CPSW_CPTS_IOCTL_REGISTER_HWPUSH_CALLBACK = CPSW_CPTS_PUBLIC_IOCTL(2U),
130
138 CPSW_CPTS_IOCTL_UNREGISTER_HWPUSH_CALLBACK = CPSW_CPTS_PUBLIC_IOCTL(3U),
139
150 CPSW_CPTS_IOCTL_SET_TS_NUDGE = CPSW_CPTS_PUBLIC_IOCTL(4U),
151
159 CPSW_CPTS_IOCTL_SET_COMP = CPSW_CPTS_PUBLIC_IOCTL(5U),
160
168 CPSW_CPTS_IOCTL_SET_COMP_NUDGE = CPSW_CPTS_PUBLIC_IOCTL(6U),
169
177 CPSW_CPTS_IOCTL_SET_GENF = CPSW_CPTS_PUBLIC_IOCTL(7U),
178
186 CPSW_CPTS_IOCTL_SET_GENF_NUDGE = CPSW_CPTS_PUBLIC_IOCTL(8U),
187
195 CPSW_CPTS_IOCTL_SET_ESTF = CPSW_CPTS_PUBLIC_IOCTL(9U),
196
204 CPSW_CPTS_IOCTL_SET_ESTF_NUDGE = CPSW_CPTS_PUBLIC_IOCTL(10U),
205
213 CPSW_CPTS_IOCTL_SELECT_TS_OUTPUT_BIT = CPSW_CPTS_PUBLIC_IOCTL(11U),
214
222 CPSW_CPTS_IOCTL_LOOKUP_EVENT = CPSW_CPTS_PUBLIC_IOCTL(12U),
223
231 CPSW_CPTS_IOCTL_LOOKUP_EST_EVENT = CPSW_CPTS_PUBLIC_IOCTL(13U),
232 } CpswCpts_Ioctl;
233
234
238 typedef enum CpswCpts_RftClkFreq_e
239 {
241 CPSW_CPTS_RFTCLK_FREQ_1000MHZ = 0U,
242
244 CPSW_CPTS_RFTCLK_FREQ_500MHZ = 1U,
245
247 CPSW_CPTS_RFTCLK_FREQ_333_33MHZ = 2U,
248
250 CPSW_CPTS_RFTCLK_FREQ_250MHZ = 3U,
251
253 CPSW_CPTS_RFTCLK_FREQ_200MHZ = 4U,
254
256 CPSW_CPTS_RFTCLK_FREQ_166_66MHZ = 5U,
257
259 CPSW_CPTS_RFTCLK_FREQ_142_85MHZ = 6U,
260
262 CPSW_CPTS_RFTCLK_FREQ_125MHZ = 7U,
263 } CpswCpts_RftClkFreq;
264
268 typedef enum CpswCpts_EventType_e
269 {
271 CPSW_CPTS_EVENTTYPE_TS_PUSH = 0U,
272
274 CPSW_CPTS_EVENTTYPE_TS_ROLLOVER,
275
277 CPSW_CPTS_EVENTTYPE_TS_HALFROLLOVER,
278
280 CPSW_CPTS_EVENTTYPE_HW_TS_PUSH,
281
283 CPSW_CPTS_EVENTTYPE_ETH_RECEIVE,
284
286 CPSW_CPTS_EVENTTYPE_ETH_TRANSMIT,
287
289 CPSW_CPTS_EVENTTYPE_TS_COMP,
290
292 CPSW_CPTS_EVENTTYPE_TS_HOST_TX,
293
295 CPSW_CPTS_EVENTTYPE_INVALID = -1,
296 } CpswCpts_EventType;
297
301 typedef enum CpswCpts_OutputBitSel_e
302 {
304 CPSW_CPTS_TS_OUTPUT_BIT_DISABLED = 0U,
305
307 CPSW_CPTS_TS_OUTPUT_BIT_17,
308
310 CPSW_CPTS_TS_OUTPUT_BIT_18,
311
313 CPSW_CPTS_TS_OUTPUT_BIT_19,
314
316 CPSW_CPTS_TS_OUTPUT_BIT_20,
317
319 CPSW_CPTS_TS_OUTPUT_BIT_21,
320
322 CPSW_CPTS_TS_OUTPUT_BIT_22,
323
325 CPSW_CPTS_TS_OUTPUT_BIT_23,
326
328 CPSW_CPTS_TS_OUTPUT_BIT_24,
329
331 CPSW_CPTS_TS_OUTPUT_BIT_25,
332
334 CPSW_CPTS_TS_OUTPUT_BIT_26,
335
337 CPSW_CPTS_TS_OUTPUT_BIT_27,
338
340 CPSW_CPTS_TS_OUTPUT_BIT_28,
341
343 CPSW_CPTS_TS_OUTPUT_BIT_29,
344
346 CPSW_CPTS_TS_OUTPUT_BIT_30,
347
349 CPSW_CPTS_TS_OUTPUT_BIT_31,
350 } CpswCpts_OutputBitSel;
351
355 typedef enum CpswCpts_HwPush_e
356 {
358 CPSW_CPTS_HWPUSH_FIRST = 1U,
359
361 CPSW_CPTS_HWPUSH_1 = CPSW_CPTS_HWPUSH_FIRST,
362
364 CPSW_CPTS_HWPUSH_2,
365
367 CPSW_CPTS_HWPUSH_3,
368
370 CPSW_CPTS_HWPUSH_4,
371
373 CPSW_CPTS_HWPUSH_5,
374
376 CPSW_CPTS_HWPUSH_6,
377
379 CPSW_CPTS_HWPUSH_7,
380
382 CPSW_CPTS_HWPUSH_8,
383
385 CPSW_CPTS_HWPUSH_LAST = CPSW_CPTS_HWPUSH_8,
386
388 CPSW_CPTS_HWPUSH_INVALID = -1,
389 } CpswCpts_HwPush;
390
392 #define CPSW_CPTS_HWPUSH_COUNT_MAX ((uint32_t)CPSW_CPTS_HWPUSH_LAST)
393
395 #define CPSW_CPTS_HWPUSH_NORM(x) ((uint32_t)((x) - CPSW_CPTS_HWPUSH_FIRST))
396
400 typedef enum CpswCpts_FxnGenAdjDir_e
401 {
403 CPSW_CPTS_GENF_PPM_ADJDIR_DECREASE = 0U,
404
406 CPSW_CPTS_GENF_PPM_ADJDIR_INCREASE,
407 } CpswCpts_FxnGenAdjDir;
408
412 typedef struct CpswCpts_Event_s
413 {
415 uint64_t tsVal;
416
418 CpswCpts_EventType eventType;
419
421 EnetTimeSync_MsgType msgType;
422
424 uint32_t seqId;
425
427 uint32_t portNum;
428
430 uint32_t domain;
431
433 CpswCpts_HwPush hwPushNum;
434 } CpswCpts_Event;
435
439 typedef struct CpswCpts_EstEventMatchParams_s
440 {
442 Enet_MacPort macPort;
443
446 uint32_t domain;
447 } CpswCpts_EstEventMatchParams;
448
452 typedef struct CpswCpts_EstEvent_s
453 {
455 uint64_t tsVal;
456
458 uint8_t priority;
459
461 uint32_t seqNum;
462
464 uint32_t ingressPort;
465
467 uint32_t egressPort;
468
470 uint32_t domain;
471 } CpswCpts_EstEvent;
472
480 typedef void (*CpswCpts_EventNotifyCb)(void *eventNotifyCbArg,
481 CpswCpts_Event *eventInfo);
482
490 typedef void (*CpswCpts_HwPushNotifyCb)(void *hwPushNotifyCbArg,
491 CpswCpts_HwPush hwPushNum);
492
498 typedef struct CpswCpts_StackConfig_s
499 {
501 CpswCpts_EventNotifyCb eventNotifyCb;
502
504 void *eventNotifyCbArg;
505 } CpswCpts_RegisterStackInArgs;
506
510 typedef struct CpswCpts_RegisterHwPushCbInArgs_s
511 {
513 CpswCpts_HwPush hwPushNum;
514
516 CpswCpts_HwPushNotifyCb hwPushNotifyCb;
517
519 void *hwPushNotifyCbArg;
520 } CpswCpts_RegisterHwPushCbInArgs;
521
525 typedef struct CpswCpts_SetCompValInArgs_s
526 {
528 uint64_t tsCompVal;
529
531 uint32_t tsCompLen;
532
536 bool tsCompToggle;
537 } CpswCpts_SetCompValInArgs;
538
543 typedef struct CpswCpts_SetFxnGenInArgs_s
544 {
546 uint32_t index;
547
549 uint32_t length;
550
552 uint64_t compare;
553
557 bool polarityInv;
558
560 uint64_t ppmVal;
561
563 CpswCpts_FxnGenAdjDir ppmDir;
564
568 EnetTimeSync_AdjMode ppmMode;
569 } CpswCpts_SetFxnGenInArgs;
570
575 typedef struct CpswCpts_SetFxnGenNudgeInArgs_s
576 {
578 uint32_t index;
579
582 int32_t tsNudge;
583 } CpswCpts_SetFxnGenNudgeInArgs;
584
590 typedef struct CpswCpts_Cfg_s
591 {
594 bool hostRxTsEn;
595
599 bool tsCompPolarity;
600
602 bool tsRxEventsDis;
603
609 bool tsGenfClrEn;
610
612 CpswCpts_RftClkFreq cptsRftClkFreq;
613 } CpswCpts_Cfg;
614
615 /* ========================================================================== */
616 /* Global Variables Declarations */
617 /* ========================================================================== */
618
619 /* None */
620
621 /* ========================================================================== */
622 /* Function Declarations */
623 /* ========================================================================== */
624
630 void CpswCpts_initCfg(CpswCpts_Cfg *cptsCfg);
631
632 /* ========================================================================== */
633 /* Deprecated Function Declarations */
634 /* ========================================================================== */
635
636 /* None */
637
638 /* ========================================================================== */
639 /* Static Function Definitions */
640 /* ========================================================================== */
641
642 /* None */
643
644 #ifdef __cplusplus
645 }
646 #endif
647
648 #endif /* CPSW_CPTS_H_ */
649
CpswCpts_RegisterStackInArgs
Input args for CPSW_CPTS_IOCTL_REGISTER_STACK command.
Definition: cpsw_cpts.h:499
CpswCpts_SetFxnGenNudgeInArgs::index
uint32_t index
Definition: cpsw_cpts.h:578
CPSW_CPTS_IOCTL_SET_GENF_NUDGE
@ CPSW_CPTS_IOCTL_SET_GENF_NUDGE
CPTS set GenFn stamp nudge.
Definition: cpsw_cpts.h:186
CPSW_CPTS_HWPUSH_5
@ CPSW_CPTS_HWPUSH_5
Definition: cpsw_cpts.h:373
CpswCpts_EstEvent::egressPort
uint32_t egressPort
Definition: cpsw_cpts.h:467
CpswCpts_Cfg::tsCompPolarity
bool tsCompPolarity
Definition: cpsw_cpts.h:599
CPSW_CPTS_IOCTL_SET_GENF
@ CPSW_CPTS_IOCTL_SET_GENF
CPTS set function generator.
Definition: cpsw_cpts.h:177
CpswCpts_RegisterStackInArgs::eventNotifyCbArg
void * eventNotifyCbArg
Definition: cpsw_cpts.h:504
CPSW_CPTS_IOCTL_UNREGISTER_STACK
@ CPSW_CPTS_IOCTL_UNREGISTER_STACK
CPTS unregister stack.
Definition: cpsw_cpts.h:120
CPSW_CPTS_RFTCLK_FREQ_125MHZ
@ CPSW_CPTS_RFTCLK_FREQ_125MHZ
Definition: cpsw_cpts.h:262
CpswCpts_Cfg::tsRxEventsDis
bool tsRxEventsDis
Definition: cpsw_cpts.h:602
CPSW_CPTS_EVENTTYPE_ETH_RECEIVE
@ CPSW_CPTS_EVENTTYPE_ETH_RECEIVE
Definition: cpsw_cpts.h:283
CpswCpts_EstEvent::ingressPort
uint32_t ingressPort
Definition: cpsw_cpts.h:464
CpswCpts_EstEvent::priority
uint8_t priority
Definition: cpsw_cpts.h:458
CPSW_CPTS_EVENTTYPE_TS_ROLLOVER
@ CPSW_CPTS_EVENTTYPE_TS_ROLLOVER
Definition: cpsw_cpts.h:274
CPSW_CPTS_HWPUSH_INVALID
@ CPSW_CPTS_HWPUSH_INVALID
Definition: cpsw_cpts.h:388
CpswCpts_SetCompValInArgs
Input args for CPSW_CPTS_IOCTL_SET_COMP command.
Definition: cpsw_cpts.h:526
CpswCpts_EventNotifyCb
void(* CpswCpts_EventNotifyCb)(void *eventNotifyCbArg, CpswCpts_Event *eventInfo)
CPTS event notify callback.
Definition: cpsw_cpts.h:480
CPSW_CPTS_TS_OUTPUT_BIT_29
@ CPSW_CPTS_TS_OUTPUT_BIT_29
Definition: cpsw_cpts.h:343
CPSW_CPTS_HWPUSH_FIRST
@ CPSW_CPTS_HWPUSH_FIRST
Definition: cpsw_cpts.h:358
CpswCpts_SetFxnGenInArgs::ppmVal
uint64_t ppmVal
Definition: cpsw_cpts.h:560
CPSW_CPTS_EVENTTYPE_INVALID
@ CPSW_CPTS_EVENTTYPE_INVALID
Definition: cpsw_cpts.h:295
CPSW_CPTS_TS_OUTPUT_BIT_23
@ CPSW_CPTS_TS_OUTPUT_BIT_23
Definition: cpsw_cpts.h:325
CPSW_CPTS_RFTCLK_FREQ_1000MHZ
@ CPSW_CPTS_RFTCLK_FREQ_1000MHZ
Definition: cpsw_cpts.h:241
CpswCpts_RegisterHwPushCbInArgs::hwPushNum
CpswCpts_HwPush hwPushNum
Definition: cpsw_cpts.h:513
CpswCpts_SetFxnGenInArgs::polarityInv
bool polarityInv
Definition: cpsw_cpts.h:557
CpswCpts_EstEvent::tsVal
uint64_t tsVal
Definition: cpsw_cpts.h:455
CpswCpts_SetFxnGenNudgeInArgs::tsNudge
int32_t tsNudge
Definition: cpsw_cpts.h:582
Enet_MacPort
Enet_MacPort
MAC port.
Definition: enet_types.h:412
CPSW_CPTS_IOCTL_REGISTER_HWPUSH_CALLBACK
@ CPSW_CPTS_IOCTL_REGISTER_HWPUSH_CALLBACK
CPTS register hardware push event callback.
Definition: cpsw_cpts.h:129
CpswCpts_EstEvent
CPTS EST timestamp.
Definition: cpsw_cpts.h:453
CpswCpts_Event::msgType
EnetTimeSync_MsgType msgType
Definition: cpsw_cpts.h:421
CPSW_CPTS_TS_OUTPUT_BIT_28
@ CPSW_CPTS_TS_OUTPUT_BIT_28
Definition: cpsw_cpts.h:340
CPSW_CPTS_TS_OUTPUT_BIT_17
@ CPSW_CPTS_TS_OUTPUT_BIT_17
Definition: cpsw_cpts.h:307
CPSW_CPTS_HWPUSH_1
@ CPSW_CPTS_HWPUSH_1
Definition: cpsw_cpts.h:361
CPSW_CPTS_RFTCLK_FREQ_200MHZ
@ CPSW_CPTS_RFTCLK_FREQ_200MHZ
Definition: cpsw_cpts.h:253
CPSW_CPTS_EVENTTYPE_TS_PUSH
@ CPSW_CPTS_EVENTTYPE_TS_PUSH
Definition: cpsw_cpts.h:271
CPSW_CPTS_EVENTTYPE_TS_HOST_TX
@ CPSW_CPTS_EVENTTYPE_TS_HOST_TX
Definition: cpsw_cpts.h:292
CPSW_CPTS_IOCTL_SET_ESTF_NUDGE
@ CPSW_CPTS_IOCTL_SET_ESTF_NUDGE
CPTS set ESTFn stamp nudge.
Definition: cpsw_cpts.h:204
CpswCpts_RegisterHwPushCbInArgs::hwPushNotifyCb
CpswCpts_HwPushNotifyCb hwPushNotifyCb
Definition: cpsw_cpts.h:516
CPSW_CPTS_HWPUSH_LAST
@ CPSW_CPTS_HWPUSH_LAST
Definition: cpsw_cpts.h:385
CPSW_CPTS_TS_OUTPUT_BIT_25
@ CPSW_CPTS_TS_OUTPUT_BIT_25
Definition: cpsw_cpts.h:331
CpswCpts_OutputBitSel
CpswCpts_OutputBitSel
CPTS time stamp output bit.
Definition: cpsw_cpts.h:302
CPSW_CPTS_HWPUSH_3
@ CPSW_CPTS_HWPUSH_3
Definition: cpsw_cpts.h:367
CPSW_CPTS_GENF_PPM_ADJDIR_DECREASE
@ CPSW_CPTS_GENF_PPM_ADJDIR_DECREASE
Definition: cpsw_cpts.h:403
CPSW_CPTS_TS_OUTPUT_BIT_26
@ CPSW_CPTS_TS_OUTPUT_BIT_26
Definition: cpsw_cpts.h:334
CPSW_CPTS_IOCTL_SET_ESTF
@ CPSW_CPTS_IOCTL_SET_ESTF
CPTS set EST function generator.
Definition: cpsw_cpts.h:195
CpswCpts_SetFxnGenInArgs::length
uint32_t length
Definition: cpsw_cpts.h:549
CPSW_CPTS_IOCTL_REGISTER_STACK
@ CPSW_CPTS_IOCTL_REGISTER_STACK
CPTS register stack.
Definition: cpsw_cpts.h:111
CPSW_CPTS_HWPUSH_2
@ CPSW_CPTS_HWPUSH_2
Definition: cpsw_cpts.h:364
CpswCpts_FxnGenAdjDir
CpswCpts_FxnGenAdjDir
Genf adjustment direction.
Definition: cpsw_cpts.h:401
CpswCpts_Cfg::hostRxTsEn
bool hostRxTsEn
Definition: cpsw_cpts.h:594
CpswCpts_SetFxnGenInArgs
Input args for CPSW_CPTS_IOCTL_SET_GENF and CPSW_CPTS_IOCTL_SET_ESTF commands.
Definition: cpsw_cpts.h:544
CpswCpts_Cfg
CPTS configuration.
Definition: cpsw_cpts.h:591
CpswCpts_RegisterHwPushCbInArgs::hwPushNotifyCbArg
void * hwPushNotifyCbArg
Definition: cpsw_cpts.h:519
CpswCpts_Event::tsVal
uint64_t tsVal
Definition: cpsw_cpts.h:415
CPSW_CPTS_IOCTL_UNREGISTER_HWPUSH_CALLBACK
@ CPSW_CPTS_IOCTL_UNREGISTER_HWPUSH_CALLBACK
CPTS unregister hardware push event callback.
Definition: cpsw_cpts.h:138
CPSW_CPTS_TS_OUTPUT_BIT_30
@ CPSW_CPTS_TS_OUTPUT_BIT_30
Definition: cpsw_cpts.h:346
CpswCpts_RegisterStackInArgs::eventNotifyCb
CpswCpts_EventNotifyCb eventNotifyCb
Definition: cpsw_cpts.h:501
CpswCpts_EstEventMatchParams::domain
uint32_t domain
Definition: cpsw_cpts.h:446
CPSW_CPTS_EVENTTYPE_TS_HALFROLLOVER
@ CPSW_CPTS_EVENTTYPE_TS_HALFROLLOVER
Definition: cpsw_cpts.h:277
CPSW_CPTS_GENF_PPM_ADJDIR_INCREASE
@ CPSW_CPTS_GENF_PPM_ADJDIR_INCREASE
Definition: cpsw_cpts.h:406
CPSW_CPTS_PUBLIC_IOCTL
#define CPSW_CPTS_PUBLIC_IOCTL(x)
Helper macro to create IOCTL commands for CPSW CPTS module.
Definition: cpsw_cpts.h:84
CpswCpts_SetCompValInArgs::tsCompVal
uint64_t tsCompVal
Definition: cpsw_cpts.h:528
CpswCpts_Event::hwPushNum
CpswCpts_HwPush hwPushNum
Definition: cpsw_cpts.h:433
CpswCpts_HwPush
CpswCpts_HwPush
CPTS Hardware push instances.
Definition: cpsw_cpts.h:356
CpswCpts_SetFxnGenInArgs::index
uint32_t index
Definition: cpsw_cpts.h:546
CPSW_CPTS_IOCTL_SET_COMP
@ CPSW_CPTS_IOCTL_SET_COMP
CPTS set compare value.
Definition: cpsw_cpts.h:159
CPSW_CPTS_TS_OUTPUT_BIT_24
@ CPSW_CPTS_TS_OUTPUT_BIT_24
Definition: cpsw_cpts.h:328
CpswCpts_Event::portNum
uint32_t portNum
Definition: cpsw_cpts.h:427
CpswCpts_initCfg
void CpswCpts_initCfg(CpswCpts_Cfg *cptsCfg)
Initialize CPSW CPTS configuration parameters.
CpswCpts_EstEventMatchParams
CPTS EST event match params.
Definition: cpsw_cpts.h:440
CpswCpts_Ioctl
CpswCpts_Ioctl
CPSW CPTS IOCTL commands.
Definition: cpsw_cpts.h:103
CpswCpts_EstEvent::domain
uint32_t domain
Definition: cpsw_cpts.h:470
CPSW_CPTS_HWPUSH_7
@ CPSW_CPTS_HWPUSH_7
Definition: cpsw_cpts.h:379
CpswCpts_SetFxnGenInArgs::ppmDir
CpswCpts_FxnGenAdjDir ppmDir
Definition: cpsw_cpts.h:563
CPSW_CPTS_EVENTTYPE_HW_TS_PUSH
@ CPSW_CPTS_EVENTTYPE_HW_TS_PUSH
Definition: cpsw_cpts.h:280
CpswCpts_EstEventMatchParams::macPort
Enet_MacPort macPort
Definition: cpsw_cpts.h:442
CPSW_CPTS_TS_OUTPUT_BIT_DISABLED
@ CPSW_CPTS_TS_OUTPUT_BIT_DISABLED
Definition: cpsw_cpts.h:304
CPSW_CPTS_HWPUSH_8
@ CPSW_CPTS_HWPUSH_8
Definition: cpsw_cpts.h:382
CPSW_CPTS_HWPUSH_4
@ CPSW_CPTS_HWPUSH_4
Definition: cpsw_cpts.h:370
CpswCpts_RegisterHwPushCbInArgs
Input args for CPSW_CPTS_IOCTL_REGISTER_HWPUSH_CALLBACK command.
Definition: cpsw_cpts.h:511
CPSW_CPTS_TS_OUTPUT_BIT_22
@ CPSW_CPTS_TS_OUTPUT_BIT_22
Definition: cpsw_cpts.h:322
CPSW_CPTS_TS_OUTPUT_BIT_31
@ CPSW_CPTS_TS_OUTPUT_BIT_31
Definition: cpsw_cpts.h:349
CPSW_CPTS_RFTCLK_FREQ_500MHZ
@ CPSW_CPTS_RFTCLK_FREQ_500MHZ
Definition: cpsw_cpts.h:244
CPSW_CPTS_TS_OUTPUT_BIT_20
@ CPSW_CPTS_TS_OUTPUT_BIT_20
Definition: cpsw_cpts.h:316
CPSW_CPTS_IOCTL_LOOKUP_EVENT
@ CPSW_CPTS_IOCTL_LOOKUP_EVENT
CPTS lookup event.
Definition: cpsw_cpts.h:222
CPSW_CPTS_IOCTL_LOOKUP_EST_EVENT
@ CPSW_CPTS_IOCTL_LOOKUP_EST_EVENT
CPTS lookup EST event/.
Definition: cpsw_cpts.h:231
EnetTimeSync_AdjMode
EnetTimeSync_AdjMode
TimeSync adjustment mode.
Definition: enet_mod_timesync.h:218
CPSW_CPTS_RFTCLK_FREQ_250MHZ
@ CPSW_CPTS_RFTCLK_FREQ_250MHZ
Definition: cpsw_cpts.h:250
CPSW_CPTS_TS_OUTPUT_BIT_21
@ CPSW_CPTS_TS_OUTPUT_BIT_21
Definition: cpsw_cpts.h:319
CpswCpts_SetFxnGenInArgs::compare
uint64_t compare
Definition: cpsw_cpts.h:552
CPSW_CPTS_HWPUSH_6
@ CPSW_CPTS_HWPUSH_6
Definition: cpsw_cpts.h:376
enet_mod_timesync.h
This file contains the type definitions and helper macros for the Enet Time Synchronization module in...
CPSW_CPTS_EVENTTYPE_ETH_TRANSMIT
@ CPSW_CPTS_EVENTTYPE_ETH_TRANSMIT
Definition: cpsw_cpts.h:286
CpswCpts_EventType
CpswCpts_EventType
CPTS event type.
Definition: cpsw_cpts.h:269
CpswCpts_Event::eventType
CpswCpts_EventType eventType
Definition: cpsw_cpts.h:418
CPSW_CPTS_EVENTTYPE_TS_COMP
@ CPSW_CPTS_EVENTTYPE_TS_COMP
Definition: cpsw_cpts.h:289
CpswCpts_Event::domain
uint32_t domain
Definition: cpsw_cpts.h:430
CpswCpts_SetFxnGenNudgeInArgs
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
@ CPSW_CPTS_RFTCLK_FREQ_333_33MHZ
Definition: cpsw_cpts.h:247
CpswCpts_HwPushNotifyCb
void(* CpswCpts_HwPushNotifyCb)(void *hwPushNotifyCbArg, CpswCpts_HwPush hwPushNum)
CPTS hardware push notify callback/.
Definition: cpsw_cpts.h:490
CPSW_CPTS_TS_OUTPUT_BIT_18
@ CPSW_CPTS_TS_OUTPUT_BIT_18
Definition: cpsw_cpts.h:310
CPSW_CPTS_IOCTL_SET_COMP_NUDGE
@ CPSW_CPTS_IOCTL_SET_COMP_NUDGE
CPTS set compare nudge.
Definition: cpsw_cpts.h:168
CPSW_CPTS_TS_OUTPUT_BIT_19
@ CPSW_CPTS_TS_OUTPUT_BIT_19
Definition: cpsw_cpts.h:313
CPSW_CPTS_IOCTL_SELECT_TS_OUTPUT_BIT
@ CPSW_CPTS_IOCTL_SELECT_TS_OUTPUT_BIT
CPTS TS output bit select.
Definition: cpsw_cpts.h:213
CPSW_CPTS_RFTCLK_FREQ_142_85MHZ
@ CPSW_CPTS_RFTCLK_FREQ_142_85MHZ
Definition: cpsw_cpts.h:259
EnetTimeSync_MsgType
EnetTimeSync_MsgType
TimeSync Ethernet message type.
Definition: enet_mod_timesync.h:179
CpswCpts_SetCompValInArgs::tsCompToggle
bool tsCompToggle
Definition: cpsw_cpts.h:536
CpswCpts_RftClkFreq
CpswCpts_RftClkFreq
CPTS clock frequency add value.
Definition: cpsw_cpts.h:239
CPSW_CPTS_RFTCLK_FREQ_166_66MHZ
@ CPSW_CPTS_RFTCLK_FREQ_166_66MHZ
Definition: cpsw_cpts.h:256
CpswCpts_Cfg::cptsRftClkFreq
CpswCpts_RftClkFreq cptsRftClkFreq
Definition: cpsw_cpts.h:612
CpswCpts_SetCompValInArgs::tsCompLen
uint32_t tsCompLen
Definition: cpsw_cpts.h:531
CPSW_CPTS_TS_OUTPUT_BIT_27
@ CPSW_CPTS_TS_OUTPUT_BIT_27
Definition: cpsw_cpts.h:337
CpswCpts_Event
CPTS event.
Definition: cpsw_cpts.h:413
CpswCpts_Cfg::tsGenfClrEn
bool tsGenfClrEn
Definition: cpsw_cpts.h:609
CpswCpts_EstEvent::seqNum
uint32_t seqNum
Definition: cpsw_cpts.h:461
CpswCpts_SetFxnGenInArgs::ppmMode
EnetTimeSync_AdjMode ppmMode
Definition: cpsw_cpts.h:568
CPSW_CPTS_IOCTL_SET_TS_NUDGE
@ CPSW_CPTS_IOCTL_SET_TS_NUDGE
CPTS set timestamp nudge.
Definition: cpsw_cpts.h:150
CpswCpts_Event::seqId
uint32_t seqId
Definition: cpsw_cpts.h:424