RTEMS 6.1-rc6
Loading...
Searching...
No Matches
reg_flex_ray.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-2-Clause */
2
11/* The header file is generated by make_header.py from FLEX_RAY.json */
12/* Current script's version can be found at: */
13/* https://github.com/AoLaD/rtems-tms570-utils/tree/headers/headers/python */
14
15/*
16 * Copyright (c) 2014-2015, Premysl Houdek <kom541000@gmail.com>
17 *
18 * Czech Technical University in Prague
19 * Zikova 1903/4
20 * 166 36 Praha 6
21 * Czech Republic
22 *
23 * All rights reserved.
24 *
25 * Redistribution and use in source and binary forms, with or without
26 * modification, are permitted provided that the following conditions are met:
27 *
28 * 1. Redistributions of source code must retain the above copyright notice, this
29 * list of conditions and the following disclaimer.
30 * 2. Redistributions in binary form must reproduce the above copyright notice,
31 * this list of conditions and the following disclaimer in the documentation
32 * and/or other materials provided with the distribution.
33 *
34 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
35 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
36 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
37 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
38 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
39 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
40 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
41 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
42 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
43 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
44 *
45 * The views and conclusions contained in the software and documentation are those
46 * of the authors and should not be interpreted as representing official policies,
47 * either expressed or implied, of the FreeBSD Project.
48*/
49#ifndef LIBBSP_ARM_TMS570_FLEX_RAY
50#define LIBBSP_ARM_TMS570_FLEX_RAY
51
52#include <bsp/utility.h>
53
54typedef struct{
55 uint32_t GSN0; /*Global Static Number 0*/
56 uint32_t GSN1; /*Global Static Number 1*/
57 uint8_t reserved1 [8];
58 uint32_t GCS; /*Global Control Set*/
59 uint32_t GCR; /*Global Control Reset*/
60 uint32_t TSCB; /*Transfer Status Current Buffer*/
61 uint32_t LTBCC; /*Last Transferred Buffer to Communication Controller*/
62 uint32_t LTBSM; /*Last Transferred Buffer to System Memory*/
63 uint32_t TBA; /*Transfer Base Address*/
64 uint32_t NTBA; /*Next Transfer Base Address*/
65 uint32_t BAMS; /*Base Address of Mirrored Status*/
66 uint32_t SAMP; /*Start Address of Memory Protection*/
67 uint32_t EAMP; /*End Address of Memory Protection*/
68 uint8_t reserved2 [8];
69 uint32_t TSMO1; /*Transfer to System Memory Occurred 1*/
70 uint32_t TSMO2; /*Transfer to System Memory Occurred 2*/
71 uint32_t TSMO3; /*Transfer to System Memory Occurred 3*/
72 uint32_t TSMO4; /*Transfer to System Memory Occurred 4*/
73 uint32_t TCCO1; /*Transfer to Communication Controller Occurred 1*/
74 uint32_t TCCO2; /*Transfer to Communication Controller Occurred 2*/
75 uint32_t TCCO3; /*Transfer to Communication Controller Occurred 3*/
76 uint32_t TCCO4; /*Transfer to Communication Controller Occurred 4*/
77 uint32_t TOOFF; /*Transfer Occurred Offset*/
78 uint8_t reserved3 [12];
79 uint32_t PEADR; /*Parity Error Address*/
80 uint32_t TEIF; /*Transfer Error Interrupt*/
81 uint32_t TEIRES; /*Transfer Error Interrupt Enable Set*/
82 uint32_t TEIRER; /*Transfer Error Interrupt Enable Reset*/
83 uint32_t TTSMS1; /*Trigger Transfer to System Memory Set 1*/
84 uint32_t TTSMR1; /*Trigger Transfer to System Memory Reset 1*/
85 uint32_t TTSMS2; /*Trigger Transfer to System Memory Set 2*/
86 uint32_t TTSMR2; /*Trigger Transfer to System Memory Reset 2*/
87 uint32_t TTSMS3; /*Trigger Transfer to System Memory Set 3*/
88 uint32_t TTSMR3; /*Trigger Transfer to System Memory Reset 3*/
89 uint32_t TTSMS4; /*Trigger Transfer to System Memory Set 4*/
90 uint32_t TTSMR4; /*Trigger Transfer to System Memory Reset 4*/
91 uint32_t TTCCS1; /*Trigger Transfer to Communication Controller Set 1*/
92 uint32_t TTCCR1; /*Trigger Transfer to Communication Controller Reset 1*/
93 uint32_t TTCCS2; /*Trigger Transfer to Communication Controller Set 2*/
94 uint32_t TTCCR2; /*Trigger Transfer to Communication Controller Reset 2*/
95 uint32_t TTCCS3; /*Trigger Transfer to Communication Controller Set 3*/
96 uint32_t TTCCR3; /*Trigger Transfer to Communication Controller Reset 3*/
97 uint32_t TTCCS4; /*Trigger Transfer to Communication Controller Set 4*/
98 uint32_t TTCCR4; /*Trigger Transfer to Communication Controller Reset 4*/
99 uint32_t ETESMS1; /*Enable Transfer on Event to System Memory Set 1*/
100 uint32_t ETESMR1; /*Enable Transfer on Event to System Memory Reset 1*/
101 uint32_t ETESMS2; /*Enable Transfer on Event to System Memory Set 2*/
102 uint32_t ETESMR2; /*Enable Transfer on Event to System Memory Reset 2*/
103 uint32_t ETESMS3; /*Enable Transfer on Event to System Memory Set 3*/
104 uint32_t ETESMR3; /*Enable Transfer on Event to System Memory Reset 3*/
105 uint32_t ETESMS4; /*Enable Transfer on Event to System Memory Set 4*/
106 uint32_t ETESMR4; /*Enable Transfer on Event to System Memory Reset 4*/
107 uint32_t CESMS1; /*Clear on Event to System Memory Set 1*/
108 uint32_t CESMR1; /*Clear on Event to System Memory Reset 1*/
109 uint32_t CESMS2; /*Clear on Event to System Memory Set 2*/
110 uint32_t CESMR2; /*Clear on Event to System Memory Reset 2*/
111 uint32_t CESMS3; /*Clear on Event to System Memory Set 3*/
112 uint32_t CESMR3; /*Clear on Event to System Memory Reset 3*/
113 uint32_t CESMS4; /*Clear on Event to System Memory Set 4*/
114 uint32_t CESMR4; /*Clear on Event to System Memory Reset 4*/
115 uint32_t TSMIES1; /*Transfer to System Memory Interrupt Enable Set 1*/
116 uint32_t TSMIER1; /*Transfer to System Memory Interrupt Enable Reset 1*/
117 uint32_t TSMIES2; /*Transfer to System Memory Interrupt Enable Set 2*/
118 uint32_t TSMIER2; /*Transfer to System Memory Interrupt Enable Reset 2*/
119 uint32_t TSMIES3; /*Transfer to System Memory Interrupt Enable Set 3*/
120 uint32_t TSMIER3; /*Transfer to System Memory Interrupt Enable Reset 3*/
121 uint32_t TSMIES4; /*Transfer to System Memory Interrupt Enable Set 4*/
122 uint32_t TSMIER4; /*Transfer to System Memory Interrupt Enable Reset 4*/
123 uint32_t TCCIES1; /*Transfer to Communication Controller Interrupt Enable Set 1*/
124 uint32_t TCCIER1; /*Transfer to Communication Controller Interrupt Enable Reset 1*/
125 uint32_t TCCIES2; /*Transfer to Communication Controller Interrupt Enable Set 2*/
126 uint32_t TCCIER2; /*Transfer to Communication Controller Interrupt Enable Reset 2*/
127 uint32_t TCCIES3; /*Transfer to Communication Controller Interrupt Enable Set 3*/
128 uint32_t TCCIER3; /*Transfer to Communication Controller Interrupt Enable Reset 3*/
129 uint32_t TCCIES4; /*Transfer to Communication Controller Interrupt Enable Set 4*/
130 uint32_t TCCIER4; /*Transfer to Communication Controller Interrupt Enable Reset 4*/
132
133
134/*--------------------TMS570_FLEX_RAY_GSN0--------------------*/
135/* field: Data_A - Data_A(15-0) */
136#define TMS570_FLEX_RAY_GSN0_Data_A(val) BSP_FLD32(val,16, 31)
137#define TMS570_FLEX_RAY_GSN0_Data_A_GET(reg) BSP_FLD32GET(reg,16, 31)
138#define TMS570_FLEX_RAY_GSN0_Data_A_SET(reg,val) BSP_FLD32SET(reg, val,16, 31)
139
140/* field: Data_B - (complement of Data_A(15-0)) */
141#define TMS570_FLEX_RAY_GSN0_Data_B(val) BSP_FLD32(val,0, 15)
142#define TMS570_FLEX_RAY_GSN0_Data_B_GET(reg) BSP_FLD32GET(reg,0, 15)
143#define TMS570_FLEX_RAY_GSN0_Data_B_SET(reg,val) BSP_FLD32SET(reg, val,0, 15)
144
145
146/*--------------------TMS570_FLEX_RAY_GSN1--------------------*/
147/* field: Data_C - Data_C(15-0) */
148#define TMS570_FLEX_RAY_GSN1_Data_C(val) BSP_FLD32(val,16, 31)
149#define TMS570_FLEX_RAY_GSN1_Data_C_GET(reg) BSP_FLD32GET(reg,16, 31)
150#define TMS570_FLEX_RAY_GSN1_Data_C_SET(reg,val) BSP_FLD32SET(reg, val,16, 31)
151
152/* field: Data_D - (complement of Data_C(15-0)) */
153#define TMS570_FLEX_RAY_GSN1_Data_D(val) BSP_FLD32(val,0, 15)
154#define TMS570_FLEX_RAY_GSN1_Data_D_GET(reg) BSP_FLD32GET(reg,0, 15)
155#define TMS570_FLEX_RAY_GSN1_Data_D_SET(reg,val) BSP_FLD32SET(reg, val,0, 15)
156
157
158/*--------------------TMS570_FLEX_RAY_GCS--------------------*/
159/* field: ENDVBM - Endianness Correction on VBusp Master */
160#define TMS570_FLEX_RAY_GCS_ENDVBM BSP_BIT32(31)
161
162/* field: ENDVBS - Endianness correction on VBusp Slave */
163#define TMS570_FLEX_RAY_GCS_ENDVBS BSP_BIT32(30)
164
165/* field: ENDRx - Endianness Correction for No (header or payload) Data Sink Access */
166#define TMS570_FLEX_RAY_GCS_ENDRx(val) BSP_FLD32(val,28, 29)
167#define TMS570_FLEX_RAY_GCS_ENDRx_GET(reg) BSP_FLD32GET(reg,28, 29)
168#define TMS570_FLEX_RAY_GCS_ENDRx_SET(reg,val) BSP_FLD32SET(reg, val,28, 29)
169
170/* field: ENDHx - Endianness Correction for Header */
171#define TMS570_FLEX_RAY_GCS_ENDHx(val) BSP_FLD32(val,26, 27)
172#define TMS570_FLEX_RAY_GCS_ENDHx_GET(reg) BSP_FLD32GET(reg,26, 27)
173#define TMS570_FLEX_RAY_GCS_ENDHx_SET(reg,val) BSP_FLD32SET(reg, val,26, 27)
174
175/* field: ENDPx - Endianness Correction for Payload */
176#define TMS570_FLEX_RAY_GCS_ENDPx(val) BSP_FLD32(val,24, 25)
177#define TMS570_FLEX_RAY_GCS_ENDPx_GET(reg) BSP_FLD32GET(reg,24, 25)
178#define TMS570_FLEX_RAY_GCS_ENDPx_SET(reg,val) BSP_FLD32SET(reg, val,24, 25)
179
180/* field: PRIO - Transfer Priority */
181#define TMS570_FLEX_RAY_GCS_PRIO BSP_BIT32(21)
182
183/* field: PEFT - Parity for Test */
184#define TMS570_FLEX_RAY_GCS_PEFT BSP_BIT32(20)
185
186/* field: PELx - Parity Lock */
187#define TMS570_FLEX_RAY_GCS_PELx(val) BSP_FLD32(val,16, 19)
188#define TMS570_FLEX_RAY_GCS_PELx_GET(reg) BSP_FLD32GET(reg,16, 19)
189#define TMS570_FLEX_RAY_GCS_PELx_SET(reg,val) BSP_FLD32SET(reg, val,16, 19)
190
191/* field: CETESM - Clear ETESM Register */
192#define TMS570_FLEX_RAY_GCS_CETESM BSP_BIT32(14)
193
194/* field: CTTCC - Clear TTCC Register */
195#define TMS570_FLEX_RAY_GCS_CTTCC BSP_BIT32(13)
196
197/* field: CTTSM - Clear TTSM Register */
198#define TMS570_FLEX_RAY_GCS_CTTSM BSP_BIT32(12)
199
200/* field: ETSM - Enable Transfer Status Mirrored */
201#define TMS570_FLEX_RAY_GCS_ETSM BSP_BIT32(8)
202
203/* field: SILE - Status Interrupt Line Enable */
204#define TMS570_FLEX_RAY_GCS_SILE BSP_BIT32(5)
205
206/* field: EILE - Error Interrupt Line Enable */
207#define TMS570_FLEX_RAY_GCS_EILE BSP_BIT32(4)
208
209/* field: TUH - Transfer Unit Halted */
210#define TMS570_FLEX_RAY_GCS_TUH BSP_BIT32(1)
211
212/* field: TUE - Transfer Unit Enabled */
213#define TMS570_FLEX_RAY_GCS_TUE BSP_BIT32(0)
214
215
216/*--------------------TMS570_FLEX_RAY_GCR--------------------*/
217/* field: ENDVBM - Endianness Correction on VBusp Master */
218#define TMS570_FLEX_RAY_GCR_ENDVBM BSP_BIT32(31)
219
220/* field: ENDVBS - Endianness correction on VBusp Slave */
221#define TMS570_FLEX_RAY_GCR_ENDVBS BSP_BIT32(30)
222
223/* field: ENDRx - Endianness Correction for No (header or payload) Data Sink Access */
224#define TMS570_FLEX_RAY_GCR_ENDRx(val) BSP_FLD32(val,28, 29)
225#define TMS570_FLEX_RAY_GCR_ENDRx_GET(reg) BSP_FLD32GET(reg,28, 29)
226#define TMS570_FLEX_RAY_GCR_ENDRx_SET(reg,val) BSP_FLD32SET(reg, val,28, 29)
227
228/* field: ENDHx - Endianness Correction for Header */
229#define TMS570_FLEX_RAY_GCR_ENDHx(val) BSP_FLD32(val,26, 27)
230#define TMS570_FLEX_RAY_GCR_ENDHx_GET(reg) BSP_FLD32GET(reg,26, 27)
231#define TMS570_FLEX_RAY_GCR_ENDHx_SET(reg,val) BSP_FLD32SET(reg, val,26, 27)
232
233/* field: ENDPx - Endianness Correction for Payload */
234#define TMS570_FLEX_RAY_GCR_ENDPx(val) BSP_FLD32(val,24, 25)
235#define TMS570_FLEX_RAY_GCR_ENDPx_GET(reg) BSP_FLD32GET(reg,24, 25)
236#define TMS570_FLEX_RAY_GCR_ENDPx_SET(reg,val) BSP_FLD32SET(reg, val,24, 25)
237
238/* field: PRIO - Transfer Priority */
239#define TMS570_FLEX_RAY_GCR_PRIO BSP_BIT32(21)
240
241/* field: PEFT - Parity for Test */
242#define TMS570_FLEX_RAY_GCR_PEFT BSP_BIT32(20)
243
244/* field: PELx - Parity Lock */
245#define TMS570_FLEX_RAY_GCR_PELx(val) BSP_FLD32(val,16, 19)
246#define TMS570_FLEX_RAY_GCR_PELx_GET(reg) BSP_FLD32GET(reg,16, 19)
247#define TMS570_FLEX_RAY_GCR_PELx_SET(reg,val) BSP_FLD32SET(reg, val,16, 19)
248
249/* field: CETESM - Clear ETESM Register */
250#define TMS570_FLEX_RAY_GCR_CETESM BSP_BIT32(14)
251
252/* field: CTTCC - Clear TTCC Register */
253#define TMS570_FLEX_RAY_GCR_CTTCC BSP_BIT32(13)
254
255/* field: CTTSM - Clear TTSM Register */
256#define TMS570_FLEX_RAY_GCR_CTTSM BSP_BIT32(12)
257
258/* field: ETSM - Enable Transfer Status Mirrored */
259#define TMS570_FLEX_RAY_GCR_ETSM BSP_BIT32(8)
260
261/* field: SILE - Status Interrupt Line Enable */
262#define TMS570_FLEX_RAY_GCR_SILE BSP_BIT32(5)
263
264/* field: EILE - Error Interrupt Line Enable */
265#define TMS570_FLEX_RAY_GCR_EILE BSP_BIT32(4)
266
267/* field: TUH - Transfer Unit Halted */
268#define TMS570_FLEX_RAY_GCR_TUH BSP_BIT32(1)
269
270/* field: TUE - Transfer Unit Enabled */
271#define TMS570_FLEX_RAY_GCR_TUE BSP_BIT32(0)
272
273
274/*--------------------TMS570_FLEX_RAY_TSCB--------------------*/
275/* field: TSMS - Transfer State Machine Status */
276#define TMS570_FLEX_RAY_TSCB_TSMS(val) BSP_FLD32(val,16, 20)
277#define TMS570_FLEX_RAY_TSCB_TSMS_GET(reg) BSP_FLD32GET(reg,16, 20)
278#define TMS570_FLEX_RAY_TSCB_TSMS_SET(reg,val) BSP_FLD32SET(reg, val,16, 20)
279
280/* field: STUH - Status of Transfer Unit State Machine for Halt Detection */
281#define TMS570_FLEX_RAY_TSCB_STUH BSP_BIT32(12)
282
283/* field: IDLE - Detects Transfer State Machine State IDLE */
284#define TMS570_FLEX_RAY_TSCB_IDLE BSP_BIT32(8)
285
286/* field: BN - Buffer Number */
287#define TMS570_FLEX_RAY_TSCB_BN(val) BSP_FLD32(val,0, 6)
288#define TMS570_FLEX_RAY_TSCB_BN_GET(reg) BSP_FLD32GET(reg,0, 6)
289#define TMS570_FLEX_RAY_TSCB_BN_SET(reg,val) BSP_FLD32SET(reg, val,0, 6)
290
291
292/*-------------------TMS570_FLEX_RAY_LTBCC-------------------*/
293/* field: BN - Buffer number. */
294#define TMS570_FLEX_RAY_LTBCC_BN(val) BSP_FLD32(val,0, 6)
295#define TMS570_FLEX_RAY_LTBCC_BN_GET(reg) BSP_FLD32GET(reg,0, 6)
296#define TMS570_FLEX_RAY_LTBCC_BN_SET(reg,val) BSP_FLD32SET(reg, val,0, 6)
297
298
299/*-------------------TMS570_FLEX_RAY_LTBSM-------------------*/
300/* field: BN - Buffer number. */
301#define TMS570_FLEX_RAY_LTBSM_BN(val) BSP_FLD32(val,0, 6)
302#define TMS570_FLEX_RAY_LTBSM_BN_GET(reg) BSP_FLD32GET(reg,0, 6)
303#define TMS570_FLEX_RAY_LTBSM_BN_SET(reg,val) BSP_FLD32SET(reg, val,0, 6)
304
305
306/*--------------------TMS570_FLEX_RAY_TBA--------------------*/
307/* field: TBA - Transfer Base Address. */
308/* Whole 32 bits */
309
310/*--------------------TMS570_FLEX_RAY_NTBA--------------------*/
311/* field: nTBA - nTBA(31-0) */
312/* Whole 32 bits */
313
314/*--------------------TMS570_FLEX_RAY_BAMS--------------------*/
315/* field: BAMS - Base Address of Mirrored Status32-bit base pointer, 2 LSB are not significant (32-bit */
316/* Whole 32 bits */
317
318/*--------------------TMS570_FLEX_RAY_SAMP--------------------*/
319/* field: SAMP - Start Address Memory Protection. */
320/* Whole 32 bits */
321
322/*--------------------TMS570_FLEX_RAY_EAMP--------------------*/
323/* field: EAMP - End Address Memory Protection. */
324/* Whole 32 bits */
325
326/*-------------------TMS570_FLEX_RAY_TSMO1-------------------*/
327/* field: TSMO1 - Transfer to System Memory Occurred Register 1. */
328/* Whole 32 bits */
329
330/*-------------------TMS570_FLEX_RAY_TSMO2-------------------*/
331/* field: TSMO1 - Transfer to System Memory Occurred Register 1. */
332/* Whole 32 bits */
333
334/*-------------------TMS570_FLEX_RAY_TSMO3-------------------*/
335/* field: TSMO1 - Transfer to System Memory Occurred Register 1. */
336/* Whole 32 bits */
337
338/*-------------------TMS570_FLEX_RAY_TSMO4-------------------*/
339/* field: TSMO1 - Transfer to System Memory Occurred Register 1. */
340/* Whole 32 bits */
341
342/*-------------------TMS570_FLEX_RAY_TCCO1-------------------*/
343/* field: TCCO1 - Transfer to Communication Controller Occurred Register 1. */
344/* Whole 32 bits */
345
346/*-------------------TMS570_FLEX_RAY_TCCO2-------------------*/
347/* field: TCCO1 - Transfer to Communication Controller Occurred Register 1. */
348/* Whole 32 bits */
349
350/*-------------------TMS570_FLEX_RAY_TCCO3-------------------*/
351/* field: TCCO1 - Transfer to Communication Controller Occurred Register 1. */
352/* Whole 32 bits */
353
354/*-------------------TMS570_FLEX_RAY_TCCO4-------------------*/
355/* field: TCCO1 - Transfer to Communication Controller Occurred Register 1. */
356/* Whole 32 bits */
357
358/*-------------------TMS570_FLEX_RAY_TOOFF-------------------*/
359/* field: TDIR - Transfer Direction. */
360#define TMS570_FLEX_RAY_TOOFF_TDIR BSP_BIT32(8)
361
362/* field: OFF - Offset Vector */
363#define TMS570_FLEX_RAY_TOOFF_OFF(val) BSP_FLD32(val,0, 7)
364#define TMS570_FLEX_RAY_TOOFF_OFF_GET(reg) BSP_FLD32GET(reg,0, 7)
365#define TMS570_FLEX_RAY_TOOFF_OFF_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
366
367
368/*-------------------TMS570_FLEX_RAY_PEADR-------------------*/
369/* field: ADR - Address of failing TCR location. */
370#define TMS570_FLEX_RAY_PEADR_ADR(val) BSP_FLD32(val,0, 8)
371#define TMS570_FLEX_RAY_PEADR_ADR_GET(reg) BSP_FLD32GET(reg,0, 8)
372#define TMS570_FLEX_RAY_PEADR_ADR_SET(reg,val) BSP_FLD32SET(reg, val,0, 8)
373
374
375/*--------------------TMS570_FLEX_RAY_TEIF--------------------*/
376/* field: MPV - Memory Protection Violation. */
377#define TMS570_FLEX_RAY_TEIF_MPV BSP_BIT32(17)
378
379/* field: PE - Parity Error. The flag signals a parity error to the host. */
380#define TMS570_FLEX_RAY_TEIF_PE BSP_BIT32(16)
381
382/* field: RSTAT - Status of VBUS on read transfers. */
383#define TMS570_FLEX_RAY_TEIF_RSTAT(val) BSP_FLD32(val,8, 10)
384#define TMS570_FLEX_RAY_TEIF_RSTAT_GET(reg) BSP_FLD32GET(reg,8, 10)
385#define TMS570_FLEX_RAY_TEIF_RSTAT_SET(reg,val) BSP_FLD32SET(reg, val,8, 10)
386
387/* field: WSTAT - Status of VBUS on write transfers. */
388#define TMS570_FLEX_RAY_TEIF_WSTAT(val) BSP_FLD32(val,4, 6)
389#define TMS570_FLEX_RAY_TEIF_WSTAT_GET(reg) BSP_FLD32GET(reg,4, 6)
390#define TMS570_FLEX_RAY_TEIF_WSTAT_SET(reg,val) BSP_FLD32SET(reg, val,4, 6)
391
392/* field: TNR - Transfer Not Ready. */
393#define TMS570_FLEX_RAY_TEIF_TNR BSP_BIT32(1)
394
395/* field: FAC - Forbidden Access. */
396#define TMS570_FLEX_RAY_TEIF_FAC BSP_BIT32(0)
397
398
399/*-------------------TMS570_FLEX_RAY_TEIRES-------------------*/
400/* field: RSTATE - Read Error Interrupt Generation (interrupt generation on VBUS read transfer errors). */
401#define TMS570_FLEX_RAY_TEIRES_RSTATE(val) BSP_FLD32(val,8, 10)
402#define TMS570_FLEX_RAY_TEIRES_RSTATE_GET(reg) BSP_FLD32GET(reg,8, 10)
403#define TMS570_FLEX_RAY_TEIRES_RSTATE_SET(reg,val) BSP_FLD32SET(reg, val,8, 10)
404
405/* field: WSTATE - Write Error Interrupt Generation (interrupt generation on VBUS write transfer errors). */
406#define TMS570_FLEX_RAY_TEIRES_WSTATE(val) BSP_FLD32(val,4, 6)
407#define TMS570_FLEX_RAY_TEIRES_WSTATE_GET(reg) BSP_FLD32GET(reg,4, 6)
408#define TMS570_FLEX_RAY_TEIRES_WSTATE_SET(reg,val) BSP_FLD32SET(reg, val,4, 6)
409
410/* field: TNRE - Transfer Not Ready Enable. */
411#define TMS570_FLEX_RAY_TEIRES_TNRE BSP_BIT32(1)
412
413/* field: FACE - Forbidden Access Enable. */
414#define TMS570_FLEX_RAY_TEIRES_FACE BSP_BIT32(0)
415
416
417/*-------------------TMS570_FLEX_RAY_TEIRER-------------------*/
418/* field: RSTATE - Read Error Interrupt Generation (interrupt generation on VBUS read transfer errors). */
419#define TMS570_FLEX_RAY_TEIRER_RSTATE(val) BSP_FLD32(val,8, 10)
420#define TMS570_FLEX_RAY_TEIRER_RSTATE_GET(reg) BSP_FLD32GET(reg,8, 10)
421#define TMS570_FLEX_RAY_TEIRER_RSTATE_SET(reg,val) BSP_FLD32SET(reg, val,8, 10)
422
423/* field: WSTATE - Write Error Interrupt Generation (interrupt generation on VBUS write transfer errors). */
424#define TMS570_FLEX_RAY_TEIRER_WSTATE(val) BSP_FLD32(val,4, 6)
425#define TMS570_FLEX_RAY_TEIRER_WSTATE_GET(reg) BSP_FLD32GET(reg,4, 6)
426#define TMS570_FLEX_RAY_TEIRER_WSTATE_SET(reg,val) BSP_FLD32SET(reg, val,4, 6)
427
428/* field: TNRE - Transfer Not Ready Enable. */
429#define TMS570_FLEX_RAY_TEIRER_TNRE BSP_BIT32(1)
430
431/* field: FACE - Forbidden Access Enable. */
432#define TMS570_FLEX_RAY_TEIRER_FACE BSP_BIT32(0)
433
434
435/*-------------------TMS570_FLEX_RAY_TTSMS1-------------------*/
436/* field: TTSMS1 - Trigger Transfer to System Memory Set 1. */
437/* Whole 32 bits */
438
439/*-------------------TMS570_FLEX_RAY_TTSMR1-------------------*/
440/* field: TTSMS1 - Trigger Transfer to System Memory Set 1. */
441/* Whole 32 bits */
442
443/*-------------------TMS570_FLEX_RAY_TTSMS2-------------------*/
444/* field: TTSMS1 - Trigger Transfer to System Memory Set 1. */
445/* Whole 32 bits */
446
447/*-------------------TMS570_FLEX_RAY_TTSMR2-------------------*/
448/* field: TTSMS1 - Trigger Transfer to System Memory Set 1. */
449/* Whole 32 bits */
450
451/*-------------------TMS570_FLEX_RAY_TTSMS3-------------------*/
452/* field: TTSMS1 - Trigger Transfer to System Memory Set 1. */
453/* Whole 32 bits */
454
455/*-------------------TMS570_FLEX_RAY_TTSMR3-------------------*/
456/* field: TTSMS1 - Trigger Transfer to System Memory Set 1. */
457/* Whole 32 bits */
458
459/*-------------------TMS570_FLEX_RAY_TTSMS4-------------------*/
460/* field: TTSMS1 - Trigger Transfer to System Memory Set 1. */
461/* Whole 32 bits */
462
463/*-------------------TMS570_FLEX_RAY_TTSMR4-------------------*/
464/* field: TTSMS1 - Trigger Transfer to System Memory Set 1. */
465/* Whole 32 bits */
466
467/*-------------------TMS570_FLEX_RAY_TTCCS1-------------------*/
468/* field: TTCCS1 - Trigger Transfer to Communication Controller Set 1. */
469/* Whole 32 bits */
470
471/*-------------------TMS570_FLEX_RAY_TTCCR1-------------------*/
472/* field: TTCCS1 - Trigger Transfer to Communication Controller Set 1. */
473/* Whole 32 bits */
474
475/*-------------------TMS570_FLEX_RAY_TTCCS2-------------------*/
476/* field: TTCCS1 - Trigger Transfer to Communication Controller Set 1. */
477/* Whole 32 bits */
478
479/*-------------------TMS570_FLEX_RAY_TTCCR2-------------------*/
480/* field: TTCCS1 - Trigger Transfer to Communication Controller Set 1. */
481/* Whole 32 bits */
482
483/*-------------------TMS570_FLEX_RAY_TTCCS3-------------------*/
484/* field: TTCCS1 - Trigger Transfer to Communication Controller Set 1. */
485/* Whole 32 bits */
486
487/*-------------------TMS570_FLEX_RAY_TTCCR3-------------------*/
488/* field: TTCCS1 - Trigger Transfer to Communication Controller Set 1. */
489/* Whole 32 bits */
490
491/*-------------------TMS570_FLEX_RAY_TTCCS4-------------------*/
492/* field: TTCCS1 - Trigger Transfer to Communication Controller Set 1. */
493/* Whole 32 bits */
494
495/*-------------------TMS570_FLEX_RAY_TTCCR4-------------------*/
496/* field: TTCCS1 - Trigger Transfer to Communication Controller Set 1. */
497/* Whole 32 bits */
498
499/*------------------TMS570_FLEX_RAY_ETESMS1------------------*/
500/* field: ETESMS1 - Enable Transfer on Event to System Memory Set 1. */
501/* Whole 32 bits */
502
503/*------------------TMS570_FLEX_RAY_ETESMR1------------------*/
504/* field: ETESMS1 - Enable Transfer on Event to System Memory Set 1. */
505/* Whole 32 bits */
506
507/*------------------TMS570_FLEX_RAY_ETESMS2------------------*/
508/* field: ETESMS1 - Enable Transfer on Event to System Memory Set 1. */
509/* Whole 32 bits */
510
511/*------------------TMS570_FLEX_RAY_ETESMR2------------------*/
512/* field: ETESMS1 - message buffers 0 to 31. */
513/* Whole 32 bits */
514
515/*------------------TMS570_FLEX_RAY_ETESMS3------------------*/
516/* field: ETESMS1 - Enable Transfer on Event to System Memory Set 1. */
517/* Whole 32 bits */
518
519/*------------------TMS570_FLEX_RAY_ETESMR3------------------*/
520/* field: ETESMS1 - Enable Transfer on Event to System Memory Set 1. */
521/* Whole 32 bits */
522
523/*------------------TMS570_FLEX_RAY_ETESMS4------------------*/
524/* field: ETESMS1 - Enable Transfer on Event to System Memory Set 1. */
525/* Whole 32 bits */
526
527/*------------------TMS570_FLEX_RAY_ETESMR4------------------*/
528/* field: ETESMS1 - message buffers 0 to 31. */
529/* Whole 32 bits */
530
531/*-------------------TMS570_FLEX_RAY_CESMS1-------------------*/
532/* field: CESMS1 - Clear on Event to System Memory Set 1. */
533/* Whole 32 bits */
534
535/*-------------------TMS570_FLEX_RAY_CESMR1-------------------*/
536/* field: CESMS1 - Clear on Event to System Memory Set 1. */
537/* Whole 32 bits */
538
539/*-------------------TMS570_FLEX_RAY_CESMS2-------------------*/
540/* field: CESMS1 - Clear on Event to System Memory Set 1. */
541/* Whole 32 bits */
542
543/*-------------------TMS570_FLEX_RAY_CESMR2-------------------*/
544/* field: CESMS1 - Clear on Event to System Memory Set 1. */
545/* Whole 32 bits */
546
547/*-------------------TMS570_FLEX_RAY_CESMS3-------------------*/
548/* field: CESMS1 - Clear on Event to System Memory Set 1. */
549/* Whole 32 bits */
550
551/*-------------------TMS570_FLEX_RAY_CESMR3-------------------*/
552/* field: CESMS1 - CESMS1(31-0) */
553/* Whole 32 bits */
554
555/*-------------------TMS570_FLEX_RAY_CESMS4-------------------*/
556/* field: CESMS1 - Clear on Event to System Memory Set 1. */
557/* Whole 32 bits */
558
559/*-------------------TMS570_FLEX_RAY_CESMR4-------------------*/
560/* field: CESMS1 - Clear on Event to System Memory Set 1. */
561/* Whole 32 bits */
562
563/*------------------TMS570_FLEX_RAY_TSMIES1------------------*/
564/* field: TTSMIES1 - Transfer to System Memory Interrupt Enable Set 1. */
565/* Whole 32 bits */
566
567/*------------------TMS570_FLEX_RAY_TSMIER1------------------*/
568/* field: TTSMIES1 - Transfer to System Memory Interrupt Enable Set 1. */
569/* Whole 32 bits */
570
571/*------------------TMS570_FLEX_RAY_TSMIES2------------------*/
572/* field: TTSMIES1 - Transfer to System Memory Interrupt Enable Set 1. */
573/* Whole 32 bits */
574
575/*------------------TMS570_FLEX_RAY_TSMIER2------------------*/
576/* field: TTSMIES1 - Transfer to System Memory Interrupt Enable Set 1. */
577/* Whole 32 bits */
578
579/*------------------TMS570_FLEX_RAY_TSMIES3------------------*/
580/* field: TTSMIES1 - Transfer to System Memory Interrupt Enable Set 1. */
581/* Whole 32 bits */
582
583/*------------------TMS570_FLEX_RAY_TSMIER3------------------*/
584/* field: TTSMIES1 - Transfer to System Memory Interrupt Enable Set 1. */
585/* Whole 32 bits */
586
587/*------------------TMS570_FLEX_RAY_TSMIES4------------------*/
588/* field: TTSMIES1 - Transfer to System Memory Interrupt Enable Set 1. */
589/* Whole 32 bits */
590
591/*------------------TMS570_FLEX_RAY_TSMIER4------------------*/
592/* field: TTSMIES1 - Transfer to System Memory Interrupt Enable Set 1. */
593/* Whole 32 bits */
594
595/*------------------TMS570_FLEX_RAY_TCCIES1------------------*/
596/* field: TCCIES1 - Transfer to Communication Controller Interrupt Enable Set 1. */
597/* Whole 32 bits */
598
599/*------------------TMS570_FLEX_RAY_TCCIER1------------------*/
600/* field: TCCIES1 - Transfer to Communication Controller Interrupt Enable Set 1. */
601/* Whole 32 bits */
602
603/*------------------TMS570_FLEX_RAY_TCCIES2------------------*/
604/* field: TCCIES1 - Transfer to Communication Controller Interrupt Enable Set 1. */
605/* Whole 32 bits */
606
607/*------------------TMS570_FLEX_RAY_TCCIER2------------------*/
608/* field: TCCIES1 - to message buffers 0 to 31. */
609/* Whole 32 bits */
610
611/*------------------TMS570_FLEX_RAY_TCCIES3------------------*/
612/* field: TCCIES1 - Transfer to Communication Controller Interrupt Enable Set 1. */
613/* Whole 32 bits */
614
615/*------------------TMS570_FLEX_RAY_TCCIER3------------------*/
616/* field: TCCIES1 - Transfer to Communication Controller Interrupt Enable Set 1. */
617/* Whole 32 bits */
618
619/*------------------TMS570_FLEX_RAY_TCCIES4------------------*/
620/* field: TCCIES1 - Transfer to Communication Controller Interrupt Enable Set 1. */
621/* Whole 32 bits */
622
623/*------------------TMS570_FLEX_RAY_TCCIER4------------------*/
624/* field: TCCIES1 - Transfer to Communication Controller Interrupt Enable Set 1. */
625/* Whole 32 bits */
626
627
628#endif /* LIBBSP_ARM_TMS570_FLEX_RAY */
This header file provides utility macros for BSPs.
Definition: reg_flex_ray.h:54