55#ifndef _GRLIB_AHBSTAT_REGS_H
56#define _GRLIB_AHBSTAT_REGS_H
84#define AHBSTAT_AHBS_ME 0x2000U
86#define AHBSTAT_AHBS_FW 0x1000U
88#define AHBSTAT_AHBS_CF 0x800U
90#define AHBSTAT_AHBS_AF 0x400U
92#define AHBSTAT_AHBS_CE 0x200U
94#define AHBSTAT_AHBS_NE 0x100U
96#define AHBSTAT_AHBS_HWRITE 0x80U
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 )
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 )
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 )
This structure defines the AHBSTAT register block memory map.
Definition: ahbstat-regs.h:153
uint32_t ahbfar
See AHB Failing address register (AHBFAR).
Definition: ahbstat-regs.h:162
uint32_t ahbs
See AHB Status register (AHBS).
Definition: ahbstat-regs.h:157