Altera SoCAL  20.1
The Altera SoC Abstraction Layer (SoCAL) API Reference Manual
 All Groups
alt_mpuscu.h
1 /***********************************************************************************
2 * *
3 * Copyright 2013-2015 Altera Corporation. All Rights Reserved. *
4 * *
5 * Redistribution and use in source and binary forms, with or without *
6 * modification, are permitted provided that the following conditions are met: *
7 * *
8 * 1. Redistributions of source code must retain the above copyright notice, *
9 * this list of conditions and the following disclaimer. *
10 * *
11 * 2. Redistributions in binary form must reproduce the above copyright notice, *
12 * this list of conditions and the following disclaimer in the documentation *
13 * and/or other materials provided with the distribution. *
14 * *
15 * 3. Neither the name of the copyright holder nor the names of its contributors *
16 * may be used to endorse or promote products derived from this software without *
17 * specific prior written permission. *
18 * *
19 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" *
20 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE *
21 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE *
22 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE *
23 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR *
24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF *
25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS *
26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN *
27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) *
28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE *
29 * POSSIBILITY OF SUCH DAMAGE. *
30 * *
31 ***********************************************************************************/
32 
33 /* Altera - ALT_MPUSCU */
34 
35 #ifndef __ALTERA_ALT_MPUSCU_H__
36 #define __ALTERA_ALT_MPUSCU_H__
37 
38 #ifdef __cplusplus
39 extern "C"
40 {
41 #endif /* __cplusplus */
42 
43 /*
44  * Component : MPU SCU Module Address Space - ALT_MPUSCU
45  * MPU SCU Module Address Space
46  *
47  * Address space allocated to the MPU SCU. For detailed information about the use
48  * of this address space,
49  * [url=http://infocenter.arm.com/help/topic/com.arm.doc.ddi0407f/index.html]click
50  * here[/url] to access the ARM documentation for the Cortex-A9 MPCore.
51  *
52  */
53 /*
54  * Register : Empty - reg
55  *
56  * Placeholder
57  *
58  * Register Layout
59  *
60  * Bits | Access | Reset | Description
61  * :-------|:-------|:--------|:------------
62  * [31:0] | RW | Unknown | Empty
63  *
64  */
65 /*
66  * Field : Empty - fld
67  *
68  * Placeholder
69  *
70  * Field Access Macros:
71  *
72  */
73 /* The Least Significant Bit (LSB) position of the ALT_MPUSCU_REG_FLD register field. */
74 #define ALT_MPUSCU_REG_FLD_LSB 0
75 /* The Most Significant Bit (MSB) position of the ALT_MPUSCU_REG_FLD register field. */
76 #define ALT_MPUSCU_REG_FLD_MSB 31
77 /* The width in bits of the ALT_MPUSCU_REG_FLD register field. */
78 #define ALT_MPUSCU_REG_FLD_WIDTH 32
79 /* The mask used to set the ALT_MPUSCU_REG_FLD register field value. */
80 #define ALT_MPUSCU_REG_FLD_SET_MSK 0xffffffff
81 /* The mask used to clear the ALT_MPUSCU_REG_FLD register field value. */
82 #define ALT_MPUSCU_REG_FLD_CLR_MSK 0x00000000
83 /* The reset value of the ALT_MPUSCU_REG_FLD register field is UNKNOWN. */
84 #define ALT_MPUSCU_REG_FLD_RESET 0x0
85 /* Extracts the ALT_MPUSCU_REG_FLD field value from a register. */
86 #define ALT_MPUSCU_REG_FLD_GET(value) (((value) & 0xffffffff) >> 0)
87 /* Produces a ALT_MPUSCU_REG_FLD register field value suitable for setting the register. */
88 #define ALT_MPUSCU_REG_FLD_SET(value) (((value) << 0) & 0xffffffff)
89 
90 #ifndef __ASSEMBLY__
91 /*
92  * WARNING: The C register and register group struct declarations are provided for
93  * convenience and illustrative purposes. They should, however, be used with
94  * caution as the C language standard provides no guarantees about the alignment or
95  * atomicity of device memory accesses. The recommended practice for writing
96  * hardware drivers is to use the SoCAL access macros and alt_read_word() and
97  * alt_write_word() functions.
98  *
99  * The struct declaration for register ALT_MPUSCU_REG.
100  */
101 struct ALT_MPUSCU_REG_s
102 {
103  uint32_t fld : 32; /* Empty */
104 };
105 
106 /* The typedef declaration for register ALT_MPUSCU_REG. */
107 typedef volatile struct ALT_MPUSCU_REG_s ALT_MPUSCU_REG_t;
108 #endif /* __ASSEMBLY__ */
109 
110 /* The byte offset of the ALT_MPUSCU_REG register from the beginning of the component. */
111 #define ALT_MPUSCU_REG_OFST 0x0
112 
113 #ifndef __ASSEMBLY__
114 /*
115  * WARNING: The C register and register group struct declarations are provided for
116  * convenience and illustrative purposes. They should, however, be used with
117  * caution as the C language standard provides no guarantees about the alignment or
118  * atomicity of device memory accesses. The recommended practice for writing
119  * hardware drivers is to use the SoCAL access macros and alt_read_word() and
120  * alt_write_word() functions.
121  *
122  * The struct declaration for register group ALT_MPUSCU.
123  */
124 struct ALT_MPUSCU_s
125 {
126  ALT_MPUSCU_REG_t reg; /* ALT_MPUSCU_REG */
127 };
128 
129 /* The typedef declaration for register group ALT_MPUSCU. */
130 typedef volatile struct ALT_MPUSCU_s ALT_MPUSCU_t;
131 /* The struct declaration for the raw register contents of register group ALT_MPUSCU. */
132 struct ALT_MPUSCU_raw_s
133 {
134  volatile uint32_t reg; /* ALT_MPUSCU_REG */
135 };
136 
137 /* The typedef declaration for the raw register contents of register group ALT_MPUSCU. */
138 typedef volatile struct ALT_MPUSCU_raw_s ALT_MPUSCU_raw_t;
139 #endif /* __ASSEMBLY__ */
140 
141 
142 #ifdef __cplusplus
143 }
144 #endif /* __cplusplus */
145 #endif /* __ALTERA_ALT_MPUSCU_H__ */
146