1 /*
2  * Copyright 1997-2016 Freescale Semiconductor, Inc.
3  * Copyright 2016-2023 NXP
4  *
5  * SPDX-License-Identifier: BSD-3-Clause
6  */
7 
8 /*!
9  * @file S32Z2_RESULT_DMA_MP.h
10  * @version 2.1
11  * @date 2023-07-20
12  * @brief Peripheral Access Layer for S32Z2_RESULT_DMA_MP
13  *
14  * This file contains register definitions and macros for easy access to their
15  * bit fields.
16  *
17  * This file assumes LITTLE endian system.
18  */
19 
20 /**
21 * @page misra_violations MISRA-C:2012 violations
22 *
23 * @section [global]
24 * Violates MISRA 2012 Advisory Rule 2.3, local typedef not referenced
25 * The SoC header defines typedef for all modules.
26 *
27 * @section [global]
28 * Violates MISRA 2012 Advisory Rule 2.5, local macro not referenced
29 * The SoC header defines macros for all modules and registers.
30 *
31 * @section [global]
32 * Violates MISRA 2012 Advisory Directive 4.9, Function-like macro
33 * These are generated macros used for accessing the bit-fields from registers.
34 *
35 * @section [global]
36 * Violates MISRA 2012 Required Rule 5.1, identifier clash
37 * The supported compilers use more than 31 significant characters for identifiers.
38 *
39 * @section [global]
40 * Violates MISRA 2012 Required Rule 5.2, identifier clash
41 * The supported compilers use more than 31 significant characters for identifiers.
42 *
43 * @section [global]
44 * Violates MISRA 2012 Required Rule 5.4, identifier clash
45 * The supported compilers use more than 31 significant characters for identifiers.
46 *
47 * @section [global]
48 * Violates MISRA 2012 Required Rule 5.5, identifier clash
49 * The supported compilers use more than 31 significant characters for identifiers.
50 *
51 * @section [global]
52 * Violates MISRA 2012 Required Rule 21.1, defined macro '__I' is reserved to the compiler
53 * This type qualifier is needed to ensure correct I/O access and addressing.
54 */
55 
56 /* Prevention from multiple including the same memory map */
57 #if !defined(S32Z2_RESULT_DMA_MP_H_)  /* Check if memory map has not been already included */
58 #define S32Z2_RESULT_DMA_MP_H_
59 
60 #include "S32Z2_COMMON.h"
61 
62 /* ----------------------------------------------------------------------------
63    -- RESULT_DMA_MP Peripheral Access Layer
64    ---------------------------------------------------------------------------- */
65 
66 /*!
67  * @addtogroup RESULT_DMA_MP_Peripheral_Access_Layer RESULT_DMA_MP Peripheral Access Layer
68  * @{
69  */
70 
71 /** RESULT_DMA_MP - Size of Registers Arrays */
72 #define RESULT_DMA_MP_MP_GRPRI_COUNT              24u
73 
74 /** RESULT_DMA_MP - Register Layout Typedef */
75 typedef struct {
76   __IO uint32_t CSR;                               /**< Management Page Control, offset: 0x0 */
77   __I  uint32_t ES;                                /**< Management Page Error Status, offset: 0x4 */
78   __I  uint32_t INT;                               /**< Management Page Interrupt Request Status, offset: 0x8 */
79   __I  uint32_t HRS;                               /**< Management Page Hardware Request Status, offset: 0xC */
80   uint8_t RESERVED_0[240];
81   __IO uint32_t CH_GRPRI[RESULT_DMA_MP_MP_GRPRI_COUNT]; /**< Channel Arbitration Group, array offset: 0x100, array step: 0x4 */
82 } RESULT_DMA_MP_Type, *RESULT_DMA_MP_MemMapPtr;
83 
84 /** Number of instances of the RESULT_DMA_MP module. */
85 #define RESULT_DMA_MP_INSTANCE_COUNT             (1u)
86 
87 /* RESULT_DMA_MP - Peripheral instance base addresses */
88 /** Peripheral AES__RESULT_DMA_MP base address */
89 #define IP_AES__RESULT_DMA_MP_BASE               (0x47250000u)
90 /** Peripheral AES__RESULT_DMA_MP base pointer */
91 #define IP_AES__RESULT_DMA_MP                    ((RESULT_DMA_MP_Type *)IP_AES__RESULT_DMA_MP_BASE)
92 /** Array initializer of RESULT_DMA_MP peripheral base addresses */
93 #define IP_RESULT_DMA_MP_BASE_ADDRS              { IP_AES__RESULT_DMA_MP_BASE }
94 /** Array initializer of RESULT_DMA_MP peripheral base pointers */
95 #define IP_RESULT_DMA_MP_BASE_PTRS               { IP_AES__RESULT_DMA_MP }
96 
97 /* ----------------------------------------------------------------------------
98    -- RESULT_DMA_MP Register Masks
99    ---------------------------------------------------------------------------- */
100 
101 /*!
102  * @addtogroup RESULT_DMA_MP_Register_Masks RESULT_DMA_MP Register Masks
103  * @{
104  */
105 
106 /*! @name CSR - Management Page Control */
107 /*! @{ */
108 
109 #define RESULT_DMA_MP_CSR_EDBG_MASK              (0x2U)
110 #define RESULT_DMA_MP_CSR_EDBG_SHIFT             (1U)
111 #define RESULT_DMA_MP_CSR_EDBG_WIDTH             (1U)
112 #define RESULT_DMA_MP_CSR_EDBG(x)                (((uint32_t)(((uint32_t)(x)) << RESULT_DMA_MP_CSR_EDBG_SHIFT)) & RESULT_DMA_MP_CSR_EDBG_MASK)
113 
114 #define RESULT_DMA_MP_CSR_ERCA_MASK              (0x4U)
115 #define RESULT_DMA_MP_CSR_ERCA_SHIFT             (2U)
116 #define RESULT_DMA_MP_CSR_ERCA_WIDTH             (1U)
117 #define RESULT_DMA_MP_CSR_ERCA(x)                (((uint32_t)(((uint32_t)(x)) << RESULT_DMA_MP_CSR_ERCA_SHIFT)) & RESULT_DMA_MP_CSR_ERCA_MASK)
118 
119 #define RESULT_DMA_MP_CSR_HAE_MASK               (0x10U)
120 #define RESULT_DMA_MP_CSR_HAE_SHIFT              (4U)
121 #define RESULT_DMA_MP_CSR_HAE_WIDTH              (1U)
122 #define RESULT_DMA_MP_CSR_HAE(x)                 (((uint32_t)(((uint32_t)(x)) << RESULT_DMA_MP_CSR_HAE_SHIFT)) & RESULT_DMA_MP_CSR_HAE_MASK)
123 
124 #define RESULT_DMA_MP_CSR_HALT_MASK              (0x20U)
125 #define RESULT_DMA_MP_CSR_HALT_SHIFT             (5U)
126 #define RESULT_DMA_MP_CSR_HALT_WIDTH             (1U)
127 #define RESULT_DMA_MP_CSR_HALT(x)                (((uint32_t)(((uint32_t)(x)) << RESULT_DMA_MP_CSR_HALT_SHIFT)) & RESULT_DMA_MP_CSR_HALT_MASK)
128 
129 #define RESULT_DMA_MP_CSR_GCLC_MASK              (0x40U)
130 #define RESULT_DMA_MP_CSR_GCLC_SHIFT             (6U)
131 #define RESULT_DMA_MP_CSR_GCLC_WIDTH             (1U)
132 #define RESULT_DMA_MP_CSR_GCLC(x)                (((uint32_t)(((uint32_t)(x)) << RESULT_DMA_MP_CSR_GCLC_SHIFT)) & RESULT_DMA_MP_CSR_GCLC_MASK)
133 
134 #define RESULT_DMA_MP_CSR_GMRC_MASK              (0x80U)
135 #define RESULT_DMA_MP_CSR_GMRC_SHIFT             (7U)
136 #define RESULT_DMA_MP_CSR_GMRC_WIDTH             (1U)
137 #define RESULT_DMA_MP_CSR_GMRC(x)                (((uint32_t)(((uint32_t)(x)) << RESULT_DMA_MP_CSR_GMRC_SHIFT)) & RESULT_DMA_MP_CSR_GMRC_MASK)
138 
139 #define RESULT_DMA_MP_CSR_ECX_MASK               (0x100U)
140 #define RESULT_DMA_MP_CSR_ECX_SHIFT              (8U)
141 #define RESULT_DMA_MP_CSR_ECX_WIDTH              (1U)
142 #define RESULT_DMA_MP_CSR_ECX(x)                 (((uint32_t)(((uint32_t)(x)) << RESULT_DMA_MP_CSR_ECX_SHIFT)) & RESULT_DMA_MP_CSR_ECX_MASK)
143 
144 #define RESULT_DMA_MP_CSR_CX_MASK                (0x200U)
145 #define RESULT_DMA_MP_CSR_CX_SHIFT               (9U)
146 #define RESULT_DMA_MP_CSR_CX_WIDTH               (1U)
147 #define RESULT_DMA_MP_CSR_CX(x)                  (((uint32_t)(((uint32_t)(x)) << RESULT_DMA_MP_CSR_CX_SHIFT)) & RESULT_DMA_MP_CSR_CX_MASK)
148 
149 #define RESULT_DMA_MP_CSR_ACTIVE_ID_MASK         (0x1F000000U)
150 #define RESULT_DMA_MP_CSR_ACTIVE_ID_SHIFT        (24U)
151 #define RESULT_DMA_MP_CSR_ACTIVE_ID_WIDTH        (5U)
152 #define RESULT_DMA_MP_CSR_ACTIVE_ID(x)           (((uint32_t)(((uint32_t)(x)) << RESULT_DMA_MP_CSR_ACTIVE_ID_SHIFT)) & RESULT_DMA_MP_CSR_ACTIVE_ID_MASK)
153 
154 #define RESULT_DMA_MP_CSR_ACTIVE_MASK            (0x80000000U)
155 #define RESULT_DMA_MP_CSR_ACTIVE_SHIFT           (31U)
156 #define RESULT_DMA_MP_CSR_ACTIVE_WIDTH           (1U)
157 #define RESULT_DMA_MP_CSR_ACTIVE(x)              (((uint32_t)(((uint32_t)(x)) << RESULT_DMA_MP_CSR_ACTIVE_SHIFT)) & RESULT_DMA_MP_CSR_ACTIVE_MASK)
158 /*! @} */
159 
160 /*! @name ES - Management Page Error Status */
161 /*! @{ */
162 
163 #define RESULT_DMA_MP_ES_DBE_MASK                (0x1U)
164 #define RESULT_DMA_MP_ES_DBE_SHIFT               (0U)
165 #define RESULT_DMA_MP_ES_DBE_WIDTH               (1U)
166 #define RESULT_DMA_MP_ES_DBE(x)                  (((uint32_t)(((uint32_t)(x)) << RESULT_DMA_MP_ES_DBE_SHIFT)) & RESULT_DMA_MP_ES_DBE_MASK)
167 
168 #define RESULT_DMA_MP_ES_SBE_MASK                (0x2U)
169 #define RESULT_DMA_MP_ES_SBE_SHIFT               (1U)
170 #define RESULT_DMA_MP_ES_SBE_WIDTH               (1U)
171 #define RESULT_DMA_MP_ES_SBE(x)                  (((uint32_t)(((uint32_t)(x)) << RESULT_DMA_MP_ES_SBE_SHIFT)) & RESULT_DMA_MP_ES_SBE_MASK)
172 
173 #define RESULT_DMA_MP_ES_SGE_MASK                (0x4U)
174 #define RESULT_DMA_MP_ES_SGE_SHIFT               (2U)
175 #define RESULT_DMA_MP_ES_SGE_WIDTH               (1U)
176 #define RESULT_DMA_MP_ES_SGE(x)                  (((uint32_t)(((uint32_t)(x)) << RESULT_DMA_MP_ES_SGE_SHIFT)) & RESULT_DMA_MP_ES_SGE_MASK)
177 
178 #define RESULT_DMA_MP_ES_NCE_MASK                (0x8U)
179 #define RESULT_DMA_MP_ES_NCE_SHIFT               (3U)
180 #define RESULT_DMA_MP_ES_NCE_WIDTH               (1U)
181 #define RESULT_DMA_MP_ES_NCE(x)                  (((uint32_t)(((uint32_t)(x)) << RESULT_DMA_MP_ES_NCE_SHIFT)) & RESULT_DMA_MP_ES_NCE_MASK)
182 
183 #define RESULT_DMA_MP_ES_DOE_MASK                (0x10U)
184 #define RESULT_DMA_MP_ES_DOE_SHIFT               (4U)
185 #define RESULT_DMA_MP_ES_DOE_WIDTH               (1U)
186 #define RESULT_DMA_MP_ES_DOE(x)                  (((uint32_t)(((uint32_t)(x)) << RESULT_DMA_MP_ES_DOE_SHIFT)) & RESULT_DMA_MP_ES_DOE_MASK)
187 
188 #define RESULT_DMA_MP_ES_DAE_MASK                (0x20U)
189 #define RESULT_DMA_MP_ES_DAE_SHIFT               (5U)
190 #define RESULT_DMA_MP_ES_DAE_WIDTH               (1U)
191 #define RESULT_DMA_MP_ES_DAE(x)                  (((uint32_t)(((uint32_t)(x)) << RESULT_DMA_MP_ES_DAE_SHIFT)) & RESULT_DMA_MP_ES_DAE_MASK)
192 
193 #define RESULT_DMA_MP_ES_SOE_MASK                (0x40U)
194 #define RESULT_DMA_MP_ES_SOE_SHIFT               (6U)
195 #define RESULT_DMA_MP_ES_SOE_WIDTH               (1U)
196 #define RESULT_DMA_MP_ES_SOE(x)                  (((uint32_t)(((uint32_t)(x)) << RESULT_DMA_MP_ES_SOE_SHIFT)) & RESULT_DMA_MP_ES_SOE_MASK)
197 
198 #define RESULT_DMA_MP_ES_SAE_MASK                (0x80U)
199 #define RESULT_DMA_MP_ES_SAE_SHIFT               (7U)
200 #define RESULT_DMA_MP_ES_SAE_WIDTH               (1U)
201 #define RESULT_DMA_MP_ES_SAE(x)                  (((uint32_t)(((uint32_t)(x)) << RESULT_DMA_MP_ES_SAE_SHIFT)) & RESULT_DMA_MP_ES_SAE_MASK)
202 
203 #define RESULT_DMA_MP_ES_ECX_MASK                (0x100U)
204 #define RESULT_DMA_MP_ES_ECX_SHIFT               (8U)
205 #define RESULT_DMA_MP_ES_ECX_WIDTH               (1U)
206 #define RESULT_DMA_MP_ES_ECX(x)                  (((uint32_t)(((uint32_t)(x)) << RESULT_DMA_MP_ES_ECX_SHIFT)) & RESULT_DMA_MP_ES_ECX_MASK)
207 
208 #define RESULT_DMA_MP_ES_UCE_MASK                (0x200U)
209 #define RESULT_DMA_MP_ES_UCE_SHIFT               (9U)
210 #define RESULT_DMA_MP_ES_UCE_WIDTH               (1U)
211 #define RESULT_DMA_MP_ES_UCE(x)                  (((uint32_t)(((uint32_t)(x)) << RESULT_DMA_MP_ES_UCE_SHIFT)) & RESULT_DMA_MP_ES_UCE_MASK)
212 
213 #define RESULT_DMA_MP_ES_ERRCHN_MASK             (0x1F000000U)
214 #define RESULT_DMA_MP_ES_ERRCHN_SHIFT            (24U)
215 #define RESULT_DMA_MP_ES_ERRCHN_WIDTH            (5U)
216 #define RESULT_DMA_MP_ES_ERRCHN(x)               (((uint32_t)(((uint32_t)(x)) << RESULT_DMA_MP_ES_ERRCHN_SHIFT)) & RESULT_DMA_MP_ES_ERRCHN_MASK)
217 
218 #define RESULT_DMA_MP_ES_VLD_MASK                (0x80000000U)
219 #define RESULT_DMA_MP_ES_VLD_SHIFT               (31U)
220 #define RESULT_DMA_MP_ES_VLD_WIDTH               (1U)
221 #define RESULT_DMA_MP_ES_VLD(x)                  (((uint32_t)(((uint32_t)(x)) << RESULT_DMA_MP_ES_VLD_SHIFT)) & RESULT_DMA_MP_ES_VLD_MASK)
222 /*! @} */
223 
224 /*! @name INT - Management Page Interrupt Request Status */
225 /*! @{ */
226 
227 #define RESULT_DMA_MP_INT_INT_MASK               (0xFFFFFFU)
228 #define RESULT_DMA_MP_INT_INT_SHIFT              (0U)
229 #define RESULT_DMA_MP_INT_INT_WIDTH              (24U)
230 #define RESULT_DMA_MP_INT_INT(x)                 (((uint32_t)(((uint32_t)(x)) << RESULT_DMA_MP_INT_INT_SHIFT)) & RESULT_DMA_MP_INT_INT_MASK)
231 /*! @} */
232 
233 /*! @name HRS - Management Page Hardware Request Status */
234 /*! @{ */
235 
236 #define RESULT_DMA_MP_HRS_HRS_MASK               (0xFFFFFFFFU)
237 #define RESULT_DMA_MP_HRS_HRS_SHIFT              (0U)
238 #define RESULT_DMA_MP_HRS_HRS_WIDTH              (32U)
239 #define RESULT_DMA_MP_HRS_HRS(x)                 (((uint32_t)(((uint32_t)(x)) << RESULT_DMA_MP_HRS_HRS_SHIFT)) & RESULT_DMA_MP_HRS_HRS_MASK)
240 /*! @} */
241 
242 /*! @name CH_GRPRI - Channel Arbitration Group */
243 /*! @{ */
244 
245 #define RESULT_DMA_MP_CH_GRPRI_GRPRI_MASK        (0x1FU)
246 #define RESULT_DMA_MP_CH_GRPRI_GRPRI_SHIFT       (0U)
247 #define RESULT_DMA_MP_CH_GRPRI_GRPRI_WIDTH       (5U)
248 #define RESULT_DMA_MP_CH_GRPRI_GRPRI(x)          (((uint32_t)(((uint32_t)(x)) << RESULT_DMA_MP_CH_GRPRI_GRPRI_SHIFT)) & RESULT_DMA_MP_CH_GRPRI_GRPRI_MASK)
249 /*! @} */
250 
251 /*!
252  * @}
253  */ /* end of group RESULT_DMA_MP_Register_Masks */
254 
255 /*!
256  * @}
257  */ /* end of group RESULT_DMA_MP_Peripheral_Access_Layer */
258 
259 #endif  /* #if !defined(S32Z2_RESULT_DMA_MP_H_) */
260