RTEMS 6.1-rc4
Loading...
Searching...
No Matches
reg_pcr.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 PCR.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_PCR
50#define LIBBSP_ARM_TMS570_PCR
51
52#include <bsp/utility.h>
53
54typedef struct{
55 uint32_t PMPROTSET0; /*Peripheral Memory Protection Set Register 0*/
56 uint32_t PMPROTSET1; /*Peripheral Memory Protection Set Register 1*/
57 uint8_t reserved1 [8];
58 uint32_t PMPROTCLR0; /*Peripheral Memory Protection Clear Register 0*/
59 uint32_t PMPROTCLR1; /*Peripheral Memory Protection Clear Register 1*/
60 uint8_t reserved2 [8];
61 uint32_t PPROTSET0; /*Peripheral Protection Set Register 0*/
62 uint32_t PPROTSET1; /*Peripheral Protection Set Register 1*/
63 uint32_t PPROTSET2; /*Peripheral Protection Set Register 2*/
64 uint32_t PPROTSET3; /*Peripheral Protection Set Register 3*/
65 uint8_t reserved3 [16];
66 uint32_t PPROTCLR0; /*Peripheral Protection Clear Register 0*/
67 uint32_t PPROTCLR1; /*Peripheral Protection Clear Register 1*/
68 uint32_t PPROTCLR2; /*Peripheral Protection Clear Register 2*/
69 uint32_t PPROTCLR3; /*Peripheral Protection Clear Register 3*/
70 uint8_t reserved4 [16];
71 uint32_t PCSPWRDWNSET0; /*Peripheral Memory Power-Down Set Register 0*/
72 uint32_t PCSPWRDWNSET1; /*Peripheral Memory Power-Down Set Register 1*/
73 uint8_t reserved5 [8];
74 uint32_t PCSPWRDWNCLR0; /*Peripheral Memory Power-Down Clear Register 0*/
75 uint32_t PCSPWRDWNCLR1; /*Peripheral Memory Power-Down Clear Register 1*/
76 uint8_t reserved6 [8];
77 uint32_t PSPWRDWNSET0; /*Peripheral Power-Down Set Register 0*/
78 uint32_t PSPWRDWNSET1; /*Peripheral Power-Down Set Register 1*/
79 uint32_t PSPWRDWNSET2; /*Peripheral Power-Down Set Register 2*/
80 uint32_t PSPWRDWNSET3; /*Peripheral Power-Down Set Register 3*/
81 uint8_t reserved7 [16];
82 uint32_t PSPWRDWNCLR0; /*Peripheral Power-Down Clear Register 0*/
83 uint32_t PSPWRDWNCLR1; /*Peripheral Power-Down Clear Register 1*/
84 uint32_t PSPWRDWNCLR2; /*Peripheral Power-Down Clear Register 2*/
85 uint32_t PSPWRDWNCLR3; /*Peripheral Power-Down Clear Register 3*/
87
88
89/*-------------------TMS570_PCR_PMPROTSET0-------------------*/
90/* field: PCSPROTSET - Peripheral memory frame protection set. */
91/* Whole 32 bits */
92
93/*-------------------TMS570_PCR_PMPROTSET1-------------------*/
94/* field: PCSPROTSET - Peripheral memory frame protection set. */
95/* Whole 32 bits */
96
97/*-------------------TMS570_PCR_PMPROTCLR0-------------------*/
98/* field: PCSPROTCLR - Peripheral memory frame protection clear. */
99/* Whole 32 bits */
100
101/*-------------------TMS570_PCR_PMPROTCLR1-------------------*/
102/* field: PCSPROTCLR - Peripheral memory frame protection clear. */
103/* Whole 32 bits */
104
105/*--------------------TMS570_PCR_PPROTSETx--------------------*/
106/* field: PROTSET - Peripheral select quadrant protection set. */
107/* Whole 32 bits */
108
109/*--------------------TMS570_PCR_PPROTCLRx--------------------*/
110/* field: PROTCLR - Peripheral select quadrant protection clear. */
111/* Whole 32 bits */
112
113/*------------------TMS570_PCR_PCSPWRDWNSETx------------------*/
114/* field: PWRDNSET - Peripheral memory clock power-down set. */
115/* Whole 32 bits */
116
117/*------------------TMS570_PCR_PCSPWRDWNCLRx------------------*/
118/* field: PWRDNCLR - Peripheral memory clock power-down clear. */
119/* Whole 32 bits */
120
121/*------------------TMS570_PCR_PSPWRDWNSETx------------------*/
122/* field: PWRDWNSET - Peripheral select quadrant clock power-down set. */
123/* Whole 32 bits */
124
125/*------------------TMS570_PCR_PSPWRDWNCLRx------------------*/
126/* field: PWRDWNCLR - Peripheral select quadrant clock power-down clear. */
127/* Whole 32 bits */
128
129
130#endif /* LIBBSP_ARM_TMS570_PCR */
This header file provides utility macros for BSPs.
Definition: reg_pcr.h:54