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