RTEMS
6.3
Toggle main menu visibility
Loading...
Searching...
No Matches
bsps
include
grlib
ahbstat-regs.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: BSD-2-Clause */
2
10
11
/*
12
* Copyright (C) 2021 embedded brains GmbH & Co. KG
13
*
14
* Redistribution and use in source and binary forms, with or without
15
* modification, are permitted provided that the following conditions
16
* are met:
17
* 1. Redistributions of source code must retain the above copyright
18
* notice, this list of conditions and the following disclaimer.
19
* 2. Redistributions in binary form must reproduce the above copyright
20
* notice, this list of conditions and the following disclaimer in the
21
* documentation and/or other materials provided with the distribution.
22
*
23
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
24
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
27
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
28
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
29
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
30
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
31
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
32
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33
* POSSIBILITY OF SUCH DAMAGE.
34
*/
35
36
/*
37
* This file is part of the RTEMS quality process and was automatically
38
* generated. If you find something that needs to be fixed or
39
* worded better please post a report or patch to an RTEMS mailing list
40
* or raise a bug report:
41
*
42
* https://www.rtems.org/bugs.html
43
*
44
* For information on updating and regenerating please refer to the How-To
45
* section in the Software Requirements Engineering chapter of the
46
* RTEMS Software Engineering manual. The manual is provided as a part of
47
* a release. For development sources please refer to the online
48
* documentation at:
49
*
50
* https://docs.rtems.org
51
*/
52
53
/* Generated from spec:/dev/grlib/if/ahbstat-header */
54
55
#ifndef _GRLIB_AHBSTAT_REGS_H
56
#define _GRLIB_AHBSTAT_REGS_H
57
58
#include <stdint.h>
59
60
#ifdef __cplusplus
61
extern
"C"
{
62
#endif
63
64
/* Generated from spec:/dev/grlib/if/ahbstat */
65
75
83
84
#define AHBSTAT_AHBS_ME 0x2000U
85
86
#define AHBSTAT_AHBS_FW 0x1000U
87
88
#define AHBSTAT_AHBS_CF 0x800U
89
90
#define AHBSTAT_AHBS_AF 0x400U
91
92
#define AHBSTAT_AHBS_CE 0x200U
93
94
#define AHBSTAT_AHBS_NE 0x100U
95
96
#define AHBSTAT_AHBS_HWRITE 0x80U
97
98
#define AHBSTAT_AHBS_HMASTER_SHIFT 3
99
#define AHBSTAT_AHBS_HMASTER_MASK 0x78U
100
#define AHBSTAT_AHBS_HMASTER_GET( _reg ) \
101
( ( ( _reg ) & AHBSTAT_AHBS_HMASTER_MASK ) >> \
102
AHBSTAT_AHBS_HMASTER_SHIFT )
103
#define AHBSTAT_AHBS_HMASTER_SET( _reg, _val ) \
104
( ( ( _reg ) & ~AHBSTAT_AHBS_HMASTER_MASK ) | \
105
( ( ( _val ) << AHBSTAT_AHBS_HMASTER_SHIFT ) & \
106
AHBSTAT_AHBS_HMASTER_MASK ) )
107
#define AHBSTAT_AHBS_HMASTER( _val ) \
108
( ( ( _val ) << AHBSTAT_AHBS_HMASTER_SHIFT ) & \
109
AHBSTAT_AHBS_HMASTER_MASK )
110
111
#define AHBSTAT_AHBS_HSIZE_SHIFT 0
112
#define AHBSTAT_AHBS_HSIZE_MASK 0x7U
113
#define AHBSTAT_AHBS_HSIZE_GET( _reg ) \
114
( ( ( _reg ) & AHBSTAT_AHBS_HSIZE_MASK ) >> \
115
AHBSTAT_AHBS_HSIZE_SHIFT )
116
#define AHBSTAT_AHBS_HSIZE_SET( _reg, _val ) \
117
( ( ( _reg ) & ~AHBSTAT_AHBS_HSIZE_MASK ) | \
118
( ( ( _val ) << AHBSTAT_AHBS_HSIZE_SHIFT ) & \
119
AHBSTAT_AHBS_HSIZE_MASK ) )
120
#define AHBSTAT_AHBS_HSIZE( _val ) \
121
( ( ( _val ) << AHBSTAT_AHBS_HSIZE_SHIFT ) & \
122
AHBSTAT_AHBS_HSIZE_MASK )
123
125
134
135
#define AHBSTAT_AHBFAR_HADDR_SHIFT 0
136
#define AHBSTAT_AHBFAR_HADDR_MASK 0xffffffffU
137
#define AHBSTAT_AHBFAR_HADDR_GET( _reg ) \
138
( ( ( _reg ) & AHBSTAT_AHBFAR_HADDR_MASK ) >> \
139
AHBSTAT_AHBFAR_HADDR_SHIFT )
140
#define AHBSTAT_AHBFAR_HADDR_SET( _reg, _val ) \
141
( ( ( _reg ) & ~AHBSTAT_AHBFAR_HADDR_MASK ) | \
142
( ( ( _val ) << AHBSTAT_AHBFAR_HADDR_SHIFT ) & \
143
AHBSTAT_AHBFAR_HADDR_MASK ) )
144
#define AHBSTAT_AHBFAR_HADDR( _val ) \
145
( ( ( _val ) << AHBSTAT_AHBFAR_HADDR_SHIFT ) & \
146
AHBSTAT_AHBFAR_HADDR_MASK )
147
149
153
typedef
struct
ahbstat
{
157
uint32_t
ahbs
;
158
162
uint32_t
ahbfar
;
163
}
ahbstat
;
164
166
167
#ifdef __cplusplus
168
}
169
#endif
170
171
#endif
/* _GRLIB_AHBSTAT_REGS_H */
ahbstat
This structure defines the AHBSTAT register block memory map.
Definition
ahbstat-regs.h:153
ahbstat::ahbfar
uint32_t ahbfar
See AHB Failing address register (AHBFAR).
Definition
ahbstat-regs.h:162
ahbstat::ahbs
uint32_t ahbs
See AHB Status register (AHBS).
Definition
ahbstat-regs.h:157
Generated by
1.18.0