PDK API Guide for J721E
csl_cpswitch.h
Go to the documentation of this file.
1 
42 #ifndef CSL_CPSWITCH_H_
43 #define CSL_CPSWITCH_H_
44 
45 #ifdef __cplusplus
46 extern "C" {
47 #endif
48 
49 #include <ti/csl/cslr.h>
50 #include <ti/csl/tistdtypes.h>
51 
52 #include <ti/csl/soc.h>
53 
54 
117 #define CSL_CPTS_EVENTTYPE_TS_PUSH 0
118 
120 #define CSL_CPTS_EVENTTYPE_TS_ROLLOVER 1
121 
123 #define CSL_CPTS_EVENTTYPE_TS_HALFROLLOVER 2
124 
126 #define CSL_CPTS_EVENTTYPE_HW_TS_PUSH 3
127 
129 #define CSL_CPTS_EVENTTYPE_ETH_RECEIVE 4
130 
132 #define CSL_CPTS_EVENTTYPE_ETH_TRANSMIT 5
133 
135 #define CSL_CPTS_EVENTTYPE_TS_COMP 6
136 
138 #define CSL_CPTS_EVENTTYPE_HOST 7
139 
144 typedef struct {
146  Uint32 minorVer;
147 
149  Uint32 majorVer;
150 
152  Uint32 rtlVer;
153 
155  Uint32 id;
157 
162 typedef struct {
164  Uint32 timeStamp;
165 
167  Uint32 timeStampHi;
168 
170  Uint32 seqId;
171 
173  Uint32 msgType;
174 
176  Uint32 eventType;
177 
179  Uint32 portNo;
180 
182  Uint32 domain;
184 
185 #if defined(SOC_AM65XX) || defined(SOC_J721E) || defined (SOC_J721S2) || defined (SOC_J7200) || defined(SOC_AM64X) || defined (SOC_TPR12) || defined (SOC_AWR294X)
186 
189 /* If split CSLR is provided then no need for v5 csl_mdio.h */
191 /* If split CSLR is provided then no need for v1 csl_cpts.h */
193 
194 #endif /* SOC_XXXXX */
195 
196 #if defined(SOC_J721E) || defined (SOC_J721S2) || defined (SOC_J7200) || defined(SOC_AM65XX) || defined(SOC_AM64X)
199 
200 #endif /* SOC_XXXXX */
201 
202 #if defined(SOC_TPR12) || defined (SOC_AWR294X)
203 #include <ti/csl/src/ip/cpsw/V5/V5_1/csl_cpsw_ss.h>
204 #include <ti/csl/src/ip/cpdma/V0/csl_cpdma.h>
205 
206 #endif /* SOC_XXXXX */
207 
208 
209 
214 #ifdef __cplusplus
215 }
216 #endif
217 
218 #endif
219 
Uint32 timeStamp
Definition: csl_cpswitch.h:164
Header file for functional layer of CSL MDIO Version 5.
Uint32 domain
Definition: csl_cpswitch.h:182
API Auxilary header file for Ethernet switch module CSL.
API Auxilary header file for Ethernet switch subsystem CSL.
API Auxilary header file for SGMII CSL. Contains the different control command and status query funct...
Uint32 majorVer
Definition: csl_cpswitch.h:149
Uint32 portNo
Definition: csl_cpswitch.h:179
Uint32 id
Definition: csl_cpswitch.h:155
Uint32 minorVer
Definition: csl_cpswitch.h:146
Holds Time sync event info contents.
Definition: csl_cpswitch.h:162
Uint32 msgType
Definition: csl_cpswitch.h:173
Holds the Time sync submodule's version info.
Definition: csl_cpswitch.h:144
Uint32 rtlVer
Definition: csl_cpswitch.h:152
Uint32 eventType
Definition: csl_cpswitch.h:176
Uint32 timeStampHi
Definition: csl_cpswitch.h:167
Uint32 seqId
Definition: csl_cpswitch.h:170
Header file containing various enumerations, structure definitions and function declarations for the ...
API Auxilary header file for Ethernet MAC submodule CSL.