Hardware Libraries  20.1
Arria 10 SoC Hardware Manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
alt_fpgamgrdata.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_FPGAMGRDATA */
34 
35 #ifndef __ALT_SOCAL_FPGAMGRDATA_H__
36 #define __ALT_SOCAL_FPGAMGRDATA_H__
37 
38 #ifndef __ASSEMBLY__
39 #ifdef __cplusplus
40 #include <cstdint>
41 extern "C"
42 {
43 #else /* __cplusplus */
44 #include <stdint.h>
45 #endif /* __cplusplus */
46 #endif /* __ASSEMBLY__ */
47 
48 /*
49  * Component : ALT_FPGAMGRDATA
50  *
51  */
52 /*
53  * Register : Write Data Register - img_data_w
54  *
55  * Used to send configuration image to FPGA...
56  *
57  * Register Layout
58  *
59  * Bits | Access | Reset | Description
60  * :-------|:-------|:------|:------------
61  * [31:0] | RW | 0x0 | Empty
62  *
63  */
64 /*
65  * Field : Empty - fld
66  *
67  * Placeholder
68  *
69  * Field Access Macros:
70  *
71  */
72 /* The Least Significant Bit (LSB) position of the ALT_FPGAMGRDATA_DATA_FLD register field. */
73 #define ALT_FPGAMGRDATA_DATA_FLD_LSB 0
74 /* The Most Significant Bit (MSB) position of the ALT_FPGAMGRDATA_DATA_FLD register field. */
75 #define ALT_FPGAMGRDATA_DATA_FLD_MSB 31
76 /* The width in bits of the ALT_FPGAMGRDATA_DATA_FLD register field. */
77 #define ALT_FPGAMGRDATA_DATA_FLD_WIDTH 32
78 /* The mask used to set the ALT_FPGAMGRDATA_DATA_FLD register field value. */
79 #define ALT_FPGAMGRDATA_DATA_FLD_SET_MSK 0xffffffff
80 /* The mask used to clear the ALT_FPGAMGRDATA_DATA_FLD register field value. */
81 #define ALT_FPGAMGRDATA_DATA_FLD_CLR_MSK 0x00000000
82 /* The reset value of the ALT_FPGAMGRDATA_DATA_FLD register field. */
83 #define ALT_FPGAMGRDATA_DATA_FLD_RESET 0x0
84 /* Extracts the ALT_FPGAMGRDATA_DATA_FLD field value from a register. */
85 #define ALT_FPGAMGRDATA_DATA_FLD_GET(value) (((value) & 0xffffffff) >> 0)
86 /* Produces a ALT_FPGAMGRDATA_DATA_FLD register field value suitable for setting the register. */
87 #define ALT_FPGAMGRDATA_DATA_FLD_SET(value) (((value) << 0) & 0xffffffff)
88 
89 #ifndef __ASSEMBLY__
90 /*
91  * WARNING: The C register and register group struct declarations are provided for
92  * convenience and illustrative purposes. They should, however, be used with
93  * caution as the C language standard provides no guarantees about the alignment or
94  * atomicity of device memory accesses. The recommended practice for writing
95  * hardware drivers is to use the SoCAL access macros and alt_read_word() and
96  * alt_write_word() functions.
97  *
98  * The struct declaration for register ALT_FPGAMGRDATA_DATA.
99  */
100 struct ALT_FPGAMGRDATA_DATA_s
101 {
102  uint32_t fld : 32; /* Empty */
103 };
104 
105 /* The typedef declaration for register ALT_FPGAMGRDATA_DATA. */
106 typedef volatile struct ALT_FPGAMGRDATA_DATA_s ALT_FPGAMGRDATA_DATA_t;
107 #endif /* __ASSEMBLY__ */
108 
109 /* The reset value of the ALT_FPGAMGRDATA_DATA register. */
110 #define ALT_FPGAMGRDATA_DATA_RESET 0x00000000
111 /* The byte offset of the ALT_FPGAMGRDATA_DATA register from the beginning of the component. */
112 #define ALT_FPGAMGRDATA_DATA_OFST 0x0
113 
114 #ifndef __ASSEMBLY__
115 /*
116  * WARNING: The C register and register group struct declarations are provided for
117  * convenience and illustrative purposes. They should, however, be used with
118  * caution as the C language standard provides no guarantees about the alignment or
119  * atomicity of device memory accesses. The recommended practice for writing
120  * hardware drivers is to use the SoCAL access macros and alt_read_word() and
121  * alt_write_word() functions.
122  *
123  * The struct declaration for register group ALT_FPGAMGRDATA.
124  */
125 struct ALT_FPGAMGRDATA_s
126 {
127  ALT_FPGAMGRDATA_DATA_t img_data_w; /* ALT_FPGAMGRDATA_DATA */
128  volatile uint32_t _pad_0x4_0x400[255]; /* *UNDEFINED* */
129 };
130 
131 /* The typedef declaration for register group ALT_FPGAMGRDATA. */
132 typedef volatile struct ALT_FPGAMGRDATA_s ALT_FPGAMGRDATA_t;
133 /* The struct declaration for the raw register contents of register group ALT_FPGAMGRDATA. */
134 struct ALT_FPGAMGRDATA_raw_s
135 {
136  volatile uint32_t img_data_w; /* ALT_FPGAMGRDATA_DATA */
137  uint32_t _pad_0x4_0x400[255]; /* *UNDEFINED* */
138 };
139 
140 /* The typedef declaration for the raw register contents of register group ALT_FPGAMGRDATA. */
141 typedef volatile struct ALT_FPGAMGRDATA_raw_s ALT_FPGAMGRDATA_raw_t;
142 #endif /* __ASSEMBLY__ */
143 
144 
145 #ifdef __cplusplus
146 }
147 #endif /* __cplusplus */
148 #endif /* __ALT_SOCAL_FPGAMGRDATA_H__ */
149