18c2ecf20Sopenharmony_ci/*
28c2ecf20Sopenharmony_ci * This file is subject to the terms and conditions of the GNU General Public
38c2ecf20Sopenharmony_ci * License.  See the file "COPYING" in the main directory of this archive
48c2ecf20Sopenharmony_ci * for more details.
58c2ecf20Sopenharmony_ci *
68c2ecf20Sopenharmony_ci * HPE UV MMR definitions
78c2ecf20Sopenharmony_ci *
88c2ecf20Sopenharmony_ci * (C) Copyright 2020 Hewlett Packard Enterprise Development LP
98c2ecf20Sopenharmony_ci * Copyright (C) 2007-2016 Silicon Graphics, Inc. All rights reserved.
108c2ecf20Sopenharmony_ci */
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci#ifndef _ASM_X86_UV_UV_MMRS_H
138c2ecf20Sopenharmony_ci#define _ASM_X86_UV_UV_MMRS_H
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci/*
168c2ecf20Sopenharmony_ci * This file contains MMR definitions for all UV hubs types.
178c2ecf20Sopenharmony_ci *
188c2ecf20Sopenharmony_ci * To minimize coding differences between hub types, the symbols are
198c2ecf20Sopenharmony_ci * grouped by architecture types.
208c2ecf20Sopenharmony_ci *
218c2ecf20Sopenharmony_ci * UVH  - definitions common to all UV hub types.
228c2ecf20Sopenharmony_ci * UVXH - definitions common to UVX class (2, 3, 4).
238c2ecf20Sopenharmony_ci * UVYH - definitions common to UVY class (5).
248c2ecf20Sopenharmony_ci * UV5H - definitions specific to UV type 5 hub.
258c2ecf20Sopenharmony_ci * UV4AH - definitions specific to UV type 4A hub.
268c2ecf20Sopenharmony_ci * UV4H - definitions specific to UV type 4 hub.
278c2ecf20Sopenharmony_ci * UV3H - definitions specific to UV type 3 hub.
288c2ecf20Sopenharmony_ci * UV2H - definitions specific to UV type 2 hub.
298c2ecf20Sopenharmony_ci *
308c2ecf20Sopenharmony_ci * If the MMR exists on all hub types but have different addresses,
318c2ecf20Sopenharmony_ci * use a conditional operator to define the value at runtime.  Any
328c2ecf20Sopenharmony_ci * that are not defined are blank.
338c2ecf20Sopenharmony_ci *	(UV4A variations only generated if different from uv4)
348c2ecf20Sopenharmony_ci *	#define UVHxxx (
358c2ecf20Sopenharmony_ci *		is_uv(UV5) ? UV5Hxxx value :
368c2ecf20Sopenharmony_ci *		is_uv(UV4A) ? UV4AHxxx value :
378c2ecf20Sopenharmony_ci *		is_uv(UV4) ? UV4Hxxx value :
388c2ecf20Sopenharmony_ci *		is_uv(UV3) ? UV3Hxxx value :
398c2ecf20Sopenharmony_ci *		is_uv(UV2) ? UV2Hxxx value :
408c2ecf20Sopenharmony_ci *		<ucv> or <undef value>)
418c2ecf20Sopenharmony_ci *
428c2ecf20Sopenharmony_ci * Class UVX has UVs (2|3|4|4A).
438c2ecf20Sopenharmony_ci * Class UVY has UVs (5).
448c2ecf20Sopenharmony_ci *
458c2ecf20Sopenharmony_ci *	union uvh_xxx {
468c2ecf20Sopenharmony_ci *		unsigned long       v;
478c2ecf20Sopenharmony_ci *		struct uvh_xxx_s {	 # Common fields only
488c2ecf20Sopenharmony_ci *		} s;
498c2ecf20Sopenharmony_ci *		struct uv5h_xxx_s {	 # Full UV5 definition (*)
508c2ecf20Sopenharmony_ci *		} s5;
518c2ecf20Sopenharmony_ci *		struct uv4ah_xxx_s {	 # Full UV4A definition (*)
528c2ecf20Sopenharmony_ci *		} s4a;
538c2ecf20Sopenharmony_ci *		struct uv4h_xxx_s {	 # Full UV4 definition (*)
548c2ecf20Sopenharmony_ci *		} s4;
558c2ecf20Sopenharmony_ci *		struct uv3h_xxx_s {	 # Full UV3 definition (*)
568c2ecf20Sopenharmony_ci *		} s3;
578c2ecf20Sopenharmony_ci *		struct uv2h_xxx_s {	 # Full UV2 definition (*)
588c2ecf20Sopenharmony_ci *		} s2;
598c2ecf20Sopenharmony_ci *	};
608c2ecf20Sopenharmony_ci *		(* - if present and different than the common struct)
618c2ecf20Sopenharmony_ci *
628c2ecf20Sopenharmony_ci * Only essential differences are enumerated. For example, if the address is
638c2ecf20Sopenharmony_ci * the same for all UV's, only a single #define is generated. Likewise,
648c2ecf20Sopenharmony_ci * if the contents is the same for all hubs, only the "s" structure is
658c2ecf20Sopenharmony_ci * generated.
668c2ecf20Sopenharmony_ci *
678c2ecf20Sopenharmony_ci * (GEN Flags: undefs=function)
688c2ecf20Sopenharmony_ci */
698c2ecf20Sopenharmony_ci
708c2ecf20Sopenharmony_ci /* UV bit masks */
718c2ecf20Sopenharmony_ci#define	UV2	(1 << 0)
728c2ecf20Sopenharmony_ci#define	UV3	(1 << 1)
738c2ecf20Sopenharmony_ci#define	UV4	(1 << 2)
748c2ecf20Sopenharmony_ci#define	UV4A	(1 << 3)
758c2ecf20Sopenharmony_ci#define	UV5	(1 << 4)
768c2ecf20Sopenharmony_ci#define	UVX	(UV2|UV3|UV4)
778c2ecf20Sopenharmony_ci#define	UVY	(UV5)
788c2ecf20Sopenharmony_ci#define	UV_ANY	(~0)
798c2ecf20Sopenharmony_ci
808c2ecf20Sopenharmony_ci
818c2ecf20Sopenharmony_ci
828c2ecf20Sopenharmony_ci
838c2ecf20Sopenharmony_ci#define UV_MMR_ENABLE		(1UL << 63)
848c2ecf20Sopenharmony_ci
858c2ecf20Sopenharmony_ci#define UV1_HUB_PART_NUMBER	0x88a5
868c2ecf20Sopenharmony_ci#define UV2_HUB_PART_NUMBER	0x8eb8
878c2ecf20Sopenharmony_ci#define UV2_HUB_PART_NUMBER_X	0x1111
888c2ecf20Sopenharmony_ci#define UV3_HUB_PART_NUMBER	0x9578
898c2ecf20Sopenharmony_ci#define UV3_HUB_PART_NUMBER_X	0x4321
908c2ecf20Sopenharmony_ci#define UV4_HUB_PART_NUMBER	0x99a1
918c2ecf20Sopenharmony_ci#define UV5_HUB_PART_NUMBER	0xa171
928c2ecf20Sopenharmony_ci
938c2ecf20Sopenharmony_ci/* Error function to catch undefined references */
948c2ecf20Sopenharmony_ciextern unsigned long uv_undefined(char *str);
958c2ecf20Sopenharmony_ci
968c2ecf20Sopenharmony_ci/* ========================================================================= */
978c2ecf20Sopenharmony_ci/*                           UVH_EVENT_OCCURRED0                             */
988c2ecf20Sopenharmony_ci/* ========================================================================= */
998c2ecf20Sopenharmony_ci#define UVH_EVENT_OCCURRED0 0x70000UL
1008c2ecf20Sopenharmony_ci
1018c2ecf20Sopenharmony_ci/* UVH common defines*/
1028c2ecf20Sopenharmony_ci#define UVH_EVENT_OCCURRED0_LB_HCERR_SHFT		0
1038c2ecf20Sopenharmony_ci#define UVH_EVENT_OCCURRED0_LB_HCERR_MASK		0x0000000000000001UL
1048c2ecf20Sopenharmony_ci
1058c2ecf20Sopenharmony_ci/* UVXH common defines */
1068c2ecf20Sopenharmony_ci#define UVXH_EVENT_OCCURRED0_RH_HCERR_SHFT		2
1078c2ecf20Sopenharmony_ci#define UVXH_EVENT_OCCURRED0_RH_HCERR_MASK		0x0000000000000004UL
1088c2ecf20Sopenharmony_ci#define UVXH_EVENT_OCCURRED0_LH0_HCERR_SHFT		3
1098c2ecf20Sopenharmony_ci#define UVXH_EVENT_OCCURRED0_LH0_HCERR_MASK		0x0000000000000008UL
1108c2ecf20Sopenharmony_ci#define UVXH_EVENT_OCCURRED0_LH1_HCERR_SHFT		4
1118c2ecf20Sopenharmony_ci#define UVXH_EVENT_OCCURRED0_LH1_HCERR_MASK		0x0000000000000010UL
1128c2ecf20Sopenharmony_ci#define UVXH_EVENT_OCCURRED0_GR0_HCERR_SHFT		5
1138c2ecf20Sopenharmony_ci#define UVXH_EVENT_OCCURRED0_GR0_HCERR_MASK		0x0000000000000020UL
1148c2ecf20Sopenharmony_ci#define UVXH_EVENT_OCCURRED0_GR1_HCERR_SHFT		6
1158c2ecf20Sopenharmony_ci#define UVXH_EVENT_OCCURRED0_GR1_HCERR_MASK		0x0000000000000040UL
1168c2ecf20Sopenharmony_ci#define UVXH_EVENT_OCCURRED0_NI0_HCERR_SHFT		7
1178c2ecf20Sopenharmony_ci#define UVXH_EVENT_OCCURRED0_NI0_HCERR_MASK		0x0000000000000080UL
1188c2ecf20Sopenharmony_ci#define UVXH_EVENT_OCCURRED0_NI1_HCERR_SHFT		8
1198c2ecf20Sopenharmony_ci#define UVXH_EVENT_OCCURRED0_NI1_HCERR_MASK		0x0000000000000100UL
1208c2ecf20Sopenharmony_ci#define UVXH_EVENT_OCCURRED0_LB_AOERR0_SHFT		9
1218c2ecf20Sopenharmony_ci#define UVXH_EVENT_OCCURRED0_LB_AOERR0_MASK		0x0000000000000200UL
1228c2ecf20Sopenharmony_ci#define UVXH_EVENT_OCCURRED0_RH_AOERR0_SHFT		11
1238c2ecf20Sopenharmony_ci#define UVXH_EVENT_OCCURRED0_RH_AOERR0_MASK		0x0000000000000800UL
1248c2ecf20Sopenharmony_ci#define UVXH_EVENT_OCCURRED0_LH0_AOERR0_SHFT		12
1258c2ecf20Sopenharmony_ci#define UVXH_EVENT_OCCURRED0_LH0_AOERR0_MASK		0x0000000000001000UL
1268c2ecf20Sopenharmony_ci#define UVXH_EVENT_OCCURRED0_LH1_AOERR0_SHFT		13
1278c2ecf20Sopenharmony_ci#define UVXH_EVENT_OCCURRED0_LH1_AOERR0_MASK		0x0000000000002000UL
1288c2ecf20Sopenharmony_ci#define UVXH_EVENT_OCCURRED0_GR0_AOERR0_SHFT		14
1298c2ecf20Sopenharmony_ci#define UVXH_EVENT_OCCURRED0_GR0_AOERR0_MASK		0x0000000000004000UL
1308c2ecf20Sopenharmony_ci#define UVXH_EVENT_OCCURRED0_GR1_AOERR0_SHFT		15
1318c2ecf20Sopenharmony_ci#define UVXH_EVENT_OCCURRED0_GR1_AOERR0_MASK		0x0000000000008000UL
1328c2ecf20Sopenharmony_ci#define UVXH_EVENT_OCCURRED0_XB_AOERR0_SHFT		16
1338c2ecf20Sopenharmony_ci#define UVXH_EVENT_OCCURRED0_XB_AOERR0_MASK		0x0000000000010000UL
1348c2ecf20Sopenharmony_ci
1358c2ecf20Sopenharmony_ci/* UVYH common defines */
1368c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_KT_HCERR_SHFT		1
1378c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_KT_HCERR_MASK		0x0000000000000002UL
1388c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_RH0_HCERR_SHFT		2
1398c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_RH0_HCERR_MASK		0x0000000000000004UL
1408c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_RH1_HCERR_SHFT		3
1418c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_RH1_HCERR_MASK		0x0000000000000008UL
1428c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LH0_HCERR_SHFT		4
1438c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LH0_HCERR_MASK		0x0000000000000010UL
1448c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LH1_HCERR_SHFT		5
1458c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LH1_HCERR_MASK		0x0000000000000020UL
1468c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LH2_HCERR_SHFT		6
1478c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LH2_HCERR_MASK		0x0000000000000040UL
1488c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LH3_HCERR_SHFT		7
1498c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LH3_HCERR_MASK		0x0000000000000080UL
1508c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_XB_HCERR_SHFT		8
1518c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_XB_HCERR_MASK		0x0000000000000100UL
1528c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_RDM_HCERR_SHFT		9
1538c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_RDM_HCERR_MASK		0x0000000000000200UL
1548c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_NI0_HCERR_SHFT		10
1558c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_NI0_HCERR_MASK		0x0000000000000400UL
1568c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_NI1_HCERR_SHFT		11
1578c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_NI1_HCERR_MASK		0x0000000000000800UL
1588c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LB_AOERR0_SHFT		12
1598c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LB_AOERR0_MASK		0x0000000000001000UL
1608c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_KT_AOERR0_SHFT		13
1618c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_KT_AOERR0_MASK		0x0000000000002000UL
1628c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_RH0_AOERR0_SHFT		14
1638c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_RH0_AOERR0_MASK		0x0000000000004000UL
1648c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_RH1_AOERR0_SHFT		15
1658c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_RH1_AOERR0_MASK		0x0000000000008000UL
1668c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LH0_AOERR0_SHFT		16
1678c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LH0_AOERR0_MASK		0x0000000000010000UL
1688c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LH1_AOERR0_SHFT		17
1698c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LH1_AOERR0_MASK		0x0000000000020000UL
1708c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LH2_AOERR0_SHFT		18
1718c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LH2_AOERR0_MASK		0x0000000000040000UL
1728c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LH3_AOERR0_SHFT		19
1738c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LH3_AOERR0_MASK		0x0000000000080000UL
1748c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_XB_AOERR0_SHFT		20
1758c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_XB_AOERR0_MASK		0x0000000000100000UL
1768c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_RDM_AOERR0_SHFT		21
1778c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_RDM_AOERR0_MASK		0x0000000000200000UL
1788c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_RT0_AOERR0_SHFT		22
1798c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_RT0_AOERR0_MASK		0x0000000000400000UL
1808c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_RT1_AOERR0_SHFT		23
1818c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_RT1_AOERR0_MASK		0x0000000000800000UL
1828c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_NI0_AOERR0_SHFT		24
1838c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_NI0_AOERR0_MASK		0x0000000001000000UL
1848c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_NI1_AOERR0_SHFT		25
1858c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_NI1_AOERR0_MASK		0x0000000002000000UL
1868c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LB_AOERR1_SHFT		26
1878c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LB_AOERR1_MASK		0x0000000004000000UL
1888c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_KT_AOERR1_SHFT		27
1898c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_KT_AOERR1_MASK		0x0000000008000000UL
1908c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_RH0_AOERR1_SHFT		28
1918c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_RH0_AOERR1_MASK		0x0000000010000000UL
1928c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_RH1_AOERR1_SHFT		29
1938c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_RH1_AOERR1_MASK		0x0000000020000000UL
1948c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LH0_AOERR1_SHFT		30
1958c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LH0_AOERR1_MASK		0x0000000040000000UL
1968c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LH1_AOERR1_SHFT		31
1978c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LH1_AOERR1_MASK		0x0000000080000000UL
1988c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LH2_AOERR1_SHFT		32
1998c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LH2_AOERR1_MASK		0x0000000100000000UL
2008c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LH3_AOERR1_SHFT		33
2018c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LH3_AOERR1_MASK		0x0000000200000000UL
2028c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_XB_AOERR1_SHFT		34
2038c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_XB_AOERR1_MASK		0x0000000400000000UL
2048c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_RDM_AOERR1_SHFT		35
2058c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_RDM_AOERR1_MASK		0x0000000800000000UL
2068c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_RT0_AOERR1_SHFT		36
2078c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_RT0_AOERR1_MASK		0x0000001000000000UL
2088c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_RT1_AOERR1_SHFT		37
2098c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_RT1_AOERR1_MASK		0x0000002000000000UL
2108c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_NI0_AOERR1_SHFT		38
2118c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_NI0_AOERR1_MASK		0x0000004000000000UL
2128c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_NI1_AOERR1_SHFT		39
2138c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_NI1_AOERR1_MASK		0x0000008000000000UL
2148c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_SYSTEM_SHUTDOWN_INT_SHFT	40
2158c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_SYSTEM_SHUTDOWN_INT_MASK	0x0000010000000000UL
2168c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LB_IRQ_INT_0_SHFT		41
2178c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LB_IRQ_INT_0_MASK		0x0000020000000000UL
2188c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LB_IRQ_INT_1_SHFT		42
2198c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LB_IRQ_INT_1_MASK		0x0000040000000000UL
2208c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LB_IRQ_INT_2_SHFT		43
2218c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LB_IRQ_INT_2_MASK		0x0000080000000000UL
2228c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LB_IRQ_INT_3_SHFT		44
2238c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LB_IRQ_INT_3_MASK		0x0000100000000000UL
2248c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LB_IRQ_INT_4_SHFT		45
2258c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LB_IRQ_INT_4_MASK		0x0000200000000000UL
2268c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LB_IRQ_INT_5_SHFT		46
2278c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LB_IRQ_INT_5_MASK		0x0000400000000000UL
2288c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LB_IRQ_INT_6_SHFT		47
2298c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LB_IRQ_INT_6_MASK		0x0000800000000000UL
2308c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LB_IRQ_INT_7_SHFT		48
2318c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LB_IRQ_INT_7_MASK		0x0001000000000000UL
2328c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LB_IRQ_INT_8_SHFT		49
2338c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LB_IRQ_INT_8_MASK		0x0002000000000000UL
2348c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LB_IRQ_INT_9_SHFT		50
2358c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LB_IRQ_INT_9_MASK		0x0004000000000000UL
2368c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LB_IRQ_INT_10_SHFT		51
2378c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LB_IRQ_INT_10_MASK		0x0008000000000000UL
2388c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LB_IRQ_INT_11_SHFT		52
2398c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LB_IRQ_INT_11_MASK		0x0010000000000000UL
2408c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LB_IRQ_INT_12_SHFT		53
2418c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LB_IRQ_INT_12_MASK		0x0020000000000000UL
2428c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LB_IRQ_INT_13_SHFT		54
2438c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LB_IRQ_INT_13_MASK		0x0040000000000000UL
2448c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LB_IRQ_INT_14_SHFT		55
2458c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LB_IRQ_INT_14_MASK		0x0080000000000000UL
2468c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LB_IRQ_INT_15_SHFT		56
2478c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LB_IRQ_INT_15_MASK		0x0100000000000000UL
2488c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_L1_NMI_INT_SHFT		57
2498c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_L1_NMI_INT_MASK		0x0200000000000000UL
2508c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_STOP_CLOCK_SHFT		58
2518c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_STOP_CLOCK_MASK		0x0400000000000000UL
2528c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_ASIC_TO_L1_SHFT		59
2538c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_ASIC_TO_L1_MASK		0x0800000000000000UL
2548c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_L1_TO_ASIC_SHFT		60
2558c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_L1_TO_ASIC_MASK		0x1000000000000000UL
2568c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LA_SEQ_TRIGGER_SHFT	61
2578c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED0_LA_SEQ_TRIGGER_MASK	0x2000000000000000UL
2588c2ecf20Sopenharmony_ci
2598c2ecf20Sopenharmony_ci/* UV4 unique defines */
2608c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_KT_HCERR_SHFT		1
2618c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_KT_HCERR_MASK		0x0000000000000002UL
2628c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_KT_AOERR0_SHFT		10
2638c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_KT_AOERR0_MASK		0x0000000000000400UL
2648c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_RTQ0_AOERR0_SHFT		17
2658c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_RTQ0_AOERR0_MASK		0x0000000000020000UL
2668c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_RTQ1_AOERR0_SHFT		18
2678c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_RTQ1_AOERR0_MASK		0x0000000000040000UL
2688c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_RTQ2_AOERR0_SHFT		19
2698c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_RTQ2_AOERR0_MASK		0x0000000000080000UL
2708c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_RTQ3_AOERR0_SHFT		20
2718c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_RTQ3_AOERR0_MASK		0x0000000000100000UL
2728c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_NI0_AOERR0_SHFT		21
2738c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_NI0_AOERR0_MASK		0x0000000000200000UL
2748c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_NI1_AOERR0_SHFT		22
2758c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_NI1_AOERR0_MASK		0x0000000000400000UL
2768c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_LB_AOERR1_SHFT		23
2778c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_LB_AOERR1_MASK		0x0000000000800000UL
2788c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_KT_AOERR1_SHFT		24
2798c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_KT_AOERR1_MASK		0x0000000001000000UL
2808c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_RH_AOERR1_SHFT		25
2818c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_RH_AOERR1_MASK		0x0000000002000000UL
2828c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_LH0_AOERR1_SHFT		26
2838c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_LH0_AOERR1_MASK		0x0000000004000000UL
2848c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_LH1_AOERR1_SHFT		27
2858c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_LH1_AOERR1_MASK		0x0000000008000000UL
2868c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_GR0_AOERR1_SHFT		28
2878c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_GR0_AOERR1_MASK		0x0000000010000000UL
2888c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_GR1_AOERR1_SHFT		29
2898c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_GR1_AOERR1_MASK		0x0000000020000000UL
2908c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_XB_AOERR1_SHFT		30
2918c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_XB_AOERR1_MASK		0x0000000040000000UL
2928c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_RTQ0_AOERR1_SHFT		31
2938c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_RTQ0_AOERR1_MASK		0x0000000080000000UL
2948c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_RTQ1_AOERR1_SHFT		32
2958c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_RTQ1_AOERR1_MASK		0x0000000100000000UL
2968c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_RTQ2_AOERR1_SHFT		33
2978c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_RTQ2_AOERR1_MASK		0x0000000200000000UL
2988c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_RTQ3_AOERR1_SHFT		34
2998c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_RTQ3_AOERR1_MASK		0x0000000400000000UL
3008c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_NI0_AOERR1_SHFT		35
3018c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_NI0_AOERR1_MASK		0x0000000800000000UL
3028c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_NI1_AOERR1_SHFT		36
3038c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_NI1_AOERR1_MASK		0x0000001000000000UL
3048c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_SYSTEM_SHUTDOWN_INT_SHFT	37
3058c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_SYSTEM_SHUTDOWN_INT_MASK	0x0000002000000000UL
3068c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_LB_IRQ_INT_0_SHFT		38
3078c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_LB_IRQ_INT_0_MASK		0x0000004000000000UL
3088c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_LB_IRQ_INT_1_SHFT		39
3098c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_LB_IRQ_INT_1_MASK		0x0000008000000000UL
3108c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_LB_IRQ_INT_2_SHFT		40
3118c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_LB_IRQ_INT_2_MASK		0x0000010000000000UL
3128c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_LB_IRQ_INT_3_SHFT		41
3138c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_LB_IRQ_INT_3_MASK		0x0000020000000000UL
3148c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_LB_IRQ_INT_4_SHFT		42
3158c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_LB_IRQ_INT_4_MASK		0x0000040000000000UL
3168c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_LB_IRQ_INT_5_SHFT		43
3178c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_LB_IRQ_INT_5_MASK		0x0000080000000000UL
3188c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_LB_IRQ_INT_6_SHFT		44
3198c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_LB_IRQ_INT_6_MASK		0x0000100000000000UL
3208c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_LB_IRQ_INT_7_SHFT		45
3218c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_LB_IRQ_INT_7_MASK		0x0000200000000000UL
3228c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_LB_IRQ_INT_8_SHFT		46
3238c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_LB_IRQ_INT_8_MASK		0x0000400000000000UL
3248c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_LB_IRQ_INT_9_SHFT		47
3258c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_LB_IRQ_INT_9_MASK		0x0000800000000000UL
3268c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_LB_IRQ_INT_10_SHFT		48
3278c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_LB_IRQ_INT_10_MASK		0x0001000000000000UL
3288c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_LB_IRQ_INT_11_SHFT		49
3298c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_LB_IRQ_INT_11_MASK		0x0002000000000000UL
3308c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_LB_IRQ_INT_12_SHFT		50
3318c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_LB_IRQ_INT_12_MASK		0x0004000000000000UL
3328c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_LB_IRQ_INT_13_SHFT		51
3338c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_LB_IRQ_INT_13_MASK		0x0008000000000000UL
3348c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_LB_IRQ_INT_14_SHFT		52
3358c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_LB_IRQ_INT_14_MASK		0x0010000000000000UL
3368c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_LB_IRQ_INT_15_SHFT		53
3378c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_LB_IRQ_INT_15_MASK		0x0020000000000000UL
3388c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_L1_NMI_INT_SHFT		54
3398c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_L1_NMI_INT_MASK		0x0040000000000000UL
3408c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_STOP_CLOCK_SHFT		55
3418c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_STOP_CLOCK_MASK		0x0080000000000000UL
3428c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_ASIC_TO_L1_SHFT		56
3438c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_ASIC_TO_L1_MASK		0x0100000000000000UL
3448c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_L1_TO_ASIC_SHFT		57
3458c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_L1_TO_ASIC_MASK		0x0200000000000000UL
3468c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_LA_SEQ_TRIGGER_SHFT	58
3478c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_LA_SEQ_TRIGGER_MASK	0x0400000000000000UL
3488c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_IPI_INT_SHFT		59
3498c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_IPI_INT_MASK		0x0800000000000000UL
3508c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_EXTIO_INT0_SHFT		60
3518c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_EXTIO_INT0_MASK		0x1000000000000000UL
3528c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_EXTIO_INT1_SHFT		61
3538c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_EXTIO_INT1_MASK		0x2000000000000000UL
3548c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_EXTIO_INT2_SHFT		62
3558c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_EXTIO_INT2_MASK		0x4000000000000000UL
3568c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_EXTIO_INT3_SHFT		63
3578c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED0_EXTIO_INT3_MASK		0x8000000000000000UL
3588c2ecf20Sopenharmony_ci
3598c2ecf20Sopenharmony_ci/* UV3 unique defines */
3608c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_QP_HCERR_SHFT		1
3618c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_QP_HCERR_MASK		0x0000000000000002UL
3628c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_QP_AOERR0_SHFT		10
3638c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_QP_AOERR0_MASK		0x0000000000000400UL
3648c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_RT_AOERR0_SHFT		17
3658c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_RT_AOERR0_MASK		0x0000000000020000UL
3668c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_NI0_AOERR0_SHFT		18
3678c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_NI0_AOERR0_MASK		0x0000000000040000UL
3688c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_NI1_AOERR0_SHFT		19
3698c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_NI1_AOERR0_MASK		0x0000000000080000UL
3708c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_LB_AOERR1_SHFT		20
3718c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_LB_AOERR1_MASK		0x0000000000100000UL
3728c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_QP_AOERR1_SHFT		21
3738c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_QP_AOERR1_MASK		0x0000000000200000UL
3748c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_RH_AOERR1_SHFT		22
3758c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_RH_AOERR1_MASK		0x0000000000400000UL
3768c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_LH0_AOERR1_SHFT		23
3778c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_LH0_AOERR1_MASK		0x0000000000800000UL
3788c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_LH1_AOERR1_SHFT		24
3798c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_LH1_AOERR1_MASK		0x0000000001000000UL
3808c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_GR0_AOERR1_SHFT		25
3818c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_GR0_AOERR1_MASK		0x0000000002000000UL
3828c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_GR1_AOERR1_SHFT		26
3838c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_GR1_AOERR1_MASK		0x0000000004000000UL
3848c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_XB_AOERR1_SHFT		27
3858c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_XB_AOERR1_MASK		0x0000000008000000UL
3868c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_RT_AOERR1_SHFT		28
3878c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_RT_AOERR1_MASK		0x0000000010000000UL
3888c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_NI0_AOERR1_SHFT		29
3898c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_NI0_AOERR1_MASK		0x0000000020000000UL
3908c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_NI1_AOERR1_SHFT		30
3918c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_NI1_AOERR1_MASK		0x0000000040000000UL
3928c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_SYSTEM_SHUTDOWN_INT_SHFT	31
3938c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_SYSTEM_SHUTDOWN_INT_MASK	0x0000000080000000UL
3948c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_LB_IRQ_INT_0_SHFT		32
3958c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_LB_IRQ_INT_0_MASK		0x0000000100000000UL
3968c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_LB_IRQ_INT_1_SHFT		33
3978c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_LB_IRQ_INT_1_MASK		0x0000000200000000UL
3988c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_LB_IRQ_INT_2_SHFT		34
3998c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_LB_IRQ_INT_2_MASK		0x0000000400000000UL
4008c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_LB_IRQ_INT_3_SHFT		35
4018c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_LB_IRQ_INT_3_MASK		0x0000000800000000UL
4028c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_LB_IRQ_INT_4_SHFT		36
4038c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_LB_IRQ_INT_4_MASK		0x0000001000000000UL
4048c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_LB_IRQ_INT_5_SHFT		37
4058c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_LB_IRQ_INT_5_MASK		0x0000002000000000UL
4068c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_LB_IRQ_INT_6_SHFT		38
4078c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_LB_IRQ_INT_6_MASK		0x0000004000000000UL
4088c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_LB_IRQ_INT_7_SHFT		39
4098c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_LB_IRQ_INT_7_MASK		0x0000008000000000UL
4108c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_LB_IRQ_INT_8_SHFT		40
4118c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_LB_IRQ_INT_8_MASK		0x0000010000000000UL
4128c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_LB_IRQ_INT_9_SHFT		41
4138c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_LB_IRQ_INT_9_MASK		0x0000020000000000UL
4148c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_LB_IRQ_INT_10_SHFT		42
4158c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_LB_IRQ_INT_10_MASK		0x0000040000000000UL
4168c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_LB_IRQ_INT_11_SHFT		43
4178c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_LB_IRQ_INT_11_MASK		0x0000080000000000UL
4188c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_LB_IRQ_INT_12_SHFT		44
4198c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_LB_IRQ_INT_12_MASK		0x0000100000000000UL
4208c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_LB_IRQ_INT_13_SHFT		45
4218c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_LB_IRQ_INT_13_MASK		0x0000200000000000UL
4228c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_LB_IRQ_INT_14_SHFT		46
4238c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_LB_IRQ_INT_14_MASK		0x0000400000000000UL
4248c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_LB_IRQ_INT_15_SHFT		47
4258c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_LB_IRQ_INT_15_MASK		0x0000800000000000UL
4268c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_L1_NMI_INT_SHFT		48
4278c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_L1_NMI_INT_MASK		0x0001000000000000UL
4288c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_STOP_CLOCK_SHFT		49
4298c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_STOP_CLOCK_MASK		0x0002000000000000UL
4308c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_ASIC_TO_L1_SHFT		50
4318c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_ASIC_TO_L1_MASK		0x0004000000000000UL
4328c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_L1_TO_ASIC_SHFT		51
4338c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_L1_TO_ASIC_MASK		0x0008000000000000UL
4348c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_LA_SEQ_TRIGGER_SHFT	52
4358c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_LA_SEQ_TRIGGER_MASK	0x0010000000000000UL
4368c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_IPI_INT_SHFT		53
4378c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_IPI_INT_MASK		0x0020000000000000UL
4388c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_EXTIO_INT0_SHFT		54
4398c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_EXTIO_INT0_MASK		0x0040000000000000UL
4408c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_EXTIO_INT1_SHFT		55
4418c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_EXTIO_INT1_MASK		0x0080000000000000UL
4428c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_EXTIO_INT2_SHFT		56
4438c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_EXTIO_INT2_MASK		0x0100000000000000UL
4448c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_EXTIO_INT3_SHFT		57
4458c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_EXTIO_INT3_MASK		0x0200000000000000UL
4468c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_PROFILE_INT_SHFT		58
4478c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED0_PROFILE_INT_MASK		0x0400000000000000UL
4488c2ecf20Sopenharmony_ci
4498c2ecf20Sopenharmony_ci/* UV2 unique defines */
4508c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_QP_HCERR_SHFT		1
4518c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_QP_HCERR_MASK		0x0000000000000002UL
4528c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_QP_AOERR0_SHFT		10
4538c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_QP_AOERR0_MASK		0x0000000000000400UL
4548c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_RT_AOERR0_SHFT		17
4558c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_RT_AOERR0_MASK		0x0000000000020000UL
4568c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_NI0_AOERR0_SHFT		18
4578c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_NI0_AOERR0_MASK		0x0000000000040000UL
4588c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_NI1_AOERR0_SHFT		19
4598c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_NI1_AOERR0_MASK		0x0000000000080000UL
4608c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_LB_AOERR1_SHFT		20
4618c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_LB_AOERR1_MASK		0x0000000000100000UL
4628c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_QP_AOERR1_SHFT		21
4638c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_QP_AOERR1_MASK		0x0000000000200000UL
4648c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_RH_AOERR1_SHFT		22
4658c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_RH_AOERR1_MASK		0x0000000000400000UL
4668c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_LH0_AOERR1_SHFT		23
4678c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_LH0_AOERR1_MASK		0x0000000000800000UL
4688c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_LH1_AOERR1_SHFT		24
4698c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_LH1_AOERR1_MASK		0x0000000001000000UL
4708c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_GR0_AOERR1_SHFT		25
4718c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_GR0_AOERR1_MASK		0x0000000002000000UL
4728c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_GR1_AOERR1_SHFT		26
4738c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_GR1_AOERR1_MASK		0x0000000004000000UL
4748c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_XB_AOERR1_SHFT		27
4758c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_XB_AOERR1_MASK		0x0000000008000000UL
4768c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_RT_AOERR1_SHFT		28
4778c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_RT_AOERR1_MASK		0x0000000010000000UL
4788c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_NI0_AOERR1_SHFT		29
4798c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_NI0_AOERR1_MASK		0x0000000020000000UL
4808c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_NI1_AOERR1_SHFT		30
4818c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_NI1_AOERR1_MASK		0x0000000040000000UL
4828c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_SYSTEM_SHUTDOWN_INT_SHFT	31
4838c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_SYSTEM_SHUTDOWN_INT_MASK	0x0000000080000000UL
4848c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_LB_IRQ_INT_0_SHFT		32
4858c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_LB_IRQ_INT_0_MASK		0x0000000100000000UL
4868c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_LB_IRQ_INT_1_SHFT		33
4878c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_LB_IRQ_INT_1_MASK		0x0000000200000000UL
4888c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_LB_IRQ_INT_2_SHFT		34
4898c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_LB_IRQ_INT_2_MASK		0x0000000400000000UL
4908c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_LB_IRQ_INT_3_SHFT		35
4918c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_LB_IRQ_INT_3_MASK		0x0000000800000000UL
4928c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_LB_IRQ_INT_4_SHFT		36
4938c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_LB_IRQ_INT_4_MASK		0x0000001000000000UL
4948c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_LB_IRQ_INT_5_SHFT		37
4958c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_LB_IRQ_INT_5_MASK		0x0000002000000000UL
4968c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_LB_IRQ_INT_6_SHFT		38
4978c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_LB_IRQ_INT_6_MASK		0x0000004000000000UL
4988c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_LB_IRQ_INT_7_SHFT		39
4998c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_LB_IRQ_INT_7_MASK		0x0000008000000000UL
5008c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_LB_IRQ_INT_8_SHFT		40
5018c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_LB_IRQ_INT_8_MASK		0x0000010000000000UL
5028c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_LB_IRQ_INT_9_SHFT		41
5038c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_LB_IRQ_INT_9_MASK		0x0000020000000000UL
5048c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_LB_IRQ_INT_10_SHFT		42
5058c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_LB_IRQ_INT_10_MASK		0x0000040000000000UL
5068c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_LB_IRQ_INT_11_SHFT		43
5078c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_LB_IRQ_INT_11_MASK		0x0000080000000000UL
5088c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_LB_IRQ_INT_12_SHFT		44
5098c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_LB_IRQ_INT_12_MASK		0x0000100000000000UL
5108c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_LB_IRQ_INT_13_SHFT		45
5118c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_LB_IRQ_INT_13_MASK		0x0000200000000000UL
5128c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_LB_IRQ_INT_14_SHFT		46
5138c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_LB_IRQ_INT_14_MASK		0x0000400000000000UL
5148c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_LB_IRQ_INT_15_SHFT		47
5158c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_LB_IRQ_INT_15_MASK		0x0000800000000000UL
5168c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_L1_NMI_INT_SHFT		48
5178c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_L1_NMI_INT_MASK		0x0001000000000000UL
5188c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_STOP_CLOCK_SHFT		49
5198c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_STOP_CLOCK_MASK		0x0002000000000000UL
5208c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_ASIC_TO_L1_SHFT		50
5218c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_ASIC_TO_L1_MASK		0x0004000000000000UL
5228c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_L1_TO_ASIC_SHFT		51
5238c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_L1_TO_ASIC_MASK		0x0008000000000000UL
5248c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_LA_SEQ_TRIGGER_SHFT	52
5258c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_LA_SEQ_TRIGGER_MASK	0x0010000000000000UL
5268c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_IPI_INT_SHFT		53
5278c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_IPI_INT_MASK		0x0020000000000000UL
5288c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_EXTIO_INT0_SHFT		54
5298c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_EXTIO_INT0_MASK		0x0040000000000000UL
5308c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_EXTIO_INT1_SHFT		55
5318c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_EXTIO_INT1_MASK		0x0080000000000000UL
5328c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_EXTIO_INT2_SHFT		56
5338c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_EXTIO_INT2_MASK		0x0100000000000000UL
5348c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_EXTIO_INT3_SHFT		57
5358c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_EXTIO_INT3_MASK		0x0200000000000000UL
5368c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_PROFILE_INT_SHFT		58
5378c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED0_PROFILE_INT_MASK		0x0400000000000000UL
5388c2ecf20Sopenharmony_ci
5398c2ecf20Sopenharmony_ci#define UVH_EVENT_OCCURRED0_EXTIO_INT0_MASK (				\
5408c2ecf20Sopenharmony_ci	is_uv(UV4) ? 0x1000000000000000UL :				\
5418c2ecf20Sopenharmony_ci	is_uv(UV3) ? 0x0040000000000000UL :				\
5428c2ecf20Sopenharmony_ci	is_uv(UV2) ? 0x0040000000000000UL :				\
5438c2ecf20Sopenharmony_ci	0)
5448c2ecf20Sopenharmony_ci#define UVH_EVENT_OCCURRED0_EXTIO_INT0_SHFT (				\
5458c2ecf20Sopenharmony_ci	is_uv(UV4) ? 60 :						\
5468c2ecf20Sopenharmony_ci	is_uv(UV3) ? 54 :						\
5478c2ecf20Sopenharmony_ci	is_uv(UV2) ? 54 :						\
5488c2ecf20Sopenharmony_ci	-1)
5498c2ecf20Sopenharmony_ci
5508c2ecf20Sopenharmony_ciunion uvh_event_occurred0_u {
5518c2ecf20Sopenharmony_ci	unsigned long	v;
5528c2ecf20Sopenharmony_ci
5538c2ecf20Sopenharmony_ci	/* UVH common struct */
5548c2ecf20Sopenharmony_ci	struct uvh_event_occurred0_s {
5558c2ecf20Sopenharmony_ci		unsigned long	lb_hcerr:1;			/* RW */
5568c2ecf20Sopenharmony_ci		unsigned long	rsvd_1_63:63;
5578c2ecf20Sopenharmony_ci	} s;
5588c2ecf20Sopenharmony_ci
5598c2ecf20Sopenharmony_ci	/* UVXH common struct */
5608c2ecf20Sopenharmony_ci	struct uvxh_event_occurred0_s {
5618c2ecf20Sopenharmony_ci		unsigned long	lb_hcerr:1;			/* RW */
5628c2ecf20Sopenharmony_ci		unsigned long	rsvd_1:1;
5638c2ecf20Sopenharmony_ci		unsigned long	rh_hcerr:1;			/* RW */
5648c2ecf20Sopenharmony_ci		unsigned long	lh0_hcerr:1;			/* RW */
5658c2ecf20Sopenharmony_ci		unsigned long	lh1_hcerr:1;			/* RW */
5668c2ecf20Sopenharmony_ci		unsigned long	gr0_hcerr:1;			/* RW */
5678c2ecf20Sopenharmony_ci		unsigned long	gr1_hcerr:1;			/* RW */
5688c2ecf20Sopenharmony_ci		unsigned long	ni0_hcerr:1;			/* RW */
5698c2ecf20Sopenharmony_ci		unsigned long	ni1_hcerr:1;			/* RW */
5708c2ecf20Sopenharmony_ci		unsigned long	lb_aoerr0:1;			/* RW */
5718c2ecf20Sopenharmony_ci		unsigned long	rsvd_10:1;
5728c2ecf20Sopenharmony_ci		unsigned long	rh_aoerr0:1;			/* RW */
5738c2ecf20Sopenharmony_ci		unsigned long	lh0_aoerr0:1;			/* RW */
5748c2ecf20Sopenharmony_ci		unsigned long	lh1_aoerr0:1;			/* RW */
5758c2ecf20Sopenharmony_ci		unsigned long	gr0_aoerr0:1;			/* RW */
5768c2ecf20Sopenharmony_ci		unsigned long	gr1_aoerr0:1;			/* RW */
5778c2ecf20Sopenharmony_ci		unsigned long	xb_aoerr0:1;			/* RW */
5788c2ecf20Sopenharmony_ci		unsigned long	rsvd_17_63:47;
5798c2ecf20Sopenharmony_ci	} sx;
5808c2ecf20Sopenharmony_ci
5818c2ecf20Sopenharmony_ci	/* UVYH common struct */
5828c2ecf20Sopenharmony_ci	struct uvyh_event_occurred0_s {
5838c2ecf20Sopenharmony_ci		unsigned long	lb_hcerr:1;			/* RW */
5848c2ecf20Sopenharmony_ci		unsigned long	kt_hcerr:1;			/* RW */
5858c2ecf20Sopenharmony_ci		unsigned long	rh0_hcerr:1;			/* RW */
5868c2ecf20Sopenharmony_ci		unsigned long	rh1_hcerr:1;			/* RW */
5878c2ecf20Sopenharmony_ci		unsigned long	lh0_hcerr:1;			/* RW */
5888c2ecf20Sopenharmony_ci		unsigned long	lh1_hcerr:1;			/* RW */
5898c2ecf20Sopenharmony_ci		unsigned long	lh2_hcerr:1;			/* RW */
5908c2ecf20Sopenharmony_ci		unsigned long	lh3_hcerr:1;			/* RW */
5918c2ecf20Sopenharmony_ci		unsigned long	xb_hcerr:1;			/* RW */
5928c2ecf20Sopenharmony_ci		unsigned long	rdm_hcerr:1;			/* RW */
5938c2ecf20Sopenharmony_ci		unsigned long	ni0_hcerr:1;			/* RW */
5948c2ecf20Sopenharmony_ci		unsigned long	ni1_hcerr:1;			/* RW */
5958c2ecf20Sopenharmony_ci		unsigned long	lb_aoerr0:1;			/* RW */
5968c2ecf20Sopenharmony_ci		unsigned long	kt_aoerr0:1;			/* RW */
5978c2ecf20Sopenharmony_ci		unsigned long	rh0_aoerr0:1;			/* RW */
5988c2ecf20Sopenharmony_ci		unsigned long	rh1_aoerr0:1;			/* RW */
5998c2ecf20Sopenharmony_ci		unsigned long	lh0_aoerr0:1;			/* RW */
6008c2ecf20Sopenharmony_ci		unsigned long	lh1_aoerr0:1;			/* RW */
6018c2ecf20Sopenharmony_ci		unsigned long	lh2_aoerr0:1;			/* RW */
6028c2ecf20Sopenharmony_ci		unsigned long	lh3_aoerr0:1;			/* RW */
6038c2ecf20Sopenharmony_ci		unsigned long	xb_aoerr0:1;			/* RW */
6048c2ecf20Sopenharmony_ci		unsigned long	rdm_aoerr0:1;			/* RW */
6058c2ecf20Sopenharmony_ci		unsigned long	rt0_aoerr0:1;			/* RW */
6068c2ecf20Sopenharmony_ci		unsigned long	rt1_aoerr0:1;			/* RW */
6078c2ecf20Sopenharmony_ci		unsigned long	ni0_aoerr0:1;			/* RW */
6088c2ecf20Sopenharmony_ci		unsigned long	ni1_aoerr0:1;			/* RW */
6098c2ecf20Sopenharmony_ci		unsigned long	lb_aoerr1:1;			/* RW */
6108c2ecf20Sopenharmony_ci		unsigned long	kt_aoerr1:1;			/* RW */
6118c2ecf20Sopenharmony_ci		unsigned long	rh0_aoerr1:1;			/* RW */
6128c2ecf20Sopenharmony_ci		unsigned long	rh1_aoerr1:1;			/* RW */
6138c2ecf20Sopenharmony_ci		unsigned long	lh0_aoerr1:1;			/* RW */
6148c2ecf20Sopenharmony_ci		unsigned long	lh1_aoerr1:1;			/* RW */
6158c2ecf20Sopenharmony_ci		unsigned long	lh2_aoerr1:1;			/* RW */
6168c2ecf20Sopenharmony_ci		unsigned long	lh3_aoerr1:1;			/* RW */
6178c2ecf20Sopenharmony_ci		unsigned long	xb_aoerr1:1;			/* RW */
6188c2ecf20Sopenharmony_ci		unsigned long	rdm_aoerr1:1;			/* RW */
6198c2ecf20Sopenharmony_ci		unsigned long	rt0_aoerr1:1;			/* RW */
6208c2ecf20Sopenharmony_ci		unsigned long	rt1_aoerr1:1;			/* RW */
6218c2ecf20Sopenharmony_ci		unsigned long	ni0_aoerr1:1;			/* RW */
6228c2ecf20Sopenharmony_ci		unsigned long	ni1_aoerr1:1;			/* RW */
6238c2ecf20Sopenharmony_ci		unsigned long	system_shutdown_int:1;		/* RW */
6248c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_0:1;			/* RW */
6258c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_1:1;			/* RW */
6268c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_2:1;			/* RW */
6278c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_3:1;			/* RW */
6288c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_4:1;			/* RW */
6298c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_5:1;			/* RW */
6308c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_6:1;			/* RW */
6318c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_7:1;			/* RW */
6328c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_8:1;			/* RW */
6338c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_9:1;			/* RW */
6348c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_10:1;		/* RW */
6358c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_11:1;		/* RW */
6368c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_12:1;		/* RW */
6378c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_13:1;		/* RW */
6388c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_14:1;		/* RW */
6398c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_15:1;		/* RW */
6408c2ecf20Sopenharmony_ci		unsigned long	l1_nmi_int:1;			/* RW */
6418c2ecf20Sopenharmony_ci		unsigned long	stop_clock:1;			/* RW */
6428c2ecf20Sopenharmony_ci		unsigned long	asic_to_l1:1;			/* RW */
6438c2ecf20Sopenharmony_ci		unsigned long	l1_to_asic:1;			/* RW */
6448c2ecf20Sopenharmony_ci		unsigned long	la_seq_trigger:1;		/* RW */
6458c2ecf20Sopenharmony_ci		unsigned long	rsvd_62_63:2;
6468c2ecf20Sopenharmony_ci	} sy;
6478c2ecf20Sopenharmony_ci
6488c2ecf20Sopenharmony_ci	/* UV5 unique struct */
6498c2ecf20Sopenharmony_ci	struct uv5h_event_occurred0_s {
6508c2ecf20Sopenharmony_ci		unsigned long	lb_hcerr:1;			/* RW */
6518c2ecf20Sopenharmony_ci		unsigned long	kt_hcerr:1;			/* RW */
6528c2ecf20Sopenharmony_ci		unsigned long	rh0_hcerr:1;			/* RW */
6538c2ecf20Sopenharmony_ci		unsigned long	rh1_hcerr:1;			/* RW */
6548c2ecf20Sopenharmony_ci		unsigned long	lh0_hcerr:1;			/* RW */
6558c2ecf20Sopenharmony_ci		unsigned long	lh1_hcerr:1;			/* RW */
6568c2ecf20Sopenharmony_ci		unsigned long	lh2_hcerr:1;			/* RW */
6578c2ecf20Sopenharmony_ci		unsigned long	lh3_hcerr:1;			/* RW */
6588c2ecf20Sopenharmony_ci		unsigned long	xb_hcerr:1;			/* RW */
6598c2ecf20Sopenharmony_ci		unsigned long	rdm_hcerr:1;			/* RW */
6608c2ecf20Sopenharmony_ci		unsigned long	ni0_hcerr:1;			/* RW */
6618c2ecf20Sopenharmony_ci		unsigned long	ni1_hcerr:1;			/* RW */
6628c2ecf20Sopenharmony_ci		unsigned long	lb_aoerr0:1;			/* RW */
6638c2ecf20Sopenharmony_ci		unsigned long	kt_aoerr0:1;			/* RW */
6648c2ecf20Sopenharmony_ci		unsigned long	rh0_aoerr0:1;			/* RW */
6658c2ecf20Sopenharmony_ci		unsigned long	rh1_aoerr0:1;			/* RW */
6668c2ecf20Sopenharmony_ci		unsigned long	lh0_aoerr0:1;			/* RW */
6678c2ecf20Sopenharmony_ci		unsigned long	lh1_aoerr0:1;			/* RW */
6688c2ecf20Sopenharmony_ci		unsigned long	lh2_aoerr0:1;			/* RW */
6698c2ecf20Sopenharmony_ci		unsigned long	lh3_aoerr0:1;			/* RW */
6708c2ecf20Sopenharmony_ci		unsigned long	xb_aoerr0:1;			/* RW */
6718c2ecf20Sopenharmony_ci		unsigned long	rdm_aoerr0:1;			/* RW */
6728c2ecf20Sopenharmony_ci		unsigned long	rt0_aoerr0:1;			/* RW */
6738c2ecf20Sopenharmony_ci		unsigned long	rt1_aoerr0:1;			/* RW */
6748c2ecf20Sopenharmony_ci		unsigned long	ni0_aoerr0:1;			/* RW */
6758c2ecf20Sopenharmony_ci		unsigned long	ni1_aoerr0:1;			/* RW */
6768c2ecf20Sopenharmony_ci		unsigned long	lb_aoerr1:1;			/* RW */
6778c2ecf20Sopenharmony_ci		unsigned long	kt_aoerr1:1;			/* RW */
6788c2ecf20Sopenharmony_ci		unsigned long	rh0_aoerr1:1;			/* RW */
6798c2ecf20Sopenharmony_ci		unsigned long	rh1_aoerr1:1;			/* RW */
6808c2ecf20Sopenharmony_ci		unsigned long	lh0_aoerr1:1;			/* RW */
6818c2ecf20Sopenharmony_ci		unsigned long	lh1_aoerr1:1;			/* RW */
6828c2ecf20Sopenharmony_ci		unsigned long	lh2_aoerr1:1;			/* RW */
6838c2ecf20Sopenharmony_ci		unsigned long	lh3_aoerr1:1;			/* RW */
6848c2ecf20Sopenharmony_ci		unsigned long	xb_aoerr1:1;			/* RW */
6858c2ecf20Sopenharmony_ci		unsigned long	rdm_aoerr1:1;			/* RW */
6868c2ecf20Sopenharmony_ci		unsigned long	rt0_aoerr1:1;			/* RW */
6878c2ecf20Sopenharmony_ci		unsigned long	rt1_aoerr1:1;			/* RW */
6888c2ecf20Sopenharmony_ci		unsigned long	ni0_aoerr1:1;			/* RW */
6898c2ecf20Sopenharmony_ci		unsigned long	ni1_aoerr1:1;			/* RW */
6908c2ecf20Sopenharmony_ci		unsigned long	system_shutdown_int:1;		/* RW */
6918c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_0:1;			/* RW */
6928c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_1:1;			/* RW */
6938c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_2:1;			/* RW */
6948c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_3:1;			/* RW */
6958c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_4:1;			/* RW */
6968c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_5:1;			/* RW */
6978c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_6:1;			/* RW */
6988c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_7:1;			/* RW */
6998c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_8:1;			/* RW */
7008c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_9:1;			/* RW */
7018c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_10:1;		/* RW */
7028c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_11:1;		/* RW */
7038c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_12:1;		/* RW */
7048c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_13:1;		/* RW */
7058c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_14:1;		/* RW */
7068c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_15:1;		/* RW */
7078c2ecf20Sopenharmony_ci		unsigned long	l1_nmi_int:1;			/* RW */
7088c2ecf20Sopenharmony_ci		unsigned long	stop_clock:1;			/* RW */
7098c2ecf20Sopenharmony_ci		unsigned long	asic_to_l1:1;			/* RW */
7108c2ecf20Sopenharmony_ci		unsigned long	l1_to_asic:1;			/* RW */
7118c2ecf20Sopenharmony_ci		unsigned long	la_seq_trigger:1;		/* RW */
7128c2ecf20Sopenharmony_ci		unsigned long	rsvd_62_63:2;
7138c2ecf20Sopenharmony_ci	} s5;
7148c2ecf20Sopenharmony_ci
7158c2ecf20Sopenharmony_ci	/* UV4 unique struct */
7168c2ecf20Sopenharmony_ci	struct uv4h_event_occurred0_s {
7178c2ecf20Sopenharmony_ci		unsigned long	lb_hcerr:1;			/* RW */
7188c2ecf20Sopenharmony_ci		unsigned long	kt_hcerr:1;			/* RW */
7198c2ecf20Sopenharmony_ci		unsigned long	rh_hcerr:1;			/* RW */
7208c2ecf20Sopenharmony_ci		unsigned long	lh0_hcerr:1;			/* RW */
7218c2ecf20Sopenharmony_ci		unsigned long	lh1_hcerr:1;			/* RW */
7228c2ecf20Sopenharmony_ci		unsigned long	gr0_hcerr:1;			/* RW */
7238c2ecf20Sopenharmony_ci		unsigned long	gr1_hcerr:1;			/* RW */
7248c2ecf20Sopenharmony_ci		unsigned long	ni0_hcerr:1;			/* RW */
7258c2ecf20Sopenharmony_ci		unsigned long	ni1_hcerr:1;			/* RW */
7268c2ecf20Sopenharmony_ci		unsigned long	lb_aoerr0:1;			/* RW */
7278c2ecf20Sopenharmony_ci		unsigned long	kt_aoerr0:1;			/* RW */
7288c2ecf20Sopenharmony_ci		unsigned long	rh_aoerr0:1;			/* RW */
7298c2ecf20Sopenharmony_ci		unsigned long	lh0_aoerr0:1;			/* RW */
7308c2ecf20Sopenharmony_ci		unsigned long	lh1_aoerr0:1;			/* RW */
7318c2ecf20Sopenharmony_ci		unsigned long	gr0_aoerr0:1;			/* RW */
7328c2ecf20Sopenharmony_ci		unsigned long	gr1_aoerr0:1;			/* RW */
7338c2ecf20Sopenharmony_ci		unsigned long	xb_aoerr0:1;			/* RW */
7348c2ecf20Sopenharmony_ci		unsigned long	rtq0_aoerr0:1;			/* RW */
7358c2ecf20Sopenharmony_ci		unsigned long	rtq1_aoerr0:1;			/* RW */
7368c2ecf20Sopenharmony_ci		unsigned long	rtq2_aoerr0:1;			/* RW */
7378c2ecf20Sopenharmony_ci		unsigned long	rtq3_aoerr0:1;			/* RW */
7388c2ecf20Sopenharmony_ci		unsigned long	ni0_aoerr0:1;			/* RW */
7398c2ecf20Sopenharmony_ci		unsigned long	ni1_aoerr0:1;			/* RW */
7408c2ecf20Sopenharmony_ci		unsigned long	lb_aoerr1:1;			/* RW */
7418c2ecf20Sopenharmony_ci		unsigned long	kt_aoerr1:1;			/* RW */
7428c2ecf20Sopenharmony_ci		unsigned long	rh_aoerr1:1;			/* RW */
7438c2ecf20Sopenharmony_ci		unsigned long	lh0_aoerr1:1;			/* RW */
7448c2ecf20Sopenharmony_ci		unsigned long	lh1_aoerr1:1;			/* RW */
7458c2ecf20Sopenharmony_ci		unsigned long	gr0_aoerr1:1;			/* RW */
7468c2ecf20Sopenharmony_ci		unsigned long	gr1_aoerr1:1;			/* RW */
7478c2ecf20Sopenharmony_ci		unsigned long	xb_aoerr1:1;			/* RW */
7488c2ecf20Sopenharmony_ci		unsigned long	rtq0_aoerr1:1;			/* RW */
7498c2ecf20Sopenharmony_ci		unsigned long	rtq1_aoerr1:1;			/* RW */
7508c2ecf20Sopenharmony_ci		unsigned long	rtq2_aoerr1:1;			/* RW */
7518c2ecf20Sopenharmony_ci		unsigned long	rtq3_aoerr1:1;			/* RW */
7528c2ecf20Sopenharmony_ci		unsigned long	ni0_aoerr1:1;			/* RW */
7538c2ecf20Sopenharmony_ci		unsigned long	ni1_aoerr1:1;			/* RW */
7548c2ecf20Sopenharmony_ci		unsigned long	system_shutdown_int:1;		/* RW */
7558c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_0:1;			/* RW */
7568c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_1:1;			/* RW */
7578c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_2:1;			/* RW */
7588c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_3:1;			/* RW */
7598c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_4:1;			/* RW */
7608c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_5:1;			/* RW */
7618c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_6:1;			/* RW */
7628c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_7:1;			/* RW */
7638c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_8:1;			/* RW */
7648c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_9:1;			/* RW */
7658c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_10:1;		/* RW */
7668c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_11:1;		/* RW */
7678c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_12:1;		/* RW */
7688c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_13:1;		/* RW */
7698c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_14:1;		/* RW */
7708c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_15:1;		/* RW */
7718c2ecf20Sopenharmony_ci		unsigned long	l1_nmi_int:1;			/* RW */
7728c2ecf20Sopenharmony_ci		unsigned long	stop_clock:1;			/* RW */
7738c2ecf20Sopenharmony_ci		unsigned long	asic_to_l1:1;			/* RW */
7748c2ecf20Sopenharmony_ci		unsigned long	l1_to_asic:1;			/* RW */
7758c2ecf20Sopenharmony_ci		unsigned long	la_seq_trigger:1;		/* RW */
7768c2ecf20Sopenharmony_ci		unsigned long	ipi_int:1;			/* RW */
7778c2ecf20Sopenharmony_ci		unsigned long	extio_int0:1;			/* RW */
7788c2ecf20Sopenharmony_ci		unsigned long	extio_int1:1;			/* RW */
7798c2ecf20Sopenharmony_ci		unsigned long	extio_int2:1;			/* RW */
7808c2ecf20Sopenharmony_ci		unsigned long	extio_int3:1;			/* RW */
7818c2ecf20Sopenharmony_ci	} s4;
7828c2ecf20Sopenharmony_ci
7838c2ecf20Sopenharmony_ci	/* UV3 unique struct */
7848c2ecf20Sopenharmony_ci	struct uv3h_event_occurred0_s {
7858c2ecf20Sopenharmony_ci		unsigned long	lb_hcerr:1;			/* RW */
7868c2ecf20Sopenharmony_ci		unsigned long	qp_hcerr:1;			/* RW */
7878c2ecf20Sopenharmony_ci		unsigned long	rh_hcerr:1;			/* RW */
7888c2ecf20Sopenharmony_ci		unsigned long	lh0_hcerr:1;			/* RW */
7898c2ecf20Sopenharmony_ci		unsigned long	lh1_hcerr:1;			/* RW */
7908c2ecf20Sopenharmony_ci		unsigned long	gr0_hcerr:1;			/* RW */
7918c2ecf20Sopenharmony_ci		unsigned long	gr1_hcerr:1;			/* RW */
7928c2ecf20Sopenharmony_ci		unsigned long	ni0_hcerr:1;			/* RW */
7938c2ecf20Sopenharmony_ci		unsigned long	ni1_hcerr:1;			/* RW */
7948c2ecf20Sopenharmony_ci		unsigned long	lb_aoerr0:1;			/* RW */
7958c2ecf20Sopenharmony_ci		unsigned long	qp_aoerr0:1;			/* RW */
7968c2ecf20Sopenharmony_ci		unsigned long	rh_aoerr0:1;			/* RW */
7978c2ecf20Sopenharmony_ci		unsigned long	lh0_aoerr0:1;			/* RW */
7988c2ecf20Sopenharmony_ci		unsigned long	lh1_aoerr0:1;			/* RW */
7998c2ecf20Sopenharmony_ci		unsigned long	gr0_aoerr0:1;			/* RW */
8008c2ecf20Sopenharmony_ci		unsigned long	gr1_aoerr0:1;			/* RW */
8018c2ecf20Sopenharmony_ci		unsigned long	xb_aoerr0:1;			/* RW */
8028c2ecf20Sopenharmony_ci		unsigned long	rt_aoerr0:1;			/* RW */
8038c2ecf20Sopenharmony_ci		unsigned long	ni0_aoerr0:1;			/* RW */
8048c2ecf20Sopenharmony_ci		unsigned long	ni1_aoerr0:1;			/* RW */
8058c2ecf20Sopenharmony_ci		unsigned long	lb_aoerr1:1;			/* RW */
8068c2ecf20Sopenharmony_ci		unsigned long	qp_aoerr1:1;			/* RW */
8078c2ecf20Sopenharmony_ci		unsigned long	rh_aoerr1:1;			/* RW */
8088c2ecf20Sopenharmony_ci		unsigned long	lh0_aoerr1:1;			/* RW */
8098c2ecf20Sopenharmony_ci		unsigned long	lh1_aoerr1:1;			/* RW */
8108c2ecf20Sopenharmony_ci		unsigned long	gr0_aoerr1:1;			/* RW */
8118c2ecf20Sopenharmony_ci		unsigned long	gr1_aoerr1:1;			/* RW */
8128c2ecf20Sopenharmony_ci		unsigned long	xb_aoerr1:1;			/* RW */
8138c2ecf20Sopenharmony_ci		unsigned long	rt_aoerr1:1;			/* RW */
8148c2ecf20Sopenharmony_ci		unsigned long	ni0_aoerr1:1;			/* RW */
8158c2ecf20Sopenharmony_ci		unsigned long	ni1_aoerr1:1;			/* RW */
8168c2ecf20Sopenharmony_ci		unsigned long	system_shutdown_int:1;		/* RW */
8178c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_0:1;			/* RW */
8188c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_1:1;			/* RW */
8198c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_2:1;			/* RW */
8208c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_3:1;			/* RW */
8218c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_4:1;			/* RW */
8228c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_5:1;			/* RW */
8238c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_6:1;			/* RW */
8248c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_7:1;			/* RW */
8258c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_8:1;			/* RW */
8268c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_9:1;			/* RW */
8278c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_10:1;		/* RW */
8288c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_11:1;		/* RW */
8298c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_12:1;		/* RW */
8308c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_13:1;		/* RW */
8318c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_14:1;		/* RW */
8328c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_15:1;		/* RW */
8338c2ecf20Sopenharmony_ci		unsigned long	l1_nmi_int:1;			/* RW */
8348c2ecf20Sopenharmony_ci		unsigned long	stop_clock:1;			/* RW */
8358c2ecf20Sopenharmony_ci		unsigned long	asic_to_l1:1;			/* RW */
8368c2ecf20Sopenharmony_ci		unsigned long	l1_to_asic:1;			/* RW */
8378c2ecf20Sopenharmony_ci		unsigned long	la_seq_trigger:1;		/* RW */
8388c2ecf20Sopenharmony_ci		unsigned long	ipi_int:1;			/* RW */
8398c2ecf20Sopenharmony_ci		unsigned long	extio_int0:1;			/* RW */
8408c2ecf20Sopenharmony_ci		unsigned long	extio_int1:1;			/* RW */
8418c2ecf20Sopenharmony_ci		unsigned long	extio_int2:1;			/* RW */
8428c2ecf20Sopenharmony_ci		unsigned long	extio_int3:1;			/* RW */
8438c2ecf20Sopenharmony_ci		unsigned long	profile_int:1;			/* RW */
8448c2ecf20Sopenharmony_ci		unsigned long	rsvd_59_63:5;
8458c2ecf20Sopenharmony_ci	} s3;
8468c2ecf20Sopenharmony_ci
8478c2ecf20Sopenharmony_ci	/* UV2 unique struct */
8488c2ecf20Sopenharmony_ci	struct uv2h_event_occurred0_s {
8498c2ecf20Sopenharmony_ci		unsigned long	lb_hcerr:1;			/* RW */
8508c2ecf20Sopenharmony_ci		unsigned long	qp_hcerr:1;			/* RW */
8518c2ecf20Sopenharmony_ci		unsigned long	rh_hcerr:1;			/* RW */
8528c2ecf20Sopenharmony_ci		unsigned long	lh0_hcerr:1;			/* RW */
8538c2ecf20Sopenharmony_ci		unsigned long	lh1_hcerr:1;			/* RW */
8548c2ecf20Sopenharmony_ci		unsigned long	gr0_hcerr:1;			/* RW */
8558c2ecf20Sopenharmony_ci		unsigned long	gr1_hcerr:1;			/* RW */
8568c2ecf20Sopenharmony_ci		unsigned long	ni0_hcerr:1;			/* RW */
8578c2ecf20Sopenharmony_ci		unsigned long	ni1_hcerr:1;			/* RW */
8588c2ecf20Sopenharmony_ci		unsigned long	lb_aoerr0:1;			/* RW */
8598c2ecf20Sopenharmony_ci		unsigned long	qp_aoerr0:1;			/* RW */
8608c2ecf20Sopenharmony_ci		unsigned long	rh_aoerr0:1;			/* RW */
8618c2ecf20Sopenharmony_ci		unsigned long	lh0_aoerr0:1;			/* RW */
8628c2ecf20Sopenharmony_ci		unsigned long	lh1_aoerr0:1;			/* RW */
8638c2ecf20Sopenharmony_ci		unsigned long	gr0_aoerr0:1;			/* RW */
8648c2ecf20Sopenharmony_ci		unsigned long	gr1_aoerr0:1;			/* RW */
8658c2ecf20Sopenharmony_ci		unsigned long	xb_aoerr0:1;			/* RW */
8668c2ecf20Sopenharmony_ci		unsigned long	rt_aoerr0:1;			/* RW */
8678c2ecf20Sopenharmony_ci		unsigned long	ni0_aoerr0:1;			/* RW */
8688c2ecf20Sopenharmony_ci		unsigned long	ni1_aoerr0:1;			/* RW */
8698c2ecf20Sopenharmony_ci		unsigned long	lb_aoerr1:1;			/* RW */
8708c2ecf20Sopenharmony_ci		unsigned long	qp_aoerr1:1;			/* RW */
8718c2ecf20Sopenharmony_ci		unsigned long	rh_aoerr1:1;			/* RW */
8728c2ecf20Sopenharmony_ci		unsigned long	lh0_aoerr1:1;			/* RW */
8738c2ecf20Sopenharmony_ci		unsigned long	lh1_aoerr1:1;			/* RW */
8748c2ecf20Sopenharmony_ci		unsigned long	gr0_aoerr1:1;			/* RW */
8758c2ecf20Sopenharmony_ci		unsigned long	gr1_aoerr1:1;			/* RW */
8768c2ecf20Sopenharmony_ci		unsigned long	xb_aoerr1:1;			/* RW */
8778c2ecf20Sopenharmony_ci		unsigned long	rt_aoerr1:1;			/* RW */
8788c2ecf20Sopenharmony_ci		unsigned long	ni0_aoerr1:1;			/* RW */
8798c2ecf20Sopenharmony_ci		unsigned long	ni1_aoerr1:1;			/* RW */
8808c2ecf20Sopenharmony_ci		unsigned long	system_shutdown_int:1;		/* RW */
8818c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_0:1;			/* RW */
8828c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_1:1;			/* RW */
8838c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_2:1;			/* RW */
8848c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_3:1;			/* RW */
8858c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_4:1;			/* RW */
8868c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_5:1;			/* RW */
8878c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_6:1;			/* RW */
8888c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_7:1;			/* RW */
8898c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_8:1;			/* RW */
8908c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_9:1;			/* RW */
8918c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_10:1;		/* RW */
8928c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_11:1;		/* RW */
8938c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_12:1;		/* RW */
8948c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_13:1;		/* RW */
8958c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_14:1;		/* RW */
8968c2ecf20Sopenharmony_ci		unsigned long	lb_irq_int_15:1;		/* RW */
8978c2ecf20Sopenharmony_ci		unsigned long	l1_nmi_int:1;			/* RW */
8988c2ecf20Sopenharmony_ci		unsigned long	stop_clock:1;			/* RW */
8998c2ecf20Sopenharmony_ci		unsigned long	asic_to_l1:1;			/* RW */
9008c2ecf20Sopenharmony_ci		unsigned long	l1_to_asic:1;			/* RW */
9018c2ecf20Sopenharmony_ci		unsigned long	la_seq_trigger:1;		/* RW */
9028c2ecf20Sopenharmony_ci		unsigned long	ipi_int:1;			/* RW */
9038c2ecf20Sopenharmony_ci		unsigned long	extio_int0:1;			/* RW */
9048c2ecf20Sopenharmony_ci		unsigned long	extio_int1:1;			/* RW */
9058c2ecf20Sopenharmony_ci		unsigned long	extio_int2:1;			/* RW */
9068c2ecf20Sopenharmony_ci		unsigned long	extio_int3:1;			/* RW */
9078c2ecf20Sopenharmony_ci		unsigned long	profile_int:1;			/* RW */
9088c2ecf20Sopenharmony_ci		unsigned long	rsvd_59_63:5;
9098c2ecf20Sopenharmony_ci	} s2;
9108c2ecf20Sopenharmony_ci};
9118c2ecf20Sopenharmony_ci
9128c2ecf20Sopenharmony_ci/* ========================================================================= */
9138c2ecf20Sopenharmony_ci/*                        UVH_EVENT_OCCURRED0_ALIAS                          */
9148c2ecf20Sopenharmony_ci/* ========================================================================= */
9158c2ecf20Sopenharmony_ci#define UVH_EVENT_OCCURRED0_ALIAS 0x70008UL
9168c2ecf20Sopenharmony_ci
9178c2ecf20Sopenharmony_ci
9188c2ecf20Sopenharmony_ci/* ========================================================================= */
9198c2ecf20Sopenharmony_ci/*                           UVH_EVENT_OCCURRED1                             */
9208c2ecf20Sopenharmony_ci/* ========================================================================= */
9218c2ecf20Sopenharmony_ci#define UVH_EVENT_OCCURRED1 0x70080UL
9228c2ecf20Sopenharmony_ci
9238c2ecf20Sopenharmony_ci
9248c2ecf20Sopenharmony_ci
9258c2ecf20Sopenharmony_ci/* UVYH common defines */
9268c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_IPI_INT_SHFT		0
9278c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_IPI_INT_MASK		0x0000000000000001UL
9288c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_EXTIO_INT0_SHFT		1
9298c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_EXTIO_INT0_MASK		0x0000000000000002UL
9308c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_EXTIO_INT1_SHFT		2
9318c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_EXTIO_INT1_MASK		0x0000000000000004UL
9328c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_EXTIO_INT2_SHFT		3
9338c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_EXTIO_INT2_MASK		0x0000000000000008UL
9348c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_EXTIO_INT3_SHFT		4
9358c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_EXTIO_INT3_MASK		0x0000000000000010UL
9368c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_PROFILE_INT_SHFT		5
9378c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_PROFILE_INT_MASK		0x0000000000000020UL
9388c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_BAU_DATA_SHFT		6
9398c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_BAU_DATA_MASK		0x0000000000000040UL
9408c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_PROC_GENERAL_SHFT		7
9418c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_PROC_GENERAL_MASK		0x0000000000000080UL
9428c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_XH_TLB_INT0_SHFT		8
9438c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_XH_TLB_INT0_MASK		0x0000000000000100UL
9448c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_XH_TLB_INT1_SHFT		9
9458c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_XH_TLB_INT1_MASK		0x0000000000000200UL
9468c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_XH_TLB_INT2_SHFT		10
9478c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_XH_TLB_INT2_MASK		0x0000000000000400UL
9488c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_XH_TLB_INT3_SHFT		11
9498c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_XH_TLB_INT3_MASK		0x0000000000000800UL
9508c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_XH_TLB_INT4_SHFT		12
9518c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_XH_TLB_INT4_MASK		0x0000000000001000UL
9528c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_XH_TLB_INT5_SHFT		13
9538c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_XH_TLB_INT5_MASK		0x0000000000002000UL
9548c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_RDM_TLB_INT0_SHFT		14
9558c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_RDM_TLB_INT0_MASK		0x0000000000004000UL
9568c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_RDM_TLB_INT1_SHFT		15
9578c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_RDM_TLB_INT1_MASK		0x0000000000008000UL
9588c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_RDM_TLB_INT2_SHFT		16
9598c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_RDM_TLB_INT2_MASK		0x0000000000010000UL
9608c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_RDM_TLB_INT3_SHFT		17
9618c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_RDM_TLB_INT3_MASK		0x0000000000020000UL
9628c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_RDM_TLB_INT4_SHFT		18
9638c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_RDM_TLB_INT4_MASK		0x0000000000040000UL
9648c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_RDM_TLB_INT5_SHFT		19
9658c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_RDM_TLB_INT5_MASK		0x0000000000080000UL
9668c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_RDM_TLB_INT6_SHFT		20
9678c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_RDM_TLB_INT6_MASK		0x0000000000100000UL
9688c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_RDM_TLB_INT7_SHFT		21
9698c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_RDM_TLB_INT7_MASK		0x0000000000200000UL
9708c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_RDM_TLB_INT8_SHFT		22
9718c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_RDM_TLB_INT8_MASK		0x0000000000400000UL
9728c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_RDM_TLB_INT9_SHFT		23
9738c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_RDM_TLB_INT9_MASK		0x0000000000800000UL
9748c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_RDM_TLB_INT10_SHFT		24
9758c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_RDM_TLB_INT10_MASK		0x0000000001000000UL
9768c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_RDM_TLB_INT11_SHFT		25
9778c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_RDM_TLB_INT11_MASK		0x0000000002000000UL
9788c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_RDM_TLB_INT12_SHFT		26
9798c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_RDM_TLB_INT12_MASK		0x0000000004000000UL
9808c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_RDM_TLB_INT13_SHFT		27
9818c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_RDM_TLB_INT13_MASK		0x0000000008000000UL
9828c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_RDM_TLB_INT14_SHFT		28
9838c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_RDM_TLB_INT14_MASK		0x0000000010000000UL
9848c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_RDM_TLB_INT15_SHFT		29
9858c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_RDM_TLB_INT15_MASK		0x0000000020000000UL
9868c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_RDM_TLB_INT16_SHFT		30
9878c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_RDM_TLB_INT16_MASK		0x0000000040000000UL
9888c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_RDM_TLB_INT17_SHFT		31
9898c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_RDM_TLB_INT17_MASK		0x0000000080000000UL
9908c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_RDM_TLB_INT18_SHFT		32
9918c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_RDM_TLB_INT18_MASK		0x0000000100000000UL
9928c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_RDM_TLB_INT19_SHFT		33
9938c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_RDM_TLB_INT19_MASK		0x0000000200000000UL
9948c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_RDM_TLB_INT20_SHFT		34
9958c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_RDM_TLB_INT20_MASK		0x0000000400000000UL
9968c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_RDM_TLB_INT21_SHFT		35
9978c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_RDM_TLB_INT21_MASK		0x0000000800000000UL
9988c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_RDM_TLB_INT22_SHFT		36
9998c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_RDM_TLB_INT22_MASK		0x0000001000000000UL
10008c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_RDM_TLB_INT23_SHFT		37
10018c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED1_RDM_TLB_INT23_MASK		0x0000002000000000UL
10028c2ecf20Sopenharmony_ci
10038c2ecf20Sopenharmony_ci/* UV4 unique defines */
10048c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_PROFILE_INT_SHFT		0
10058c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_PROFILE_INT_MASK		0x0000000000000001UL
10068c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_BAU_DATA_SHFT		1
10078c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_BAU_DATA_MASK		0x0000000000000002UL
10088c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_PROC_GENERAL_SHFT		2
10098c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_PROC_GENERAL_MASK		0x0000000000000004UL
10108c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR0_TLB_INT0_SHFT		3
10118c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR0_TLB_INT0_MASK		0x0000000000000008UL
10128c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR0_TLB_INT1_SHFT		4
10138c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR0_TLB_INT1_MASK		0x0000000000000010UL
10148c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR0_TLB_INT2_SHFT		5
10158c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR0_TLB_INT2_MASK		0x0000000000000020UL
10168c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR0_TLB_INT3_SHFT		6
10178c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR0_TLB_INT3_MASK		0x0000000000000040UL
10188c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR0_TLB_INT4_SHFT		7
10198c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR0_TLB_INT4_MASK		0x0000000000000080UL
10208c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR0_TLB_INT5_SHFT		8
10218c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR0_TLB_INT5_MASK		0x0000000000000100UL
10228c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR0_TLB_INT6_SHFT		9
10238c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR0_TLB_INT6_MASK		0x0000000000000200UL
10248c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR0_TLB_INT7_SHFT		10
10258c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR0_TLB_INT7_MASK		0x0000000000000400UL
10268c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR0_TLB_INT8_SHFT		11
10278c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR0_TLB_INT8_MASK		0x0000000000000800UL
10288c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR0_TLB_INT9_SHFT		12
10298c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR0_TLB_INT9_MASK		0x0000000000001000UL
10308c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR0_TLB_INT10_SHFT		13
10318c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR0_TLB_INT10_MASK		0x0000000000002000UL
10328c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR0_TLB_INT11_SHFT		14
10338c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR0_TLB_INT11_MASK		0x0000000000004000UL
10348c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR0_TLB_INT12_SHFT		15
10358c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR0_TLB_INT12_MASK		0x0000000000008000UL
10368c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR0_TLB_INT13_SHFT		16
10378c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR0_TLB_INT13_MASK		0x0000000000010000UL
10388c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR0_TLB_INT14_SHFT		17
10398c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR0_TLB_INT14_MASK		0x0000000000020000UL
10408c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR0_TLB_INT15_SHFT		18
10418c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR0_TLB_INT15_MASK		0x0000000000040000UL
10428c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR0_TLB_INT16_SHFT		19
10438c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR0_TLB_INT16_MASK		0x0000000000080000UL
10448c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR0_TLB_INT17_SHFT		20
10458c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR0_TLB_INT17_MASK		0x0000000000100000UL
10468c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR0_TLB_INT18_SHFT		21
10478c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR0_TLB_INT18_MASK		0x0000000000200000UL
10488c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR0_TLB_INT19_SHFT		22
10498c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR0_TLB_INT19_MASK		0x0000000000400000UL
10508c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR0_TLB_INT20_SHFT		23
10518c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR0_TLB_INT20_MASK		0x0000000000800000UL
10528c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR0_TLB_INT21_SHFT		24
10538c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR0_TLB_INT21_MASK		0x0000000001000000UL
10548c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR0_TLB_INT22_SHFT		25
10558c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR0_TLB_INT22_MASK		0x0000000002000000UL
10568c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR0_TLB_INT23_SHFT		26
10578c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR0_TLB_INT23_MASK		0x0000000004000000UL
10588c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR1_TLB_INT0_SHFT		27
10598c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR1_TLB_INT0_MASK		0x0000000008000000UL
10608c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR1_TLB_INT1_SHFT		28
10618c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR1_TLB_INT1_MASK		0x0000000010000000UL
10628c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR1_TLB_INT2_SHFT		29
10638c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR1_TLB_INT2_MASK		0x0000000020000000UL
10648c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR1_TLB_INT3_SHFT		30
10658c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR1_TLB_INT3_MASK		0x0000000040000000UL
10668c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR1_TLB_INT4_SHFT		31
10678c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR1_TLB_INT4_MASK		0x0000000080000000UL
10688c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR1_TLB_INT5_SHFT		32
10698c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR1_TLB_INT5_MASK		0x0000000100000000UL
10708c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR1_TLB_INT6_SHFT		33
10718c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR1_TLB_INT6_MASK		0x0000000200000000UL
10728c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR1_TLB_INT7_SHFT		34
10738c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR1_TLB_INT7_MASK		0x0000000400000000UL
10748c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR1_TLB_INT8_SHFT		35
10758c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR1_TLB_INT8_MASK		0x0000000800000000UL
10768c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR1_TLB_INT9_SHFT		36
10778c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR1_TLB_INT9_MASK		0x0000001000000000UL
10788c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR1_TLB_INT10_SHFT		37
10798c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR1_TLB_INT10_MASK		0x0000002000000000UL
10808c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR1_TLB_INT11_SHFT		38
10818c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR1_TLB_INT11_MASK		0x0000004000000000UL
10828c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR1_TLB_INT12_SHFT		39
10838c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR1_TLB_INT12_MASK		0x0000008000000000UL
10848c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR1_TLB_INT13_SHFT		40
10858c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR1_TLB_INT13_MASK		0x0000010000000000UL
10868c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR1_TLB_INT14_SHFT		41
10878c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR1_TLB_INT14_MASK		0x0000020000000000UL
10888c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR1_TLB_INT15_SHFT		42
10898c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR1_TLB_INT15_MASK		0x0000040000000000UL
10908c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR1_TLB_INT16_SHFT		43
10918c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR1_TLB_INT16_MASK		0x0000080000000000UL
10928c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR1_TLB_INT17_SHFT		44
10938c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR1_TLB_INT17_MASK		0x0000100000000000UL
10948c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR1_TLB_INT18_SHFT		45
10958c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR1_TLB_INT18_MASK		0x0000200000000000UL
10968c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR1_TLB_INT19_SHFT		46
10978c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR1_TLB_INT19_MASK		0x0000400000000000UL
10988c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR1_TLB_INT20_SHFT		47
10998c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR1_TLB_INT20_MASK		0x0000800000000000UL
11008c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR1_TLB_INT21_SHFT		48
11018c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR1_TLB_INT21_MASK		0x0001000000000000UL
11028c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR1_TLB_INT22_SHFT		49
11038c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR1_TLB_INT22_MASK		0x0002000000000000UL
11048c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR1_TLB_INT23_SHFT		50
11058c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED1_GR1_TLB_INT23_MASK		0x0004000000000000UL
11068c2ecf20Sopenharmony_ci
11078c2ecf20Sopenharmony_ci/* UV3 unique defines */
11088c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_BAU_DATA_SHFT		0
11098c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_BAU_DATA_MASK		0x0000000000000001UL
11108c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_POWER_MANAGEMENT_REQ_SHFT	1
11118c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_POWER_MANAGEMENT_REQ_MASK	0x0000000000000002UL
11128c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT0_SHFT 2
11138c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT0_MASK 0x0000000000000004UL
11148c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT1_SHFT 3
11158c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT1_MASK 0x0000000000000008UL
11168c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT2_SHFT 4
11178c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT2_MASK 0x0000000000000010UL
11188c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT3_SHFT 5
11198c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT3_MASK 0x0000000000000020UL
11208c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT4_SHFT 6
11218c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT4_MASK 0x0000000000000040UL
11228c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT5_SHFT 7
11238c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT5_MASK 0x0000000000000080UL
11248c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT6_SHFT 8
11258c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT6_MASK 0x0000000000000100UL
11268c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT7_SHFT 9
11278c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT7_MASK 0x0000000000000200UL
11288c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT8_SHFT 10
11298c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT8_MASK 0x0000000000000400UL
11308c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT9_SHFT 11
11318c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT9_MASK 0x0000000000000800UL
11328c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT10_SHFT 12
11338c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT10_MASK 0x0000000000001000UL
11348c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT11_SHFT 13
11358c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT11_MASK 0x0000000000002000UL
11368c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT12_SHFT 14
11378c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT12_MASK 0x0000000000004000UL
11388c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT13_SHFT 15
11398c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT13_MASK 0x0000000000008000UL
11408c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT14_SHFT 16
11418c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT14_MASK 0x0000000000010000UL
11428c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT15_SHFT 17
11438c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT15_MASK 0x0000000000020000UL
11448c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR0_TLB_INT0_SHFT		18
11458c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR0_TLB_INT0_MASK		0x0000000000040000UL
11468c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR0_TLB_INT1_SHFT		19
11478c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR0_TLB_INT1_MASK		0x0000000000080000UL
11488c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR0_TLB_INT2_SHFT		20
11498c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR0_TLB_INT2_MASK		0x0000000000100000UL
11508c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR0_TLB_INT3_SHFT		21
11518c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR0_TLB_INT3_MASK		0x0000000000200000UL
11528c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR0_TLB_INT4_SHFT		22
11538c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR0_TLB_INT4_MASK		0x0000000000400000UL
11548c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR0_TLB_INT5_SHFT		23
11558c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR0_TLB_INT5_MASK		0x0000000000800000UL
11568c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR0_TLB_INT6_SHFT		24
11578c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR0_TLB_INT6_MASK		0x0000000001000000UL
11588c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR0_TLB_INT7_SHFT		25
11598c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR0_TLB_INT7_MASK		0x0000000002000000UL
11608c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR0_TLB_INT8_SHFT		26
11618c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR0_TLB_INT8_MASK		0x0000000004000000UL
11628c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR0_TLB_INT9_SHFT		27
11638c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR0_TLB_INT9_MASK		0x0000000008000000UL
11648c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR0_TLB_INT10_SHFT		28
11658c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR0_TLB_INT10_MASK		0x0000000010000000UL
11668c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR0_TLB_INT11_SHFT		29
11678c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR0_TLB_INT11_MASK		0x0000000020000000UL
11688c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR0_TLB_INT12_SHFT		30
11698c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR0_TLB_INT12_MASK		0x0000000040000000UL
11708c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR0_TLB_INT13_SHFT		31
11718c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR0_TLB_INT13_MASK		0x0000000080000000UL
11728c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR0_TLB_INT14_SHFT		32
11738c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR0_TLB_INT14_MASK		0x0000000100000000UL
11748c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR0_TLB_INT15_SHFT		33
11758c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR0_TLB_INT15_MASK		0x0000000200000000UL
11768c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR1_TLB_INT0_SHFT		34
11778c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR1_TLB_INT0_MASK		0x0000000400000000UL
11788c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR1_TLB_INT1_SHFT		35
11798c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR1_TLB_INT1_MASK		0x0000000800000000UL
11808c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR1_TLB_INT2_SHFT		36
11818c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR1_TLB_INT2_MASK		0x0000001000000000UL
11828c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR1_TLB_INT3_SHFT		37
11838c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR1_TLB_INT3_MASK		0x0000002000000000UL
11848c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR1_TLB_INT4_SHFT		38
11858c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR1_TLB_INT4_MASK		0x0000004000000000UL
11868c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR1_TLB_INT5_SHFT		39
11878c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR1_TLB_INT5_MASK		0x0000008000000000UL
11888c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR1_TLB_INT6_SHFT		40
11898c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR1_TLB_INT6_MASK		0x0000010000000000UL
11908c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR1_TLB_INT7_SHFT		41
11918c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR1_TLB_INT7_MASK		0x0000020000000000UL
11928c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR1_TLB_INT8_SHFT		42
11938c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR1_TLB_INT8_MASK		0x0000040000000000UL
11948c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR1_TLB_INT9_SHFT		43
11958c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR1_TLB_INT9_MASK		0x0000080000000000UL
11968c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR1_TLB_INT10_SHFT		44
11978c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR1_TLB_INT10_MASK		0x0000100000000000UL
11988c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR1_TLB_INT11_SHFT		45
11998c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR1_TLB_INT11_MASK		0x0000200000000000UL
12008c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR1_TLB_INT12_SHFT		46
12018c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR1_TLB_INT12_MASK		0x0000400000000000UL
12028c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR1_TLB_INT13_SHFT		47
12038c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR1_TLB_INT13_MASK		0x0000800000000000UL
12048c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR1_TLB_INT14_SHFT		48
12058c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR1_TLB_INT14_MASK		0x0001000000000000UL
12068c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR1_TLB_INT15_SHFT		49
12078c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_GR1_TLB_INT15_MASK		0x0002000000000000UL
12088c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_RTC_INTERVAL_INT_SHFT	50
12098c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_RTC_INTERVAL_INT_MASK	0x0004000000000000UL
12108c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_BAU_DASHBOARD_INT_SHFT	51
12118c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED1_BAU_DASHBOARD_INT_MASK	0x0008000000000000UL
12128c2ecf20Sopenharmony_ci
12138c2ecf20Sopenharmony_ci/* UV2 unique defines */
12148c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_BAU_DATA_SHFT		0
12158c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_BAU_DATA_MASK		0x0000000000000001UL
12168c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_POWER_MANAGEMENT_REQ_SHFT	1
12178c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_POWER_MANAGEMENT_REQ_MASK	0x0000000000000002UL
12188c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT0_SHFT 2
12198c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT0_MASK 0x0000000000000004UL
12208c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT1_SHFT 3
12218c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT1_MASK 0x0000000000000008UL
12228c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT2_SHFT 4
12238c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT2_MASK 0x0000000000000010UL
12248c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT3_SHFT 5
12258c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT3_MASK 0x0000000000000020UL
12268c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT4_SHFT 6
12278c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT4_MASK 0x0000000000000040UL
12288c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT5_SHFT 7
12298c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT5_MASK 0x0000000000000080UL
12308c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT6_SHFT 8
12318c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT6_MASK 0x0000000000000100UL
12328c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT7_SHFT 9
12338c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT7_MASK 0x0000000000000200UL
12348c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT8_SHFT 10
12358c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT8_MASK 0x0000000000000400UL
12368c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT9_SHFT 11
12378c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT9_MASK 0x0000000000000800UL
12388c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT10_SHFT 12
12398c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT10_MASK 0x0000000000001000UL
12408c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT11_SHFT 13
12418c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT11_MASK 0x0000000000002000UL
12428c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT12_SHFT 14
12438c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT12_MASK 0x0000000000004000UL
12448c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT13_SHFT 15
12458c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT13_MASK 0x0000000000008000UL
12468c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT14_SHFT 16
12478c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT14_MASK 0x0000000000010000UL
12488c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT15_SHFT 17
12498c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_MESSAGE_ACCELERATOR_INT15_MASK 0x0000000000020000UL
12508c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR0_TLB_INT0_SHFT		18
12518c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR0_TLB_INT0_MASK		0x0000000000040000UL
12528c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR0_TLB_INT1_SHFT		19
12538c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR0_TLB_INT1_MASK		0x0000000000080000UL
12548c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR0_TLB_INT2_SHFT		20
12558c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR0_TLB_INT2_MASK		0x0000000000100000UL
12568c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR0_TLB_INT3_SHFT		21
12578c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR0_TLB_INT3_MASK		0x0000000000200000UL
12588c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR0_TLB_INT4_SHFT		22
12598c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR0_TLB_INT4_MASK		0x0000000000400000UL
12608c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR0_TLB_INT5_SHFT		23
12618c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR0_TLB_INT5_MASK		0x0000000000800000UL
12628c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR0_TLB_INT6_SHFT		24
12638c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR0_TLB_INT6_MASK		0x0000000001000000UL
12648c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR0_TLB_INT7_SHFT		25
12658c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR0_TLB_INT7_MASK		0x0000000002000000UL
12668c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR0_TLB_INT8_SHFT		26
12678c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR0_TLB_INT8_MASK		0x0000000004000000UL
12688c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR0_TLB_INT9_SHFT		27
12698c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR0_TLB_INT9_MASK		0x0000000008000000UL
12708c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR0_TLB_INT10_SHFT		28
12718c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR0_TLB_INT10_MASK		0x0000000010000000UL
12728c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR0_TLB_INT11_SHFT		29
12738c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR0_TLB_INT11_MASK		0x0000000020000000UL
12748c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR0_TLB_INT12_SHFT		30
12758c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR0_TLB_INT12_MASK		0x0000000040000000UL
12768c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR0_TLB_INT13_SHFT		31
12778c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR0_TLB_INT13_MASK		0x0000000080000000UL
12788c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR0_TLB_INT14_SHFT		32
12798c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR0_TLB_INT14_MASK		0x0000000100000000UL
12808c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR0_TLB_INT15_SHFT		33
12818c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR0_TLB_INT15_MASK		0x0000000200000000UL
12828c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR1_TLB_INT0_SHFT		34
12838c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR1_TLB_INT0_MASK		0x0000000400000000UL
12848c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR1_TLB_INT1_SHFT		35
12858c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR1_TLB_INT1_MASK		0x0000000800000000UL
12868c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR1_TLB_INT2_SHFT		36
12878c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR1_TLB_INT2_MASK		0x0000001000000000UL
12888c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR1_TLB_INT3_SHFT		37
12898c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR1_TLB_INT3_MASK		0x0000002000000000UL
12908c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR1_TLB_INT4_SHFT		38
12918c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR1_TLB_INT4_MASK		0x0000004000000000UL
12928c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR1_TLB_INT5_SHFT		39
12938c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR1_TLB_INT5_MASK		0x0000008000000000UL
12948c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR1_TLB_INT6_SHFT		40
12958c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR1_TLB_INT6_MASK		0x0000010000000000UL
12968c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR1_TLB_INT7_SHFT		41
12978c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR1_TLB_INT7_MASK		0x0000020000000000UL
12988c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR1_TLB_INT8_SHFT		42
12998c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR1_TLB_INT8_MASK		0x0000040000000000UL
13008c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR1_TLB_INT9_SHFT		43
13018c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR1_TLB_INT9_MASK		0x0000080000000000UL
13028c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR1_TLB_INT10_SHFT		44
13038c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR1_TLB_INT10_MASK		0x0000100000000000UL
13048c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR1_TLB_INT11_SHFT		45
13058c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR1_TLB_INT11_MASK		0x0000200000000000UL
13068c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR1_TLB_INT12_SHFT		46
13078c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR1_TLB_INT12_MASK		0x0000400000000000UL
13088c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR1_TLB_INT13_SHFT		47
13098c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR1_TLB_INT13_MASK		0x0000800000000000UL
13108c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR1_TLB_INT14_SHFT		48
13118c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR1_TLB_INT14_MASK		0x0001000000000000UL
13128c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR1_TLB_INT15_SHFT		49
13138c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_GR1_TLB_INT15_MASK		0x0002000000000000UL
13148c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_RTC_INTERVAL_INT_SHFT	50
13158c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_RTC_INTERVAL_INT_MASK	0x0004000000000000UL
13168c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_BAU_DASHBOARD_INT_SHFT	51
13178c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED1_BAU_DASHBOARD_INT_MASK	0x0008000000000000UL
13188c2ecf20Sopenharmony_ci
13198c2ecf20Sopenharmony_ci#define UVH_EVENT_OCCURRED1_EXTIO_INT0_MASK (				\
13208c2ecf20Sopenharmony_ci	is_uv(UV5) ? 0x0000000000000002UL :				\
13218c2ecf20Sopenharmony_ci	0)
13228c2ecf20Sopenharmony_ci#define UVH_EVENT_OCCURRED1_EXTIO_INT0_SHFT (				\
13238c2ecf20Sopenharmony_ci	is_uv(UV5) ? 1 :						\
13248c2ecf20Sopenharmony_ci	-1)
13258c2ecf20Sopenharmony_ci
13268c2ecf20Sopenharmony_ciunion uvyh_event_occurred1_u {
13278c2ecf20Sopenharmony_ci	unsigned long	v;
13288c2ecf20Sopenharmony_ci
13298c2ecf20Sopenharmony_ci	/* UVYH common struct */
13308c2ecf20Sopenharmony_ci	struct uvyh_event_occurred1_s {
13318c2ecf20Sopenharmony_ci		unsigned long	ipi_int:1;			/* RW */
13328c2ecf20Sopenharmony_ci		unsigned long	extio_int0:1;			/* RW */
13338c2ecf20Sopenharmony_ci		unsigned long	extio_int1:1;			/* RW */
13348c2ecf20Sopenharmony_ci		unsigned long	extio_int2:1;			/* RW */
13358c2ecf20Sopenharmony_ci		unsigned long	extio_int3:1;			/* RW */
13368c2ecf20Sopenharmony_ci		unsigned long	profile_int:1;			/* RW */
13378c2ecf20Sopenharmony_ci		unsigned long	bau_data:1;			/* RW */
13388c2ecf20Sopenharmony_ci		unsigned long	proc_general:1;			/* RW */
13398c2ecf20Sopenharmony_ci		unsigned long	xh_tlb_int0:1;			/* RW */
13408c2ecf20Sopenharmony_ci		unsigned long	xh_tlb_int1:1;			/* RW */
13418c2ecf20Sopenharmony_ci		unsigned long	xh_tlb_int2:1;			/* RW */
13428c2ecf20Sopenharmony_ci		unsigned long	xh_tlb_int3:1;			/* RW */
13438c2ecf20Sopenharmony_ci		unsigned long	xh_tlb_int4:1;			/* RW */
13448c2ecf20Sopenharmony_ci		unsigned long	xh_tlb_int5:1;			/* RW */
13458c2ecf20Sopenharmony_ci		unsigned long	rdm_tlb_int0:1;			/* RW */
13468c2ecf20Sopenharmony_ci		unsigned long	rdm_tlb_int1:1;			/* RW */
13478c2ecf20Sopenharmony_ci		unsigned long	rdm_tlb_int2:1;			/* RW */
13488c2ecf20Sopenharmony_ci		unsigned long	rdm_tlb_int3:1;			/* RW */
13498c2ecf20Sopenharmony_ci		unsigned long	rdm_tlb_int4:1;			/* RW */
13508c2ecf20Sopenharmony_ci		unsigned long	rdm_tlb_int5:1;			/* RW */
13518c2ecf20Sopenharmony_ci		unsigned long	rdm_tlb_int6:1;			/* RW */
13528c2ecf20Sopenharmony_ci		unsigned long	rdm_tlb_int7:1;			/* RW */
13538c2ecf20Sopenharmony_ci		unsigned long	rdm_tlb_int8:1;			/* RW */
13548c2ecf20Sopenharmony_ci		unsigned long	rdm_tlb_int9:1;			/* RW */
13558c2ecf20Sopenharmony_ci		unsigned long	rdm_tlb_int10:1;		/* RW */
13568c2ecf20Sopenharmony_ci		unsigned long	rdm_tlb_int11:1;		/* RW */
13578c2ecf20Sopenharmony_ci		unsigned long	rdm_tlb_int12:1;		/* RW */
13588c2ecf20Sopenharmony_ci		unsigned long	rdm_tlb_int13:1;		/* RW */
13598c2ecf20Sopenharmony_ci		unsigned long	rdm_tlb_int14:1;		/* RW */
13608c2ecf20Sopenharmony_ci		unsigned long	rdm_tlb_int15:1;		/* RW */
13618c2ecf20Sopenharmony_ci		unsigned long	rdm_tlb_int16:1;		/* RW */
13628c2ecf20Sopenharmony_ci		unsigned long	rdm_tlb_int17:1;		/* RW */
13638c2ecf20Sopenharmony_ci		unsigned long	rdm_tlb_int18:1;		/* RW */
13648c2ecf20Sopenharmony_ci		unsigned long	rdm_tlb_int19:1;		/* RW */
13658c2ecf20Sopenharmony_ci		unsigned long	rdm_tlb_int20:1;		/* RW */
13668c2ecf20Sopenharmony_ci		unsigned long	rdm_tlb_int21:1;		/* RW */
13678c2ecf20Sopenharmony_ci		unsigned long	rdm_tlb_int22:1;		/* RW */
13688c2ecf20Sopenharmony_ci		unsigned long	rdm_tlb_int23:1;		/* RW */
13698c2ecf20Sopenharmony_ci		unsigned long	rsvd_38_63:26;
13708c2ecf20Sopenharmony_ci	} sy;
13718c2ecf20Sopenharmony_ci
13728c2ecf20Sopenharmony_ci	/* UV5 unique struct */
13738c2ecf20Sopenharmony_ci	struct uv5h_event_occurred1_s {
13748c2ecf20Sopenharmony_ci		unsigned long	ipi_int:1;			/* RW */
13758c2ecf20Sopenharmony_ci		unsigned long	extio_int0:1;			/* RW */
13768c2ecf20Sopenharmony_ci		unsigned long	extio_int1:1;			/* RW */
13778c2ecf20Sopenharmony_ci		unsigned long	extio_int2:1;			/* RW */
13788c2ecf20Sopenharmony_ci		unsigned long	extio_int3:1;			/* RW */
13798c2ecf20Sopenharmony_ci		unsigned long	profile_int:1;			/* RW */
13808c2ecf20Sopenharmony_ci		unsigned long	bau_data:1;			/* RW */
13818c2ecf20Sopenharmony_ci		unsigned long	proc_general:1;			/* RW */
13828c2ecf20Sopenharmony_ci		unsigned long	xh_tlb_int0:1;			/* RW */
13838c2ecf20Sopenharmony_ci		unsigned long	xh_tlb_int1:1;			/* RW */
13848c2ecf20Sopenharmony_ci		unsigned long	xh_tlb_int2:1;			/* RW */
13858c2ecf20Sopenharmony_ci		unsigned long	xh_tlb_int3:1;			/* RW */
13868c2ecf20Sopenharmony_ci		unsigned long	xh_tlb_int4:1;			/* RW */
13878c2ecf20Sopenharmony_ci		unsigned long	xh_tlb_int5:1;			/* RW */
13888c2ecf20Sopenharmony_ci		unsigned long	rdm_tlb_int0:1;			/* RW */
13898c2ecf20Sopenharmony_ci		unsigned long	rdm_tlb_int1:1;			/* RW */
13908c2ecf20Sopenharmony_ci		unsigned long	rdm_tlb_int2:1;			/* RW */
13918c2ecf20Sopenharmony_ci		unsigned long	rdm_tlb_int3:1;			/* RW */
13928c2ecf20Sopenharmony_ci		unsigned long	rdm_tlb_int4:1;			/* RW */
13938c2ecf20Sopenharmony_ci		unsigned long	rdm_tlb_int5:1;			/* RW */
13948c2ecf20Sopenharmony_ci		unsigned long	rdm_tlb_int6:1;			/* RW */
13958c2ecf20Sopenharmony_ci		unsigned long	rdm_tlb_int7:1;			/* RW */
13968c2ecf20Sopenharmony_ci		unsigned long	rdm_tlb_int8:1;			/* RW */
13978c2ecf20Sopenharmony_ci		unsigned long	rdm_tlb_int9:1;			/* RW */
13988c2ecf20Sopenharmony_ci		unsigned long	rdm_tlb_int10:1;		/* RW */
13998c2ecf20Sopenharmony_ci		unsigned long	rdm_tlb_int11:1;		/* RW */
14008c2ecf20Sopenharmony_ci		unsigned long	rdm_tlb_int12:1;		/* RW */
14018c2ecf20Sopenharmony_ci		unsigned long	rdm_tlb_int13:1;		/* RW */
14028c2ecf20Sopenharmony_ci		unsigned long	rdm_tlb_int14:1;		/* RW */
14038c2ecf20Sopenharmony_ci		unsigned long	rdm_tlb_int15:1;		/* RW */
14048c2ecf20Sopenharmony_ci		unsigned long	rdm_tlb_int16:1;		/* RW */
14058c2ecf20Sopenharmony_ci		unsigned long	rdm_tlb_int17:1;		/* RW */
14068c2ecf20Sopenharmony_ci		unsigned long	rdm_tlb_int18:1;		/* RW */
14078c2ecf20Sopenharmony_ci		unsigned long	rdm_tlb_int19:1;		/* RW */
14088c2ecf20Sopenharmony_ci		unsigned long	rdm_tlb_int20:1;		/* RW */
14098c2ecf20Sopenharmony_ci		unsigned long	rdm_tlb_int21:1;		/* RW */
14108c2ecf20Sopenharmony_ci		unsigned long	rdm_tlb_int22:1;		/* RW */
14118c2ecf20Sopenharmony_ci		unsigned long	rdm_tlb_int23:1;		/* RW */
14128c2ecf20Sopenharmony_ci		unsigned long	rsvd_38_63:26;
14138c2ecf20Sopenharmony_ci	} s5;
14148c2ecf20Sopenharmony_ci
14158c2ecf20Sopenharmony_ci	/* UV4 unique struct */
14168c2ecf20Sopenharmony_ci	struct uv4h_event_occurred1_s {
14178c2ecf20Sopenharmony_ci		unsigned long	profile_int:1;			/* RW */
14188c2ecf20Sopenharmony_ci		unsigned long	bau_data:1;			/* RW */
14198c2ecf20Sopenharmony_ci		unsigned long	proc_general:1;			/* RW */
14208c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int0:1;			/* RW */
14218c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int1:1;			/* RW */
14228c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int2:1;			/* RW */
14238c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int3:1;			/* RW */
14248c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int4:1;			/* RW */
14258c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int5:1;			/* RW */
14268c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int6:1;			/* RW */
14278c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int7:1;			/* RW */
14288c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int8:1;			/* RW */
14298c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int9:1;			/* RW */
14308c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int10:1;		/* RW */
14318c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int11:1;		/* RW */
14328c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int12:1;		/* RW */
14338c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int13:1;		/* RW */
14348c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int14:1;		/* RW */
14358c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int15:1;		/* RW */
14368c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int16:1;		/* RW */
14378c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int17:1;		/* RW */
14388c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int18:1;		/* RW */
14398c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int19:1;		/* RW */
14408c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int20:1;		/* RW */
14418c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int21:1;		/* RW */
14428c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int22:1;		/* RW */
14438c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int23:1;		/* RW */
14448c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int0:1;			/* RW */
14458c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int1:1;			/* RW */
14468c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int2:1;			/* RW */
14478c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int3:1;			/* RW */
14488c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int4:1;			/* RW */
14498c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int5:1;			/* RW */
14508c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int6:1;			/* RW */
14518c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int7:1;			/* RW */
14528c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int8:1;			/* RW */
14538c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int9:1;			/* RW */
14548c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int10:1;		/* RW */
14558c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int11:1;		/* RW */
14568c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int12:1;		/* RW */
14578c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int13:1;		/* RW */
14588c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int14:1;		/* RW */
14598c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int15:1;		/* RW */
14608c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int16:1;		/* RW */
14618c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int17:1;		/* RW */
14628c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int18:1;		/* RW */
14638c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int19:1;		/* RW */
14648c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int20:1;		/* RW */
14658c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int21:1;		/* RW */
14668c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int22:1;		/* RW */
14678c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int23:1;		/* RW */
14688c2ecf20Sopenharmony_ci		unsigned long	rsvd_51_63:13;
14698c2ecf20Sopenharmony_ci	} s4;
14708c2ecf20Sopenharmony_ci
14718c2ecf20Sopenharmony_ci	/* UV3 unique struct */
14728c2ecf20Sopenharmony_ci	struct uv3h_event_occurred1_s {
14738c2ecf20Sopenharmony_ci		unsigned long	bau_data:1;			/* RW */
14748c2ecf20Sopenharmony_ci		unsigned long	power_management_req:1;		/* RW */
14758c2ecf20Sopenharmony_ci		unsigned long	message_accelerator_int0:1;	/* RW */
14768c2ecf20Sopenharmony_ci		unsigned long	message_accelerator_int1:1;	/* RW */
14778c2ecf20Sopenharmony_ci		unsigned long	message_accelerator_int2:1;	/* RW */
14788c2ecf20Sopenharmony_ci		unsigned long	message_accelerator_int3:1;	/* RW */
14798c2ecf20Sopenharmony_ci		unsigned long	message_accelerator_int4:1;	/* RW */
14808c2ecf20Sopenharmony_ci		unsigned long	message_accelerator_int5:1;	/* RW */
14818c2ecf20Sopenharmony_ci		unsigned long	message_accelerator_int6:1;	/* RW */
14828c2ecf20Sopenharmony_ci		unsigned long	message_accelerator_int7:1;	/* RW */
14838c2ecf20Sopenharmony_ci		unsigned long	message_accelerator_int8:1;	/* RW */
14848c2ecf20Sopenharmony_ci		unsigned long	message_accelerator_int9:1;	/* RW */
14858c2ecf20Sopenharmony_ci		unsigned long	message_accelerator_int10:1;	/* RW */
14868c2ecf20Sopenharmony_ci		unsigned long	message_accelerator_int11:1;	/* RW */
14878c2ecf20Sopenharmony_ci		unsigned long	message_accelerator_int12:1;	/* RW */
14888c2ecf20Sopenharmony_ci		unsigned long	message_accelerator_int13:1;	/* RW */
14898c2ecf20Sopenharmony_ci		unsigned long	message_accelerator_int14:1;	/* RW */
14908c2ecf20Sopenharmony_ci		unsigned long	message_accelerator_int15:1;	/* RW */
14918c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int0:1;			/* RW */
14928c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int1:1;			/* RW */
14938c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int2:1;			/* RW */
14948c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int3:1;			/* RW */
14958c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int4:1;			/* RW */
14968c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int5:1;			/* RW */
14978c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int6:1;			/* RW */
14988c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int7:1;			/* RW */
14998c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int8:1;			/* RW */
15008c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int9:1;			/* RW */
15018c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int10:1;		/* RW */
15028c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int11:1;		/* RW */
15038c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int12:1;		/* RW */
15048c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int13:1;		/* RW */
15058c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int14:1;		/* RW */
15068c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int15:1;		/* RW */
15078c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int0:1;			/* RW */
15088c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int1:1;			/* RW */
15098c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int2:1;			/* RW */
15108c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int3:1;			/* RW */
15118c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int4:1;			/* RW */
15128c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int5:1;			/* RW */
15138c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int6:1;			/* RW */
15148c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int7:1;			/* RW */
15158c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int8:1;			/* RW */
15168c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int9:1;			/* RW */
15178c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int10:1;		/* RW */
15188c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int11:1;		/* RW */
15198c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int12:1;		/* RW */
15208c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int13:1;		/* RW */
15218c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int14:1;		/* RW */
15228c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int15:1;		/* RW */
15238c2ecf20Sopenharmony_ci		unsigned long	rtc_interval_int:1;		/* RW */
15248c2ecf20Sopenharmony_ci		unsigned long	bau_dashboard_int:1;		/* RW */
15258c2ecf20Sopenharmony_ci		unsigned long	rsvd_52_63:12;
15268c2ecf20Sopenharmony_ci	} s3;
15278c2ecf20Sopenharmony_ci
15288c2ecf20Sopenharmony_ci	/* UV2 unique struct */
15298c2ecf20Sopenharmony_ci	struct uv2h_event_occurred1_s {
15308c2ecf20Sopenharmony_ci		unsigned long	bau_data:1;			/* RW */
15318c2ecf20Sopenharmony_ci		unsigned long	power_management_req:1;		/* RW */
15328c2ecf20Sopenharmony_ci		unsigned long	message_accelerator_int0:1;	/* RW */
15338c2ecf20Sopenharmony_ci		unsigned long	message_accelerator_int1:1;	/* RW */
15348c2ecf20Sopenharmony_ci		unsigned long	message_accelerator_int2:1;	/* RW */
15358c2ecf20Sopenharmony_ci		unsigned long	message_accelerator_int3:1;	/* RW */
15368c2ecf20Sopenharmony_ci		unsigned long	message_accelerator_int4:1;	/* RW */
15378c2ecf20Sopenharmony_ci		unsigned long	message_accelerator_int5:1;	/* RW */
15388c2ecf20Sopenharmony_ci		unsigned long	message_accelerator_int6:1;	/* RW */
15398c2ecf20Sopenharmony_ci		unsigned long	message_accelerator_int7:1;	/* RW */
15408c2ecf20Sopenharmony_ci		unsigned long	message_accelerator_int8:1;	/* RW */
15418c2ecf20Sopenharmony_ci		unsigned long	message_accelerator_int9:1;	/* RW */
15428c2ecf20Sopenharmony_ci		unsigned long	message_accelerator_int10:1;	/* RW */
15438c2ecf20Sopenharmony_ci		unsigned long	message_accelerator_int11:1;	/* RW */
15448c2ecf20Sopenharmony_ci		unsigned long	message_accelerator_int12:1;	/* RW */
15458c2ecf20Sopenharmony_ci		unsigned long	message_accelerator_int13:1;	/* RW */
15468c2ecf20Sopenharmony_ci		unsigned long	message_accelerator_int14:1;	/* RW */
15478c2ecf20Sopenharmony_ci		unsigned long	message_accelerator_int15:1;	/* RW */
15488c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int0:1;			/* RW */
15498c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int1:1;			/* RW */
15508c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int2:1;			/* RW */
15518c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int3:1;			/* RW */
15528c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int4:1;			/* RW */
15538c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int5:1;			/* RW */
15548c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int6:1;			/* RW */
15558c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int7:1;			/* RW */
15568c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int8:1;			/* RW */
15578c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int9:1;			/* RW */
15588c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int10:1;		/* RW */
15598c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int11:1;		/* RW */
15608c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int12:1;		/* RW */
15618c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int13:1;		/* RW */
15628c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int14:1;		/* RW */
15638c2ecf20Sopenharmony_ci		unsigned long	gr0_tlb_int15:1;		/* RW */
15648c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int0:1;			/* RW */
15658c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int1:1;			/* RW */
15668c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int2:1;			/* RW */
15678c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int3:1;			/* RW */
15688c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int4:1;			/* RW */
15698c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int5:1;			/* RW */
15708c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int6:1;			/* RW */
15718c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int7:1;			/* RW */
15728c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int8:1;			/* RW */
15738c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int9:1;			/* RW */
15748c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int10:1;		/* RW */
15758c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int11:1;		/* RW */
15768c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int12:1;		/* RW */
15778c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int13:1;		/* RW */
15788c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int14:1;		/* RW */
15798c2ecf20Sopenharmony_ci		unsigned long	gr1_tlb_int15:1;		/* RW */
15808c2ecf20Sopenharmony_ci		unsigned long	rtc_interval_int:1;		/* RW */
15818c2ecf20Sopenharmony_ci		unsigned long	bau_dashboard_int:1;		/* RW */
15828c2ecf20Sopenharmony_ci		unsigned long	rsvd_52_63:12;
15838c2ecf20Sopenharmony_ci	} s2;
15848c2ecf20Sopenharmony_ci};
15858c2ecf20Sopenharmony_ci
15868c2ecf20Sopenharmony_ci/* ========================================================================= */
15878c2ecf20Sopenharmony_ci/*                        UVH_EVENT_OCCURRED1_ALIAS                          */
15888c2ecf20Sopenharmony_ci/* ========================================================================= */
15898c2ecf20Sopenharmony_ci#define UVH_EVENT_OCCURRED1_ALIAS 0x70088UL
15908c2ecf20Sopenharmony_ci
15918c2ecf20Sopenharmony_ci
15928c2ecf20Sopenharmony_ci/* ========================================================================= */
15938c2ecf20Sopenharmony_ci/*                           UVH_EVENT_OCCURRED2                             */
15948c2ecf20Sopenharmony_ci/* ========================================================================= */
15958c2ecf20Sopenharmony_ci#define UVH_EVENT_OCCURRED2 0x70100UL
15968c2ecf20Sopenharmony_ci
15978c2ecf20Sopenharmony_ci
15988c2ecf20Sopenharmony_ci
15998c2ecf20Sopenharmony_ci/* UVYH common defines */
16008c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_INTERVAL_INT_SHFT	0
16018c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_INTERVAL_INT_MASK	0x0000000000000001UL
16028c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_BAU_DASHBOARD_INT_SHFT	1
16038c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_BAU_DASHBOARD_INT_MASK	0x0000000000000002UL
16048c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_0_SHFT			2
16058c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_0_MASK			0x0000000000000004UL
16068c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_1_SHFT			3
16078c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_1_MASK			0x0000000000000008UL
16088c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_2_SHFT			4
16098c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_2_MASK			0x0000000000000010UL
16108c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_3_SHFT			5
16118c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_3_MASK			0x0000000000000020UL
16128c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_4_SHFT			6
16138c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_4_MASK			0x0000000000000040UL
16148c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_5_SHFT			7
16158c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_5_MASK			0x0000000000000080UL
16168c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_6_SHFT			8
16178c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_6_MASK			0x0000000000000100UL
16188c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_7_SHFT			9
16198c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_7_MASK			0x0000000000000200UL
16208c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_8_SHFT			10
16218c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_8_MASK			0x0000000000000400UL
16228c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_9_SHFT			11
16238c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_9_MASK			0x0000000000000800UL
16248c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_10_SHFT		12
16258c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_10_MASK		0x0000000000001000UL
16268c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_11_SHFT		13
16278c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_11_MASK		0x0000000000002000UL
16288c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_12_SHFT		14
16298c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_12_MASK		0x0000000000004000UL
16308c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_13_SHFT		15
16318c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_13_MASK		0x0000000000008000UL
16328c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_14_SHFT		16
16338c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_14_MASK		0x0000000000010000UL
16348c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_15_SHFT		17
16358c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_15_MASK		0x0000000000020000UL
16368c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_16_SHFT		18
16378c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_16_MASK		0x0000000000040000UL
16388c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_17_SHFT		19
16398c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_17_MASK		0x0000000000080000UL
16408c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_18_SHFT		20
16418c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_18_MASK		0x0000000000100000UL
16428c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_19_SHFT		21
16438c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_19_MASK		0x0000000000200000UL
16448c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_20_SHFT		22
16458c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_20_MASK		0x0000000000400000UL
16468c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_21_SHFT		23
16478c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_21_MASK		0x0000000000800000UL
16488c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_22_SHFT		24
16498c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_22_MASK		0x0000000001000000UL
16508c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_23_SHFT		25
16518c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_23_MASK		0x0000000002000000UL
16528c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_24_SHFT		26
16538c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_24_MASK		0x0000000004000000UL
16548c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_25_SHFT		27
16558c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_25_MASK		0x0000000008000000UL
16568c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_26_SHFT		28
16578c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_26_MASK		0x0000000010000000UL
16588c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_27_SHFT		29
16598c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_27_MASK		0x0000000020000000UL
16608c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_28_SHFT		30
16618c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_28_MASK		0x0000000040000000UL
16628c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_29_SHFT		31
16638c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_29_MASK		0x0000000080000000UL
16648c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_30_SHFT		32
16658c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_30_MASK		0x0000000100000000UL
16668c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_31_SHFT		33
16678c2ecf20Sopenharmony_ci#define UVYH_EVENT_OCCURRED2_RTC_31_MASK		0x0000000200000000UL
16688c2ecf20Sopenharmony_ci
16698c2ecf20Sopenharmony_ci/* UV4 unique defines */
16708c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_MESSAGE_ACCELERATOR_INT0_SHFT 0
16718c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_MESSAGE_ACCELERATOR_INT0_MASK 0x0000000000000001UL
16728c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_MESSAGE_ACCELERATOR_INT1_SHFT 1
16738c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_MESSAGE_ACCELERATOR_INT1_MASK 0x0000000000000002UL
16748c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_MESSAGE_ACCELERATOR_INT2_SHFT 2
16758c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_MESSAGE_ACCELERATOR_INT2_MASK 0x0000000000000004UL
16768c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_MESSAGE_ACCELERATOR_INT3_SHFT 3
16778c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_MESSAGE_ACCELERATOR_INT3_MASK 0x0000000000000008UL
16788c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_MESSAGE_ACCELERATOR_INT4_SHFT 4
16798c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_MESSAGE_ACCELERATOR_INT4_MASK 0x0000000000000010UL
16808c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_MESSAGE_ACCELERATOR_INT5_SHFT 5
16818c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_MESSAGE_ACCELERATOR_INT5_MASK 0x0000000000000020UL
16828c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_MESSAGE_ACCELERATOR_INT6_SHFT 6
16838c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_MESSAGE_ACCELERATOR_INT6_MASK 0x0000000000000040UL
16848c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_MESSAGE_ACCELERATOR_INT7_SHFT 7
16858c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_MESSAGE_ACCELERATOR_INT7_MASK 0x0000000000000080UL
16868c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_MESSAGE_ACCELERATOR_INT8_SHFT 8
16878c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_MESSAGE_ACCELERATOR_INT8_MASK 0x0000000000000100UL
16888c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_MESSAGE_ACCELERATOR_INT9_SHFT 9
16898c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_MESSAGE_ACCELERATOR_INT9_MASK 0x0000000000000200UL
16908c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_MESSAGE_ACCELERATOR_INT10_SHFT 10
16918c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_MESSAGE_ACCELERATOR_INT10_MASK 0x0000000000000400UL
16928c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_MESSAGE_ACCELERATOR_INT11_SHFT 11
16938c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_MESSAGE_ACCELERATOR_INT11_MASK 0x0000000000000800UL
16948c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_MESSAGE_ACCELERATOR_INT12_SHFT 12
16958c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_MESSAGE_ACCELERATOR_INT12_MASK 0x0000000000001000UL
16968c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_MESSAGE_ACCELERATOR_INT13_SHFT 13
16978c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_MESSAGE_ACCELERATOR_INT13_MASK 0x0000000000002000UL
16988c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_MESSAGE_ACCELERATOR_INT14_SHFT 14
16998c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_MESSAGE_ACCELERATOR_INT14_MASK 0x0000000000004000UL
17008c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_MESSAGE_ACCELERATOR_INT15_SHFT 15
17018c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_MESSAGE_ACCELERATOR_INT15_MASK 0x0000000000008000UL
17028c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_INTERVAL_INT_SHFT	16
17038c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_INTERVAL_INT_MASK	0x0000000000010000UL
17048c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_BAU_DASHBOARD_INT_SHFT	17
17058c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_BAU_DASHBOARD_INT_MASK	0x0000000000020000UL
17068c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_0_SHFT			18
17078c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_0_MASK			0x0000000000040000UL
17088c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_1_SHFT			19
17098c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_1_MASK			0x0000000000080000UL
17108c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_2_SHFT			20
17118c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_2_MASK			0x0000000000100000UL
17128c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_3_SHFT			21
17138c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_3_MASK			0x0000000000200000UL
17148c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_4_SHFT			22
17158c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_4_MASK			0x0000000000400000UL
17168c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_5_SHFT			23
17178c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_5_MASK			0x0000000000800000UL
17188c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_6_SHFT			24
17198c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_6_MASK			0x0000000001000000UL
17208c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_7_SHFT			25
17218c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_7_MASK			0x0000000002000000UL
17228c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_8_SHFT			26
17238c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_8_MASK			0x0000000004000000UL
17248c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_9_SHFT			27
17258c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_9_MASK			0x0000000008000000UL
17268c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_10_SHFT		28
17278c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_10_MASK		0x0000000010000000UL
17288c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_11_SHFT		29
17298c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_11_MASK		0x0000000020000000UL
17308c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_12_SHFT		30
17318c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_12_MASK		0x0000000040000000UL
17328c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_13_SHFT		31
17338c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_13_MASK		0x0000000080000000UL
17348c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_14_SHFT		32
17358c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_14_MASK		0x0000000100000000UL
17368c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_15_SHFT		33
17378c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_15_MASK		0x0000000200000000UL
17388c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_16_SHFT		34
17398c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_16_MASK		0x0000000400000000UL
17408c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_17_SHFT		35
17418c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_17_MASK		0x0000000800000000UL
17428c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_18_SHFT		36
17438c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_18_MASK		0x0000001000000000UL
17448c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_19_SHFT		37
17458c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_19_MASK		0x0000002000000000UL
17468c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_20_SHFT		38
17478c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_20_MASK		0x0000004000000000UL
17488c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_21_SHFT		39
17498c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_21_MASK		0x0000008000000000UL
17508c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_22_SHFT		40
17518c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_22_MASK		0x0000010000000000UL
17528c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_23_SHFT		41
17538c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_23_MASK		0x0000020000000000UL
17548c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_24_SHFT		42
17558c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_24_MASK		0x0000040000000000UL
17568c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_25_SHFT		43
17578c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_25_MASK		0x0000080000000000UL
17588c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_26_SHFT		44
17598c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_26_MASK		0x0000100000000000UL
17608c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_27_SHFT		45
17618c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_27_MASK		0x0000200000000000UL
17628c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_28_SHFT		46
17638c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_28_MASK		0x0000400000000000UL
17648c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_29_SHFT		47
17658c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_29_MASK		0x0000800000000000UL
17668c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_30_SHFT		48
17678c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_30_MASK		0x0001000000000000UL
17688c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_31_SHFT		49
17698c2ecf20Sopenharmony_ci#define UV4H_EVENT_OCCURRED2_RTC_31_MASK		0x0002000000000000UL
17708c2ecf20Sopenharmony_ci
17718c2ecf20Sopenharmony_ci/* UV3 unique defines */
17728c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_0_SHFT			0
17738c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_0_MASK			0x0000000000000001UL
17748c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_1_SHFT			1
17758c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_1_MASK			0x0000000000000002UL
17768c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_2_SHFT			2
17778c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_2_MASK			0x0000000000000004UL
17788c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_3_SHFT			3
17798c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_3_MASK			0x0000000000000008UL
17808c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_4_SHFT			4
17818c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_4_MASK			0x0000000000000010UL
17828c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_5_SHFT			5
17838c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_5_MASK			0x0000000000000020UL
17848c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_6_SHFT			6
17858c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_6_MASK			0x0000000000000040UL
17868c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_7_SHFT			7
17878c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_7_MASK			0x0000000000000080UL
17888c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_8_SHFT			8
17898c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_8_MASK			0x0000000000000100UL
17908c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_9_SHFT			9
17918c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_9_MASK			0x0000000000000200UL
17928c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_10_SHFT		10
17938c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_10_MASK		0x0000000000000400UL
17948c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_11_SHFT		11
17958c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_11_MASK		0x0000000000000800UL
17968c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_12_SHFT		12
17978c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_12_MASK		0x0000000000001000UL
17988c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_13_SHFT		13
17998c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_13_MASK		0x0000000000002000UL
18008c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_14_SHFT		14
18018c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_14_MASK		0x0000000000004000UL
18028c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_15_SHFT		15
18038c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_15_MASK		0x0000000000008000UL
18048c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_16_SHFT		16
18058c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_16_MASK		0x0000000000010000UL
18068c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_17_SHFT		17
18078c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_17_MASK		0x0000000000020000UL
18088c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_18_SHFT		18
18098c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_18_MASK		0x0000000000040000UL
18108c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_19_SHFT		19
18118c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_19_MASK		0x0000000000080000UL
18128c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_20_SHFT		20
18138c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_20_MASK		0x0000000000100000UL
18148c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_21_SHFT		21
18158c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_21_MASK		0x0000000000200000UL
18168c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_22_SHFT		22
18178c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_22_MASK		0x0000000000400000UL
18188c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_23_SHFT		23
18198c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_23_MASK		0x0000000000800000UL
18208c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_24_SHFT		24
18218c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_24_MASK		0x0000000001000000UL
18228c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_25_SHFT		25
18238c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_25_MASK		0x0000000002000000UL
18248c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_26_SHFT		26
18258c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_26_MASK		0x0000000004000000UL
18268c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_27_SHFT		27
18278c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_27_MASK		0x0000000008000000UL
18288c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_28_SHFT		28
18298c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_28_MASK		0x0000000010000000UL
18308c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_29_SHFT		29
18318c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_29_MASK		0x0000000020000000UL
18328c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_30_SHFT		30
18338c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_30_MASK		0x0000000040000000UL
18348c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_31_SHFT		31
18358c2ecf20Sopenharmony_ci#define UV3H_EVENT_OCCURRED2_RTC_31_MASK		0x0000000080000000UL
18368c2ecf20Sopenharmony_ci
18378c2ecf20Sopenharmony_ci/* UV2 unique defines */
18388c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_0_SHFT			0
18398c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_0_MASK			0x0000000000000001UL
18408c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_1_SHFT			1
18418c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_1_MASK			0x0000000000000002UL
18428c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_2_SHFT			2
18438c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_2_MASK			0x0000000000000004UL
18448c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_3_SHFT			3
18458c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_3_MASK			0x0000000000000008UL
18468c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_4_SHFT			4
18478c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_4_MASK			0x0000000000000010UL
18488c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_5_SHFT			5
18498c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_5_MASK			0x0000000000000020UL
18508c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_6_SHFT			6
18518c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_6_MASK			0x0000000000000040UL
18528c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_7_SHFT			7
18538c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_7_MASK			0x0000000000000080UL
18548c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_8_SHFT			8
18558c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_8_MASK			0x0000000000000100UL
18568c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_9_SHFT			9
18578c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_9_MASK			0x0000000000000200UL
18588c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_10_SHFT		10
18598c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_10_MASK		0x0000000000000400UL
18608c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_11_SHFT		11
18618c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_11_MASK		0x0000000000000800UL
18628c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_12_SHFT		12
18638c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_12_MASK		0x0000000000001000UL
18648c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_13_SHFT		13
18658c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_13_MASK		0x0000000000002000UL
18668c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_14_SHFT		14
18678c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_14_MASK		0x0000000000004000UL
18688c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_15_SHFT		15
18698c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_15_MASK		0x0000000000008000UL
18708c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_16_SHFT		16
18718c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_16_MASK		0x0000000000010000UL
18728c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_17_SHFT		17
18738c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_17_MASK		0x0000000000020000UL
18748c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_18_SHFT		18
18758c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_18_MASK		0x0000000000040000UL
18768c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_19_SHFT		19
18778c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_19_MASK		0x0000000000080000UL
18788c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_20_SHFT		20
18798c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_20_MASK		0x0000000000100000UL
18808c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_21_SHFT		21
18818c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_21_MASK		0x0000000000200000UL
18828c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_22_SHFT		22
18838c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_22_MASK		0x0000000000400000UL
18848c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_23_SHFT		23
18858c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_23_MASK		0x0000000000800000UL
18868c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_24_SHFT		24
18878c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_24_MASK		0x0000000001000000UL
18888c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_25_SHFT		25
18898c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_25_MASK		0x0000000002000000UL
18908c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_26_SHFT		26
18918c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_26_MASK		0x0000000004000000UL
18928c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_27_SHFT		27
18938c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_27_MASK		0x0000000008000000UL
18948c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_28_SHFT		28
18958c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_28_MASK		0x0000000010000000UL
18968c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_29_SHFT		29
18978c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_29_MASK		0x0000000020000000UL
18988c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_30_SHFT		30
18998c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_30_MASK		0x0000000040000000UL
19008c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_31_SHFT		31
19018c2ecf20Sopenharmony_ci#define UV2H_EVENT_OCCURRED2_RTC_31_MASK		0x0000000080000000UL
19028c2ecf20Sopenharmony_ci
19038c2ecf20Sopenharmony_ci#define UVH_EVENT_OCCURRED2_RTC_1_MASK (				\
19048c2ecf20Sopenharmony_ci	is_uv(UV5) ? 0x0000000000000008UL :				\
19058c2ecf20Sopenharmony_ci	is_uv(UV4) ? 0x0000000000080000UL :				\
19068c2ecf20Sopenharmony_ci	is_uv(UV3) ? 0x0000000000000002UL :				\
19078c2ecf20Sopenharmony_ci	is_uv(UV2) ? 0x0000000000000002UL :				\
19088c2ecf20Sopenharmony_ci	0)
19098c2ecf20Sopenharmony_ci#define UVH_EVENT_OCCURRED2_RTC_1_SHFT (				\
19108c2ecf20Sopenharmony_ci	is_uv(UV5) ? 3 :						\
19118c2ecf20Sopenharmony_ci	is_uv(UV4) ? 19 :						\
19128c2ecf20Sopenharmony_ci	is_uv(UV3) ? 1 :						\
19138c2ecf20Sopenharmony_ci	is_uv(UV2) ? 1 :						\
19148c2ecf20Sopenharmony_ci	-1)
19158c2ecf20Sopenharmony_ci
19168c2ecf20Sopenharmony_ciunion uvyh_event_occurred2_u {
19178c2ecf20Sopenharmony_ci	unsigned long	v;
19188c2ecf20Sopenharmony_ci
19198c2ecf20Sopenharmony_ci	/* UVYH common struct */
19208c2ecf20Sopenharmony_ci	struct uvyh_event_occurred2_s {
19218c2ecf20Sopenharmony_ci		unsigned long	rtc_interval_int:1;		/* RW */
19228c2ecf20Sopenharmony_ci		unsigned long	bau_dashboard_int:1;		/* RW */
19238c2ecf20Sopenharmony_ci		unsigned long	rtc_0:1;			/* RW */
19248c2ecf20Sopenharmony_ci		unsigned long	rtc_1:1;			/* RW */
19258c2ecf20Sopenharmony_ci		unsigned long	rtc_2:1;			/* RW */
19268c2ecf20Sopenharmony_ci		unsigned long	rtc_3:1;			/* RW */
19278c2ecf20Sopenharmony_ci		unsigned long	rtc_4:1;			/* RW */
19288c2ecf20Sopenharmony_ci		unsigned long	rtc_5:1;			/* RW */
19298c2ecf20Sopenharmony_ci		unsigned long	rtc_6:1;			/* RW */
19308c2ecf20Sopenharmony_ci		unsigned long	rtc_7:1;			/* RW */
19318c2ecf20Sopenharmony_ci		unsigned long	rtc_8:1;			/* RW */
19328c2ecf20Sopenharmony_ci		unsigned long	rtc_9:1;			/* RW */
19338c2ecf20Sopenharmony_ci		unsigned long	rtc_10:1;			/* RW */
19348c2ecf20Sopenharmony_ci		unsigned long	rtc_11:1;			/* RW */
19358c2ecf20Sopenharmony_ci		unsigned long	rtc_12:1;			/* RW */
19368c2ecf20Sopenharmony_ci		unsigned long	rtc_13:1;			/* RW */
19378c2ecf20Sopenharmony_ci		unsigned long	rtc_14:1;			/* RW */
19388c2ecf20Sopenharmony_ci		unsigned long	rtc_15:1;			/* RW */
19398c2ecf20Sopenharmony_ci		unsigned long	rtc_16:1;			/* RW */
19408c2ecf20Sopenharmony_ci		unsigned long	rtc_17:1;			/* RW */
19418c2ecf20Sopenharmony_ci		unsigned long	rtc_18:1;			/* RW */
19428c2ecf20Sopenharmony_ci		unsigned long	rtc_19:1;			/* RW */
19438c2ecf20Sopenharmony_ci		unsigned long	rtc_20:1;			/* RW */
19448c2ecf20Sopenharmony_ci		unsigned long	rtc_21:1;			/* RW */
19458c2ecf20Sopenharmony_ci		unsigned long	rtc_22:1;			/* RW */
19468c2ecf20Sopenharmony_ci		unsigned long	rtc_23:1;			/* RW */
19478c2ecf20Sopenharmony_ci		unsigned long	rtc_24:1;			/* RW */
19488c2ecf20Sopenharmony_ci		unsigned long	rtc_25:1;			/* RW */
19498c2ecf20Sopenharmony_ci		unsigned long	rtc_26:1;			/* RW */
19508c2ecf20Sopenharmony_ci		unsigned long	rtc_27:1;			/* RW */
19518c2ecf20Sopenharmony_ci		unsigned long	rtc_28:1;			/* RW */
19528c2ecf20Sopenharmony_ci		unsigned long	rtc_29:1;			/* RW */
19538c2ecf20Sopenharmony_ci		unsigned long	rtc_30:1;			/* RW */
19548c2ecf20Sopenharmony_ci		unsigned long	rtc_31:1;			/* RW */
19558c2ecf20Sopenharmony_ci		unsigned long	rsvd_34_63:30;
19568c2ecf20Sopenharmony_ci	} sy;
19578c2ecf20Sopenharmony_ci
19588c2ecf20Sopenharmony_ci	/* UV5 unique struct */
19598c2ecf20Sopenharmony_ci	struct uv5h_event_occurred2_s {
19608c2ecf20Sopenharmony_ci		unsigned long	rtc_interval_int:1;		/* RW */
19618c2ecf20Sopenharmony_ci		unsigned long	bau_dashboard_int:1;		/* RW */
19628c2ecf20Sopenharmony_ci		unsigned long	rtc_0:1;			/* RW */
19638c2ecf20Sopenharmony_ci		unsigned long	rtc_1:1;			/* RW */
19648c2ecf20Sopenharmony_ci		unsigned long	rtc_2:1;			/* RW */
19658c2ecf20Sopenharmony_ci		unsigned long	rtc_3:1;			/* RW */
19668c2ecf20Sopenharmony_ci		unsigned long	rtc_4:1;			/* RW */
19678c2ecf20Sopenharmony_ci		unsigned long	rtc_5:1;			/* RW */
19688c2ecf20Sopenharmony_ci		unsigned long	rtc_6:1;			/* RW */
19698c2ecf20Sopenharmony_ci		unsigned long	rtc_7:1;			/* RW */
19708c2ecf20Sopenharmony_ci		unsigned long	rtc_8:1;			/* RW */
19718c2ecf20Sopenharmony_ci		unsigned long	rtc_9:1;			/* RW */
19728c2ecf20Sopenharmony_ci		unsigned long	rtc_10:1;			/* RW */
19738c2ecf20Sopenharmony_ci		unsigned long	rtc_11:1;			/* RW */
19748c2ecf20Sopenharmony_ci		unsigned long	rtc_12:1;			/* RW */
19758c2ecf20Sopenharmony_ci		unsigned long	rtc_13:1;			/* RW */
19768c2ecf20Sopenharmony_ci		unsigned long	rtc_14:1;			/* RW */
19778c2ecf20Sopenharmony_ci		unsigned long	rtc_15:1;			/* RW */
19788c2ecf20Sopenharmony_ci		unsigned long	rtc_16:1;			/* RW */
19798c2ecf20Sopenharmony_ci		unsigned long	rtc_17:1;			/* RW */
19808c2ecf20Sopenharmony_ci		unsigned long	rtc_18:1;			/* RW */
19818c2ecf20Sopenharmony_ci		unsigned long	rtc_19:1;			/* RW */
19828c2ecf20Sopenharmony_ci		unsigned long	rtc_20:1;			/* RW */
19838c2ecf20Sopenharmony_ci		unsigned long	rtc_21:1;			/* RW */
19848c2ecf20Sopenharmony_ci		unsigned long	rtc_22:1;			/* RW */
19858c2ecf20Sopenharmony_ci		unsigned long	rtc_23:1;			/* RW */
19868c2ecf20Sopenharmony_ci		unsigned long	rtc_24:1;			/* RW */
19878c2ecf20Sopenharmony_ci		unsigned long	rtc_25:1;			/* RW */
19888c2ecf20Sopenharmony_ci		unsigned long	rtc_26:1;			/* RW */
19898c2ecf20Sopenharmony_ci		unsigned long	rtc_27:1;			/* RW */
19908c2ecf20Sopenharmony_ci		unsigned long	rtc_28:1;			/* RW */
19918c2ecf20Sopenharmony_ci		unsigned long	rtc_29:1;			/* RW */
19928c2ecf20Sopenharmony_ci		unsigned long	rtc_30:1;			/* RW */
19938c2ecf20Sopenharmony_ci		unsigned long	rtc_31:1;			/* RW */
19948c2ecf20Sopenharmony_ci		unsigned long	rsvd_34_63:30;
19958c2ecf20Sopenharmony_ci	} s5;
19968c2ecf20Sopenharmony_ci
19978c2ecf20Sopenharmony_ci	/* UV4 unique struct */
19988c2ecf20Sopenharmony_ci	struct uv4h_event_occurred2_s {
19998c2ecf20Sopenharmony_ci		unsigned long	message_accelerator_int0:1;	/* RW */
20008c2ecf20Sopenharmony_ci		unsigned long	message_accelerator_int1:1;	/* RW */
20018c2ecf20Sopenharmony_ci		unsigned long	message_accelerator_int2:1;	/* RW */
20028c2ecf20Sopenharmony_ci		unsigned long	message_accelerator_int3:1;	/* RW */
20038c2ecf20Sopenharmony_ci		unsigned long	message_accelerator_int4:1;	/* RW */
20048c2ecf20Sopenharmony_ci		unsigned long	message_accelerator_int5:1;	/* RW */
20058c2ecf20Sopenharmony_ci		unsigned long	message_accelerator_int6:1;	/* RW */
20068c2ecf20Sopenharmony_ci		unsigned long	message_accelerator_int7:1;	/* RW */
20078c2ecf20Sopenharmony_ci		unsigned long	message_accelerator_int8:1;	/* RW */
20088c2ecf20Sopenharmony_ci		unsigned long	message_accelerator_int9:1;	/* RW */
20098c2ecf20Sopenharmony_ci		unsigned long	message_accelerator_int10:1;	/* RW */
20108c2ecf20Sopenharmony_ci		unsigned long	message_accelerator_int11:1;	/* RW */
20118c2ecf20Sopenharmony_ci		unsigned long	message_accelerator_int12:1;	/* RW */
20128c2ecf20Sopenharmony_ci		unsigned long	message_accelerator_int13:1;	/* RW */
20138c2ecf20Sopenharmony_ci		unsigned long	message_accelerator_int14:1;	/* RW */
20148c2ecf20Sopenharmony_ci		unsigned long	message_accelerator_int15:1;	/* RW */
20158c2ecf20Sopenharmony_ci		unsigned long	rtc_interval_int:1;		/* RW */
20168c2ecf20Sopenharmony_ci		unsigned long	bau_dashboard_int:1;		/* RW */
20178c2ecf20Sopenharmony_ci		unsigned long	rtc_0:1;			/* RW */
20188c2ecf20Sopenharmony_ci		unsigned long	rtc_1:1;			/* RW */
20198c2ecf20Sopenharmony_ci		unsigned long	rtc_2:1;			/* RW */
20208c2ecf20Sopenharmony_ci		unsigned long	rtc_3:1;			/* RW */
20218c2ecf20Sopenharmony_ci		unsigned long	rtc_4:1;			/* RW */
20228c2ecf20Sopenharmony_ci		unsigned long	rtc_5:1;			/* RW */
20238c2ecf20Sopenharmony_ci		unsigned long	rtc_6:1;			/* RW */
20248c2ecf20Sopenharmony_ci		unsigned long	rtc_7:1;			/* RW */
20258c2ecf20Sopenharmony_ci		unsigned long	rtc_8:1;			/* RW */
20268c2ecf20Sopenharmony_ci		unsigned long	rtc_9:1;			/* RW */
20278c2ecf20Sopenharmony_ci		unsigned long	rtc_10:1;			/* RW */
20288c2ecf20Sopenharmony_ci		unsigned long	rtc_11:1;			/* RW */
20298c2ecf20Sopenharmony_ci		unsigned long	rtc_12:1;			/* RW */
20308c2ecf20Sopenharmony_ci		unsigned long	rtc_13:1;			/* RW */
20318c2ecf20Sopenharmony_ci		unsigned long	rtc_14:1;			/* RW */
20328c2ecf20Sopenharmony_ci		unsigned long	rtc_15:1;			/* RW */
20338c2ecf20Sopenharmony_ci		unsigned long	rtc_16:1;			/* RW */
20348c2ecf20Sopenharmony_ci		unsigned long	rtc_17:1;			/* RW */
20358c2ecf20Sopenharmony_ci		unsigned long	rtc_18:1;			/* RW */
20368c2ecf20Sopenharmony_ci		unsigned long	rtc_19:1;			/* RW */
20378c2ecf20Sopenharmony_ci		unsigned long	rtc_20:1;			/* RW */
20388c2ecf20Sopenharmony_ci		unsigned long	rtc_21:1;			/* RW */
20398c2ecf20Sopenharmony_ci		unsigned long	rtc_22:1;			/* RW */
20408c2ecf20Sopenharmony_ci		unsigned long	rtc_23:1;			/* RW */
20418c2ecf20Sopenharmony_ci		unsigned long	rtc_24:1;			/* RW */
20428c2ecf20Sopenharmony_ci		unsigned long	rtc_25:1;			/* RW */
20438c2ecf20Sopenharmony_ci		unsigned long	rtc_26:1;			/* RW */
20448c2ecf20Sopenharmony_ci		unsigned long	rtc_27:1;			/* RW */
20458c2ecf20Sopenharmony_ci		unsigned long	rtc_28:1;			/* RW */
20468c2ecf20Sopenharmony_ci		unsigned long	rtc_29:1;			/* RW */
20478c2ecf20Sopenharmony_ci		unsigned long	rtc_30:1;			/* RW */
20488c2ecf20Sopenharmony_ci		unsigned long	rtc_31:1;			/* RW */
20498c2ecf20Sopenharmony_ci		unsigned long	rsvd_50_63:14;
20508c2ecf20Sopenharmony_ci	} s4;
20518c2ecf20Sopenharmony_ci
20528c2ecf20Sopenharmony_ci	/* UV3 unique struct */
20538c2ecf20Sopenharmony_ci	struct uv3h_event_occurred2_s {
20548c2ecf20Sopenharmony_ci		unsigned long	rtc_0:1;			/* RW */
20558c2ecf20Sopenharmony_ci		unsigned long	rtc_1:1;			/* RW */
20568c2ecf20Sopenharmony_ci		unsigned long	rtc_2:1;			/* RW */
20578c2ecf20Sopenharmony_ci		unsigned long	rtc_3:1;			/* RW */
20588c2ecf20Sopenharmony_ci		unsigned long	rtc_4:1;			/* RW */
20598c2ecf20Sopenharmony_ci		unsigned long	rtc_5:1;			/* RW */
20608c2ecf20Sopenharmony_ci		unsigned long	rtc_6:1;			/* RW */
20618c2ecf20Sopenharmony_ci		unsigned long	rtc_7:1;			/* RW */
20628c2ecf20Sopenharmony_ci		unsigned long	rtc_8:1;			/* RW */
20638c2ecf20Sopenharmony_ci		unsigned long	rtc_9:1;			/* RW */
20648c2ecf20Sopenharmony_ci		unsigned long	rtc_10:1;			/* RW */
20658c2ecf20Sopenharmony_ci		unsigned long	rtc_11:1;			/* RW */
20668c2ecf20Sopenharmony_ci		unsigned long	rtc_12:1;			/* RW */
20678c2ecf20Sopenharmony_ci		unsigned long	rtc_13:1;			/* RW */
20688c2ecf20Sopenharmony_ci		unsigned long	rtc_14:1;			/* RW */
20698c2ecf20Sopenharmony_ci		unsigned long	rtc_15:1;			/* RW */
20708c2ecf20Sopenharmony_ci		unsigned long	rtc_16:1;			/* RW */
20718c2ecf20Sopenharmony_ci		unsigned long	rtc_17:1;			/* RW */
20728c2ecf20Sopenharmony_ci		unsigned long	rtc_18:1;			/* RW */
20738c2ecf20Sopenharmony_ci		unsigned long	rtc_19:1;			/* RW */
20748c2ecf20Sopenharmony_ci		unsigned long	rtc_20:1;			/* RW */
20758c2ecf20Sopenharmony_ci		unsigned long	rtc_21:1;			/* RW */
20768c2ecf20Sopenharmony_ci		unsigned long	rtc_22:1;			/* RW */
20778c2ecf20Sopenharmony_ci		unsigned long	rtc_23:1;			/* RW */
20788c2ecf20Sopenharmony_ci		unsigned long	rtc_24:1;			/* RW */
20798c2ecf20Sopenharmony_ci		unsigned long	rtc_25:1;			/* RW */
20808c2ecf20Sopenharmony_ci		unsigned long	rtc_26:1;			/* RW */
20818c2ecf20Sopenharmony_ci		unsigned long	rtc_27:1;			/* RW */
20828c2ecf20Sopenharmony_ci		unsigned long	rtc_28:1;			/* RW */
20838c2ecf20Sopenharmony_ci		unsigned long	rtc_29:1;			/* RW */
20848c2ecf20Sopenharmony_ci		unsigned long	rtc_30:1;			/* RW */
20858c2ecf20Sopenharmony_ci		unsigned long	rtc_31:1;			/* RW */
20868c2ecf20Sopenharmony_ci		unsigned long	rsvd_32_63:32;
20878c2ecf20Sopenharmony_ci	} s3;
20888c2ecf20Sopenharmony_ci
20898c2ecf20Sopenharmony_ci	/* UV2 unique struct */
20908c2ecf20Sopenharmony_ci	struct uv2h_event_occurred2_s {
20918c2ecf20Sopenharmony_ci		unsigned long	rtc_0:1;			/* RW */
20928c2ecf20Sopenharmony_ci		unsigned long	rtc_1:1;			/* RW */
20938c2ecf20Sopenharmony_ci		unsigned long	rtc_2:1;			/* RW */
20948c2ecf20Sopenharmony_ci		unsigned long	rtc_3:1;			/* RW */
20958c2ecf20Sopenharmony_ci		unsigned long	rtc_4:1;			/* RW */
20968c2ecf20Sopenharmony_ci		unsigned long	rtc_5:1;			/* RW */
20978c2ecf20Sopenharmony_ci		unsigned long	rtc_6:1;			/* RW */
20988c2ecf20Sopenharmony_ci		unsigned long	rtc_7:1;			/* RW */
20998c2ecf20Sopenharmony_ci		unsigned long	rtc_8:1;			/* RW */
21008c2ecf20Sopenharmony_ci		unsigned long	rtc_9:1;			/* RW */
21018c2ecf20Sopenharmony_ci		unsigned long	rtc_10:1;			/* RW */
21028c2ecf20Sopenharmony_ci		unsigned long	rtc_11:1;			/* RW */
21038c2ecf20Sopenharmony_ci		unsigned long	rtc_12:1;			/* RW */
21048c2ecf20Sopenharmony_ci		unsigned long	rtc_13:1;			/* RW */
21058c2ecf20Sopenharmony_ci		unsigned long	rtc_14:1;			/* RW */
21068c2ecf20Sopenharmony_ci		unsigned long	rtc_15:1;			/* RW */
21078c2ecf20Sopenharmony_ci		unsigned long	rtc_16:1;			/* RW */
21088c2ecf20Sopenharmony_ci		unsigned long	rtc_17:1;			/* RW */
21098c2ecf20Sopenharmony_ci		unsigned long	rtc_18:1;			/* RW */
21108c2ecf20Sopenharmony_ci		unsigned long	rtc_19:1;			/* RW */
21118c2ecf20Sopenharmony_ci		unsigned long	rtc_20:1;			/* RW */
21128c2ecf20Sopenharmony_ci		unsigned long	rtc_21:1;			/* RW */
21138c2ecf20Sopenharmony_ci		unsigned long	rtc_22:1;			/* RW */
21148c2ecf20Sopenharmony_ci		unsigned long	rtc_23:1;			/* RW */
21158c2ecf20Sopenharmony_ci		unsigned long	rtc_24:1;			/* RW */
21168c2ecf20Sopenharmony_ci		unsigned long	rtc_25:1;			/* RW */
21178c2ecf20Sopenharmony_ci		unsigned long	rtc_26:1;			/* RW */
21188c2ecf20Sopenharmony_ci		unsigned long	rtc_27:1;			/* RW */
21198c2ecf20Sopenharmony_ci		unsigned long	rtc_28:1;			/* RW */
21208c2ecf20Sopenharmony_ci		unsigned long	rtc_29:1;			/* RW */
21218c2ecf20Sopenharmony_ci		unsigned long	rtc_30:1;			/* RW */
21228c2ecf20Sopenharmony_ci		unsigned long	rtc_31:1;			/* RW */
21238c2ecf20Sopenharmony_ci		unsigned long	rsvd_32_63:32;
21248c2ecf20Sopenharmony_ci	} s2;
21258c2ecf20Sopenharmony_ci};
21268c2ecf20Sopenharmony_ci
21278c2ecf20Sopenharmony_ci/* ========================================================================= */
21288c2ecf20Sopenharmony_ci/*                        UVH_EVENT_OCCURRED2_ALIAS                          */
21298c2ecf20Sopenharmony_ci/* ========================================================================= */
21308c2ecf20Sopenharmony_ci#define UVH_EVENT_OCCURRED2_ALIAS 0x70108UL
21318c2ecf20Sopenharmony_ci
21328c2ecf20Sopenharmony_ci
21338c2ecf20Sopenharmony_ci/* ========================================================================= */
21348c2ecf20Sopenharmony_ci/*                         UVH_EXTIO_INT0_BROADCAST                          */
21358c2ecf20Sopenharmony_ci/* ========================================================================= */
21368c2ecf20Sopenharmony_ci#define UVH_EXTIO_INT0_BROADCAST 0x61448UL
21378c2ecf20Sopenharmony_ci
21388c2ecf20Sopenharmony_ci/* UVH common defines*/
21398c2ecf20Sopenharmony_ci#define UVH_EXTIO_INT0_BROADCAST_ENABLE_SHFT		0
21408c2ecf20Sopenharmony_ci#define UVH_EXTIO_INT0_BROADCAST_ENABLE_MASK		0x0000000000000001UL
21418c2ecf20Sopenharmony_ci
21428c2ecf20Sopenharmony_ci
21438c2ecf20Sopenharmony_ciunion uvh_extio_int0_broadcast_u {
21448c2ecf20Sopenharmony_ci	unsigned long	v;
21458c2ecf20Sopenharmony_ci
21468c2ecf20Sopenharmony_ci	/* UVH common struct */
21478c2ecf20Sopenharmony_ci	struct uvh_extio_int0_broadcast_s {
21488c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
21498c2ecf20Sopenharmony_ci		unsigned long	rsvd_1_63:63;
21508c2ecf20Sopenharmony_ci	} s;
21518c2ecf20Sopenharmony_ci
21528c2ecf20Sopenharmony_ci	/* UV5 unique struct */
21538c2ecf20Sopenharmony_ci	struct uv5h_extio_int0_broadcast_s {
21548c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
21558c2ecf20Sopenharmony_ci		unsigned long	rsvd_1_63:63;
21568c2ecf20Sopenharmony_ci	} s5;
21578c2ecf20Sopenharmony_ci
21588c2ecf20Sopenharmony_ci	/* UV4 unique struct */
21598c2ecf20Sopenharmony_ci	struct uv4h_extio_int0_broadcast_s {
21608c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
21618c2ecf20Sopenharmony_ci		unsigned long	rsvd_1_63:63;
21628c2ecf20Sopenharmony_ci	} s4;
21638c2ecf20Sopenharmony_ci
21648c2ecf20Sopenharmony_ci	/* UV3 unique struct */
21658c2ecf20Sopenharmony_ci	struct uv3h_extio_int0_broadcast_s {
21668c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
21678c2ecf20Sopenharmony_ci		unsigned long	rsvd_1_63:63;
21688c2ecf20Sopenharmony_ci	} s3;
21698c2ecf20Sopenharmony_ci
21708c2ecf20Sopenharmony_ci	/* UV2 unique struct */
21718c2ecf20Sopenharmony_ci	struct uv2h_extio_int0_broadcast_s {
21728c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
21738c2ecf20Sopenharmony_ci		unsigned long	rsvd_1_63:63;
21748c2ecf20Sopenharmony_ci	} s2;
21758c2ecf20Sopenharmony_ci};
21768c2ecf20Sopenharmony_ci
21778c2ecf20Sopenharmony_ci/* ========================================================================= */
21788c2ecf20Sopenharmony_ci/*                          UVH_GR0_GAM_GR_CONFIG                            */
21798c2ecf20Sopenharmony_ci/* ========================================================================= */
21808c2ecf20Sopenharmony_ci#define UVH_GR0_GAM_GR_CONFIG (						\
21818c2ecf20Sopenharmony_ci	is_uv(UV5) ? 0x600028UL :					\
21828c2ecf20Sopenharmony_ci	is_uv(UV4) ? 0x600028UL :					\
21838c2ecf20Sopenharmony_ci	is_uv(UV3) ? 0xc00028UL :					\
21848c2ecf20Sopenharmony_ci	is_uv(UV2) ? 0xc00028UL :					\
21858c2ecf20Sopenharmony_ci	0)
21868c2ecf20Sopenharmony_ci
21878c2ecf20Sopenharmony_ci
21888c2ecf20Sopenharmony_ci
21898c2ecf20Sopenharmony_ci/* UVYH common defines */
21908c2ecf20Sopenharmony_ci#define UVYH_GR0_GAM_GR_CONFIG_SUBSPACE_SHFT		10
21918c2ecf20Sopenharmony_ci#define UVYH_GR0_GAM_GR_CONFIG_SUBSPACE_MASK		0x0000000000000400UL
21928c2ecf20Sopenharmony_ci
21938c2ecf20Sopenharmony_ci/* UV4 unique defines */
21948c2ecf20Sopenharmony_ci#define UV4H_GR0_GAM_GR_CONFIG_SUBSPACE_SHFT		10
21958c2ecf20Sopenharmony_ci#define UV4H_GR0_GAM_GR_CONFIG_SUBSPACE_MASK		0x0000000000000400UL
21968c2ecf20Sopenharmony_ci
21978c2ecf20Sopenharmony_ci/* UV3 unique defines */
21988c2ecf20Sopenharmony_ci#define UV3H_GR0_GAM_GR_CONFIG_M_SKT_SHFT		0
21998c2ecf20Sopenharmony_ci#define UV3H_GR0_GAM_GR_CONFIG_M_SKT_MASK		0x000000000000003fUL
22008c2ecf20Sopenharmony_ci#define UV3H_GR0_GAM_GR_CONFIG_SUBSPACE_SHFT		10
22018c2ecf20Sopenharmony_ci#define UV3H_GR0_GAM_GR_CONFIG_SUBSPACE_MASK		0x0000000000000400UL
22028c2ecf20Sopenharmony_ci
22038c2ecf20Sopenharmony_ci/* UV2 unique defines */
22048c2ecf20Sopenharmony_ci#define UV2H_GR0_GAM_GR_CONFIG_N_GR_SHFT		0
22058c2ecf20Sopenharmony_ci#define UV2H_GR0_GAM_GR_CONFIG_N_GR_MASK		0x000000000000000fUL
22068c2ecf20Sopenharmony_ci
22078c2ecf20Sopenharmony_ci
22088c2ecf20Sopenharmony_ciunion uvyh_gr0_gam_gr_config_u {
22098c2ecf20Sopenharmony_ci	unsigned long	v;
22108c2ecf20Sopenharmony_ci
22118c2ecf20Sopenharmony_ci	/* UVYH common struct */
22128c2ecf20Sopenharmony_ci	struct uvyh_gr0_gam_gr_config_s {
22138c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_9:10;
22148c2ecf20Sopenharmony_ci		unsigned long	subspace:1;			/* RW */
22158c2ecf20Sopenharmony_ci		unsigned long	rsvd_11_63:53;
22168c2ecf20Sopenharmony_ci	} sy;
22178c2ecf20Sopenharmony_ci
22188c2ecf20Sopenharmony_ci	/* UV5 unique struct */
22198c2ecf20Sopenharmony_ci	struct uv5h_gr0_gam_gr_config_s {
22208c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_9:10;
22218c2ecf20Sopenharmony_ci		unsigned long	subspace:1;			/* RW */
22228c2ecf20Sopenharmony_ci		unsigned long	rsvd_11_63:53;
22238c2ecf20Sopenharmony_ci	} s5;
22248c2ecf20Sopenharmony_ci
22258c2ecf20Sopenharmony_ci	/* UV4 unique struct */
22268c2ecf20Sopenharmony_ci	struct uv4h_gr0_gam_gr_config_s {
22278c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_9:10;
22288c2ecf20Sopenharmony_ci		unsigned long	subspace:1;			/* RW */
22298c2ecf20Sopenharmony_ci		unsigned long	rsvd_11_63:53;
22308c2ecf20Sopenharmony_ci	} s4;
22318c2ecf20Sopenharmony_ci
22328c2ecf20Sopenharmony_ci	/* UV3 unique struct */
22338c2ecf20Sopenharmony_ci	struct uv3h_gr0_gam_gr_config_s {
22348c2ecf20Sopenharmony_ci		unsigned long	m_skt:6;			/* RW */
22358c2ecf20Sopenharmony_ci		unsigned long	undef_6_9:4;			/* Undefined */
22368c2ecf20Sopenharmony_ci		unsigned long	subspace:1;			/* RW */
22378c2ecf20Sopenharmony_ci		unsigned long	reserved:53;
22388c2ecf20Sopenharmony_ci	} s3;
22398c2ecf20Sopenharmony_ci
22408c2ecf20Sopenharmony_ci	/* UV2 unique struct */
22418c2ecf20Sopenharmony_ci	struct uv2h_gr0_gam_gr_config_s {
22428c2ecf20Sopenharmony_ci		unsigned long	n_gr:4;				/* RW */
22438c2ecf20Sopenharmony_ci		unsigned long	reserved:60;
22448c2ecf20Sopenharmony_ci	} s2;
22458c2ecf20Sopenharmony_ci};
22468c2ecf20Sopenharmony_ci
22478c2ecf20Sopenharmony_ci/* ========================================================================= */
22488c2ecf20Sopenharmony_ci/*                         UVH_GR0_TLB_INT0_CONFIG                           */
22498c2ecf20Sopenharmony_ci/* ========================================================================= */
22508c2ecf20Sopenharmony_ci#define UVH_GR0_TLB_INT0_CONFIG (					\
22518c2ecf20Sopenharmony_ci	is_uv(UV4) ? 0x61b00UL :					\
22528c2ecf20Sopenharmony_ci	is_uv(UV3) ? 0x61b00UL :					\
22538c2ecf20Sopenharmony_ci	is_uv(UV2) ? 0x61b00UL :					\
22548c2ecf20Sopenharmony_ci	uv_undefined("UVH_GR0_TLB_INT0_CONFIG"))
22558c2ecf20Sopenharmony_ci
22568c2ecf20Sopenharmony_ci
22578c2ecf20Sopenharmony_ci/* UVXH common defines */
22588c2ecf20Sopenharmony_ci#define UVXH_GR0_TLB_INT0_CONFIG_VECTOR_SHFT		0
22598c2ecf20Sopenharmony_ci#define UVXH_GR0_TLB_INT0_CONFIG_VECTOR_MASK		0x00000000000000ffUL
22608c2ecf20Sopenharmony_ci#define UVXH_GR0_TLB_INT0_CONFIG_DM_SHFT		8
22618c2ecf20Sopenharmony_ci#define UVXH_GR0_TLB_INT0_CONFIG_DM_MASK		0x0000000000000700UL
22628c2ecf20Sopenharmony_ci#define UVXH_GR0_TLB_INT0_CONFIG_DESTMODE_SHFT		11
22638c2ecf20Sopenharmony_ci#define UVXH_GR0_TLB_INT0_CONFIG_DESTMODE_MASK		0x0000000000000800UL
22648c2ecf20Sopenharmony_ci#define UVXH_GR0_TLB_INT0_CONFIG_STATUS_SHFT		12
22658c2ecf20Sopenharmony_ci#define UVXH_GR0_TLB_INT0_CONFIG_STATUS_MASK		0x0000000000001000UL
22668c2ecf20Sopenharmony_ci#define UVXH_GR0_TLB_INT0_CONFIG_P_SHFT			13
22678c2ecf20Sopenharmony_ci#define UVXH_GR0_TLB_INT0_CONFIG_P_MASK			0x0000000000002000UL
22688c2ecf20Sopenharmony_ci#define UVXH_GR0_TLB_INT0_CONFIG_T_SHFT			15
22698c2ecf20Sopenharmony_ci#define UVXH_GR0_TLB_INT0_CONFIG_T_MASK			0x0000000000008000UL
22708c2ecf20Sopenharmony_ci#define UVXH_GR0_TLB_INT0_CONFIG_M_SHFT			16
22718c2ecf20Sopenharmony_ci#define UVXH_GR0_TLB_INT0_CONFIG_M_MASK			0x0000000000010000UL
22728c2ecf20Sopenharmony_ci#define UVXH_GR0_TLB_INT0_CONFIG_APIC_ID_SHFT		32
22738c2ecf20Sopenharmony_ci#define UVXH_GR0_TLB_INT0_CONFIG_APIC_ID_MASK		0xffffffff00000000UL
22748c2ecf20Sopenharmony_ci
22758c2ecf20Sopenharmony_ci
22768c2ecf20Sopenharmony_ciunion uvh_gr0_tlb_int0_config_u {
22778c2ecf20Sopenharmony_ci	unsigned long	v;
22788c2ecf20Sopenharmony_ci
22798c2ecf20Sopenharmony_ci	/* UVH common struct */
22808c2ecf20Sopenharmony_ci	struct uvh_gr0_tlb_int0_config_s {
22818c2ecf20Sopenharmony_ci		unsigned long	vector_:8;			/* RW */
22828c2ecf20Sopenharmony_ci		unsigned long	dm:3;				/* RW */
22838c2ecf20Sopenharmony_ci		unsigned long	destmode:1;			/* RW */
22848c2ecf20Sopenharmony_ci		unsigned long	status:1;			/* RO */
22858c2ecf20Sopenharmony_ci		unsigned long	p:1;				/* RO */
22868c2ecf20Sopenharmony_ci		unsigned long	rsvd_14:1;
22878c2ecf20Sopenharmony_ci		unsigned long	t:1;				/* RO */
22888c2ecf20Sopenharmony_ci		unsigned long	m:1;				/* RW */
22898c2ecf20Sopenharmony_ci		unsigned long	rsvd_17_31:15;
22908c2ecf20Sopenharmony_ci		unsigned long	apic_id:32;			/* RW */
22918c2ecf20Sopenharmony_ci	} s;
22928c2ecf20Sopenharmony_ci
22938c2ecf20Sopenharmony_ci	/* UVXH common struct */
22948c2ecf20Sopenharmony_ci	struct uvxh_gr0_tlb_int0_config_s {
22958c2ecf20Sopenharmony_ci		unsigned long	vector_:8;			/* RW */
22968c2ecf20Sopenharmony_ci		unsigned long	dm:3;				/* RW */
22978c2ecf20Sopenharmony_ci		unsigned long	destmode:1;			/* RW */
22988c2ecf20Sopenharmony_ci		unsigned long	status:1;			/* RO */
22998c2ecf20Sopenharmony_ci		unsigned long	p:1;				/* RO */
23008c2ecf20Sopenharmony_ci		unsigned long	rsvd_14:1;
23018c2ecf20Sopenharmony_ci		unsigned long	t:1;				/* RO */
23028c2ecf20Sopenharmony_ci		unsigned long	m:1;				/* RW */
23038c2ecf20Sopenharmony_ci		unsigned long	rsvd_17_31:15;
23048c2ecf20Sopenharmony_ci		unsigned long	apic_id:32;			/* RW */
23058c2ecf20Sopenharmony_ci	} sx;
23068c2ecf20Sopenharmony_ci
23078c2ecf20Sopenharmony_ci	/* UV4 unique struct */
23088c2ecf20Sopenharmony_ci	struct uv4h_gr0_tlb_int0_config_s {
23098c2ecf20Sopenharmony_ci		unsigned long	vector_:8;			/* RW */
23108c2ecf20Sopenharmony_ci		unsigned long	dm:3;				/* RW */
23118c2ecf20Sopenharmony_ci		unsigned long	destmode:1;			/* RW */
23128c2ecf20Sopenharmony_ci		unsigned long	status:1;			/* RO */
23138c2ecf20Sopenharmony_ci		unsigned long	p:1;				/* RO */
23148c2ecf20Sopenharmony_ci		unsigned long	rsvd_14:1;
23158c2ecf20Sopenharmony_ci		unsigned long	t:1;				/* RO */
23168c2ecf20Sopenharmony_ci		unsigned long	m:1;				/* RW */
23178c2ecf20Sopenharmony_ci		unsigned long	rsvd_17_31:15;
23188c2ecf20Sopenharmony_ci		unsigned long	apic_id:32;			/* RW */
23198c2ecf20Sopenharmony_ci	} s4;
23208c2ecf20Sopenharmony_ci
23218c2ecf20Sopenharmony_ci	/* UV3 unique struct */
23228c2ecf20Sopenharmony_ci	struct uv3h_gr0_tlb_int0_config_s {
23238c2ecf20Sopenharmony_ci		unsigned long	vector_:8;			/* RW */
23248c2ecf20Sopenharmony_ci		unsigned long	dm:3;				/* RW */
23258c2ecf20Sopenharmony_ci		unsigned long	destmode:1;			/* RW */
23268c2ecf20Sopenharmony_ci		unsigned long	status:1;			/* RO */
23278c2ecf20Sopenharmony_ci		unsigned long	p:1;				/* RO */
23288c2ecf20Sopenharmony_ci		unsigned long	rsvd_14:1;
23298c2ecf20Sopenharmony_ci		unsigned long	t:1;				/* RO */
23308c2ecf20Sopenharmony_ci		unsigned long	m:1;				/* RW */
23318c2ecf20Sopenharmony_ci		unsigned long	rsvd_17_31:15;
23328c2ecf20Sopenharmony_ci		unsigned long	apic_id:32;			/* RW */
23338c2ecf20Sopenharmony_ci	} s3;
23348c2ecf20Sopenharmony_ci
23358c2ecf20Sopenharmony_ci	/* UV2 unique struct */
23368c2ecf20Sopenharmony_ci	struct uv2h_gr0_tlb_int0_config_s {
23378c2ecf20Sopenharmony_ci		unsigned long	vector_:8;			/* RW */
23388c2ecf20Sopenharmony_ci		unsigned long	dm:3;				/* RW */
23398c2ecf20Sopenharmony_ci		unsigned long	destmode:1;			/* RW */
23408c2ecf20Sopenharmony_ci		unsigned long	status:1;			/* RO */
23418c2ecf20Sopenharmony_ci		unsigned long	p:1;				/* RO */
23428c2ecf20Sopenharmony_ci		unsigned long	rsvd_14:1;
23438c2ecf20Sopenharmony_ci		unsigned long	t:1;				/* RO */
23448c2ecf20Sopenharmony_ci		unsigned long	m:1;				/* RW */
23458c2ecf20Sopenharmony_ci		unsigned long	rsvd_17_31:15;
23468c2ecf20Sopenharmony_ci		unsigned long	apic_id:32;			/* RW */
23478c2ecf20Sopenharmony_ci	} s2;
23488c2ecf20Sopenharmony_ci};
23498c2ecf20Sopenharmony_ci
23508c2ecf20Sopenharmony_ci/* ========================================================================= */
23518c2ecf20Sopenharmony_ci/*                         UVH_GR0_TLB_INT1_CONFIG                           */
23528c2ecf20Sopenharmony_ci/* ========================================================================= */
23538c2ecf20Sopenharmony_ci#define UVH_GR0_TLB_INT1_CONFIG (					\
23548c2ecf20Sopenharmony_ci	is_uv(UV4) ? 0x61b40UL :					\
23558c2ecf20Sopenharmony_ci	is_uv(UV3) ? 0x61b40UL :					\
23568c2ecf20Sopenharmony_ci	is_uv(UV2) ? 0x61b40UL :					\
23578c2ecf20Sopenharmony_ci	uv_undefined("UVH_GR0_TLB_INT1_CONFIG"))
23588c2ecf20Sopenharmony_ci
23598c2ecf20Sopenharmony_ci
23608c2ecf20Sopenharmony_ci/* UVXH common defines */
23618c2ecf20Sopenharmony_ci#define UVXH_GR0_TLB_INT1_CONFIG_VECTOR_SHFT		0
23628c2ecf20Sopenharmony_ci#define UVXH_GR0_TLB_INT1_CONFIG_VECTOR_MASK		0x00000000000000ffUL
23638c2ecf20Sopenharmony_ci#define UVXH_GR0_TLB_INT1_CONFIG_DM_SHFT		8
23648c2ecf20Sopenharmony_ci#define UVXH_GR0_TLB_INT1_CONFIG_DM_MASK		0x0000000000000700UL
23658c2ecf20Sopenharmony_ci#define UVXH_GR0_TLB_INT1_CONFIG_DESTMODE_SHFT		11
23668c2ecf20Sopenharmony_ci#define UVXH_GR0_TLB_INT1_CONFIG_DESTMODE_MASK		0x0000000000000800UL
23678c2ecf20Sopenharmony_ci#define UVXH_GR0_TLB_INT1_CONFIG_STATUS_SHFT		12
23688c2ecf20Sopenharmony_ci#define UVXH_GR0_TLB_INT1_CONFIG_STATUS_MASK		0x0000000000001000UL
23698c2ecf20Sopenharmony_ci#define UVXH_GR0_TLB_INT1_CONFIG_P_SHFT			13
23708c2ecf20Sopenharmony_ci#define UVXH_GR0_TLB_INT1_CONFIG_P_MASK			0x0000000000002000UL
23718c2ecf20Sopenharmony_ci#define UVXH_GR0_TLB_INT1_CONFIG_T_SHFT			15
23728c2ecf20Sopenharmony_ci#define UVXH_GR0_TLB_INT1_CONFIG_T_MASK			0x0000000000008000UL
23738c2ecf20Sopenharmony_ci#define UVXH_GR0_TLB_INT1_CONFIG_M_SHFT			16
23748c2ecf20Sopenharmony_ci#define UVXH_GR0_TLB_INT1_CONFIG_M_MASK			0x0000000000010000UL
23758c2ecf20Sopenharmony_ci#define UVXH_GR0_TLB_INT1_CONFIG_APIC_ID_SHFT		32
23768c2ecf20Sopenharmony_ci#define UVXH_GR0_TLB_INT1_CONFIG_APIC_ID_MASK		0xffffffff00000000UL
23778c2ecf20Sopenharmony_ci
23788c2ecf20Sopenharmony_ci
23798c2ecf20Sopenharmony_ciunion uvh_gr0_tlb_int1_config_u {
23808c2ecf20Sopenharmony_ci	unsigned long	v;
23818c2ecf20Sopenharmony_ci
23828c2ecf20Sopenharmony_ci	/* UVH common struct */
23838c2ecf20Sopenharmony_ci	struct uvh_gr0_tlb_int1_config_s {
23848c2ecf20Sopenharmony_ci		unsigned long	vector_:8;			/* RW */
23858c2ecf20Sopenharmony_ci		unsigned long	dm:3;				/* RW */
23868c2ecf20Sopenharmony_ci		unsigned long	destmode:1;			/* RW */
23878c2ecf20Sopenharmony_ci		unsigned long	status:1;			/* RO */
23888c2ecf20Sopenharmony_ci		unsigned long	p:1;				/* RO */
23898c2ecf20Sopenharmony_ci		unsigned long	rsvd_14:1;
23908c2ecf20Sopenharmony_ci		unsigned long	t:1;				/* RO */
23918c2ecf20Sopenharmony_ci		unsigned long	m:1;				/* RW */
23928c2ecf20Sopenharmony_ci		unsigned long	rsvd_17_31:15;
23938c2ecf20Sopenharmony_ci		unsigned long	apic_id:32;			/* RW */
23948c2ecf20Sopenharmony_ci	} s;
23958c2ecf20Sopenharmony_ci
23968c2ecf20Sopenharmony_ci	/* UVXH common struct */
23978c2ecf20Sopenharmony_ci	struct uvxh_gr0_tlb_int1_config_s {
23988c2ecf20Sopenharmony_ci		unsigned long	vector_:8;			/* RW */
23998c2ecf20Sopenharmony_ci		unsigned long	dm:3;				/* RW */
24008c2ecf20Sopenharmony_ci		unsigned long	destmode:1;			/* RW */
24018c2ecf20Sopenharmony_ci		unsigned long	status:1;			/* RO */
24028c2ecf20Sopenharmony_ci		unsigned long	p:1;				/* RO */
24038c2ecf20Sopenharmony_ci		unsigned long	rsvd_14:1;
24048c2ecf20Sopenharmony_ci		unsigned long	t:1;				/* RO */
24058c2ecf20Sopenharmony_ci		unsigned long	m:1;				/* RW */
24068c2ecf20Sopenharmony_ci		unsigned long	rsvd_17_31:15;
24078c2ecf20Sopenharmony_ci		unsigned long	apic_id:32;			/* RW */
24088c2ecf20Sopenharmony_ci	} sx;
24098c2ecf20Sopenharmony_ci
24108c2ecf20Sopenharmony_ci	/* UV4 unique struct */
24118c2ecf20Sopenharmony_ci	struct uv4h_gr0_tlb_int1_config_s {
24128c2ecf20Sopenharmony_ci		unsigned long	vector_:8;			/* RW */
24138c2ecf20Sopenharmony_ci		unsigned long	dm:3;				/* RW */
24148c2ecf20Sopenharmony_ci		unsigned long	destmode:1;			/* RW */
24158c2ecf20Sopenharmony_ci		unsigned long	status:1;			/* RO */
24168c2ecf20Sopenharmony_ci		unsigned long	p:1;				/* RO */
24178c2ecf20Sopenharmony_ci		unsigned long	rsvd_14:1;
24188c2ecf20Sopenharmony_ci		unsigned long	t:1;				/* RO */
24198c2ecf20Sopenharmony_ci		unsigned long	m:1;				/* RW */
24208c2ecf20Sopenharmony_ci		unsigned long	rsvd_17_31:15;
24218c2ecf20Sopenharmony_ci		unsigned long	apic_id:32;			/* RW */
24228c2ecf20Sopenharmony_ci	} s4;
24238c2ecf20Sopenharmony_ci
24248c2ecf20Sopenharmony_ci	/* UV3 unique struct */
24258c2ecf20Sopenharmony_ci	struct uv3h_gr0_tlb_int1_config_s {
24268c2ecf20Sopenharmony_ci		unsigned long	vector_:8;			/* RW */
24278c2ecf20Sopenharmony_ci		unsigned long	dm:3;				/* RW */
24288c2ecf20Sopenharmony_ci		unsigned long	destmode:1;			/* RW */
24298c2ecf20Sopenharmony_ci		unsigned long	status:1;			/* RO */
24308c2ecf20Sopenharmony_ci		unsigned long	p:1;				/* RO */
24318c2ecf20Sopenharmony_ci		unsigned long	rsvd_14:1;
24328c2ecf20Sopenharmony_ci		unsigned long	t:1;				/* RO */
24338c2ecf20Sopenharmony_ci		unsigned long	m:1;				/* RW */
24348c2ecf20Sopenharmony_ci		unsigned long	rsvd_17_31:15;
24358c2ecf20Sopenharmony_ci		unsigned long	apic_id:32;			/* RW */
24368c2ecf20Sopenharmony_ci	} s3;
24378c2ecf20Sopenharmony_ci
24388c2ecf20Sopenharmony_ci	/* UV2 unique struct */
24398c2ecf20Sopenharmony_ci	struct uv2h_gr0_tlb_int1_config_s {
24408c2ecf20Sopenharmony_ci		unsigned long	vector_:8;			/* RW */
24418c2ecf20Sopenharmony_ci		unsigned long	dm:3;				/* RW */
24428c2ecf20Sopenharmony_ci		unsigned long	destmode:1;			/* RW */
24438c2ecf20Sopenharmony_ci		unsigned long	status:1;			/* RO */
24448c2ecf20Sopenharmony_ci		unsigned long	p:1;				/* RO */
24458c2ecf20Sopenharmony_ci		unsigned long	rsvd_14:1;
24468c2ecf20Sopenharmony_ci		unsigned long	t:1;				/* RO */
24478c2ecf20Sopenharmony_ci		unsigned long	m:1;				/* RW */
24488c2ecf20Sopenharmony_ci		unsigned long	rsvd_17_31:15;
24498c2ecf20Sopenharmony_ci		unsigned long	apic_id:32;			/* RW */
24508c2ecf20Sopenharmony_ci	} s2;
24518c2ecf20Sopenharmony_ci};
24528c2ecf20Sopenharmony_ci
24538c2ecf20Sopenharmony_ci/* ========================================================================= */
24548c2ecf20Sopenharmony_ci/*                         UVH_GR1_TLB_INT0_CONFIG                           */
24558c2ecf20Sopenharmony_ci/* ========================================================================= */
24568c2ecf20Sopenharmony_ci#define UVH_GR1_TLB_INT0_CONFIG (					\
24578c2ecf20Sopenharmony_ci	is_uv(UV4) ? 0x62100UL :					\
24588c2ecf20Sopenharmony_ci	is_uv(UV3) ? 0x61f00UL :					\
24598c2ecf20Sopenharmony_ci	is_uv(UV2) ? 0x61f00UL :					\
24608c2ecf20Sopenharmony_ci	uv_undefined("UVH_GR1_TLB_INT0_CONFIG"))
24618c2ecf20Sopenharmony_ci
24628c2ecf20Sopenharmony_ci
24638c2ecf20Sopenharmony_ci/* UVXH common defines */
24648c2ecf20Sopenharmony_ci#define UVXH_GR1_TLB_INT0_CONFIG_VECTOR_SHFT		0
24658c2ecf20Sopenharmony_ci#define UVXH_GR1_TLB_INT0_CONFIG_VECTOR_MASK		0x00000000000000ffUL
24668c2ecf20Sopenharmony_ci#define UVXH_GR1_TLB_INT0_CONFIG_DM_SHFT		8
24678c2ecf20Sopenharmony_ci#define UVXH_GR1_TLB_INT0_CONFIG_DM_MASK		0x0000000000000700UL
24688c2ecf20Sopenharmony_ci#define UVXH_GR1_TLB_INT0_CONFIG_DESTMODE_SHFT		11
24698c2ecf20Sopenharmony_ci#define UVXH_GR1_TLB_INT0_CONFIG_DESTMODE_MASK		0x0000000000000800UL
24708c2ecf20Sopenharmony_ci#define UVXH_GR1_TLB_INT0_CONFIG_STATUS_SHFT		12
24718c2ecf20Sopenharmony_ci#define UVXH_GR1_TLB_INT0_CONFIG_STATUS_MASK		0x0000000000001000UL
24728c2ecf20Sopenharmony_ci#define UVXH_GR1_TLB_INT0_CONFIG_P_SHFT			13
24738c2ecf20Sopenharmony_ci#define UVXH_GR1_TLB_INT0_CONFIG_P_MASK			0x0000000000002000UL
24748c2ecf20Sopenharmony_ci#define UVXH_GR1_TLB_INT0_CONFIG_T_SHFT			15
24758c2ecf20Sopenharmony_ci#define UVXH_GR1_TLB_INT0_CONFIG_T_MASK			0x0000000000008000UL
24768c2ecf20Sopenharmony_ci#define UVXH_GR1_TLB_INT0_CONFIG_M_SHFT			16
24778c2ecf20Sopenharmony_ci#define UVXH_GR1_TLB_INT0_CONFIG_M_MASK			0x0000000000010000UL
24788c2ecf20Sopenharmony_ci#define UVXH_GR1_TLB_INT0_CONFIG_APIC_ID_SHFT		32
24798c2ecf20Sopenharmony_ci#define UVXH_GR1_TLB_INT0_CONFIG_APIC_ID_MASK		0xffffffff00000000UL
24808c2ecf20Sopenharmony_ci
24818c2ecf20Sopenharmony_ci
24828c2ecf20Sopenharmony_ciunion uvh_gr1_tlb_int0_config_u {
24838c2ecf20Sopenharmony_ci	unsigned long	v;
24848c2ecf20Sopenharmony_ci
24858c2ecf20Sopenharmony_ci	/* UVH common struct */
24868c2ecf20Sopenharmony_ci	struct uvh_gr1_tlb_int0_config_s {
24878c2ecf20Sopenharmony_ci		unsigned long	vector_:8;			/* RW */
24888c2ecf20Sopenharmony_ci		unsigned long	dm:3;				/* RW */
24898c2ecf20Sopenharmony_ci		unsigned long	destmode:1;			/* RW */
24908c2ecf20Sopenharmony_ci		unsigned long	status:1;			/* RO */
24918c2ecf20Sopenharmony_ci		unsigned long	p:1;				/* RO */
24928c2ecf20Sopenharmony_ci		unsigned long	rsvd_14:1;
24938c2ecf20Sopenharmony_ci		unsigned long	t:1;				/* RO */
24948c2ecf20Sopenharmony_ci		unsigned long	m:1;				/* RW */
24958c2ecf20Sopenharmony_ci		unsigned long	rsvd_17_31:15;
24968c2ecf20Sopenharmony_ci		unsigned long	apic_id:32;			/* RW */
24978c2ecf20Sopenharmony_ci	} s;
24988c2ecf20Sopenharmony_ci
24998c2ecf20Sopenharmony_ci	/* UVXH common struct */
25008c2ecf20Sopenharmony_ci	struct uvxh_gr1_tlb_int0_config_s {
25018c2ecf20Sopenharmony_ci		unsigned long	vector_:8;			/* RW */
25028c2ecf20Sopenharmony_ci		unsigned long	dm:3;				/* RW */
25038c2ecf20Sopenharmony_ci		unsigned long	destmode:1;			/* RW */
25048c2ecf20Sopenharmony_ci		unsigned long	status:1;			/* RO */
25058c2ecf20Sopenharmony_ci		unsigned long	p:1;				/* RO */
25068c2ecf20Sopenharmony_ci		unsigned long	rsvd_14:1;
25078c2ecf20Sopenharmony_ci		unsigned long	t:1;				/* RO */
25088c2ecf20Sopenharmony_ci		unsigned long	m:1;				/* RW */
25098c2ecf20Sopenharmony_ci		unsigned long	rsvd_17_31:15;
25108c2ecf20Sopenharmony_ci		unsigned long	apic_id:32;			/* RW */
25118c2ecf20Sopenharmony_ci	} sx;
25128c2ecf20Sopenharmony_ci
25138c2ecf20Sopenharmony_ci	/* UV4 unique struct */
25148c2ecf20Sopenharmony_ci	struct uv4h_gr1_tlb_int0_config_s {
25158c2ecf20Sopenharmony_ci		unsigned long	vector_:8;			/* RW */
25168c2ecf20Sopenharmony_ci		unsigned long	dm:3;				/* RW */
25178c2ecf20Sopenharmony_ci		unsigned long	destmode:1;			/* RW */
25188c2ecf20Sopenharmony_ci		unsigned long	status:1;			/* RO */
25198c2ecf20Sopenharmony_ci		unsigned long	p:1;				/* RO */
25208c2ecf20Sopenharmony_ci		unsigned long	rsvd_14:1;
25218c2ecf20Sopenharmony_ci		unsigned long	t:1;				/* RO */
25228c2ecf20Sopenharmony_ci		unsigned long	m:1;				/* RW */
25238c2ecf20Sopenharmony_ci		unsigned long	rsvd_17_31:15;
25248c2ecf20Sopenharmony_ci		unsigned long	apic_id:32;			/* RW */
25258c2ecf20Sopenharmony_ci	} s4;
25268c2ecf20Sopenharmony_ci
25278c2ecf20Sopenharmony_ci	/* UV3 unique struct */
25288c2ecf20Sopenharmony_ci	struct uv3h_gr1_tlb_int0_config_s {
25298c2ecf20Sopenharmony_ci		unsigned long	vector_:8;			/* RW */
25308c2ecf20Sopenharmony_ci		unsigned long	dm:3;				/* RW */
25318c2ecf20Sopenharmony_ci		unsigned long	destmode:1;			/* RW */
25328c2ecf20Sopenharmony_ci		unsigned long	status:1;			/* RO */
25338c2ecf20Sopenharmony_ci		unsigned long	p:1;				/* RO */
25348c2ecf20Sopenharmony_ci		unsigned long	rsvd_14:1;
25358c2ecf20Sopenharmony_ci		unsigned long	t:1;				/* RO */
25368c2ecf20Sopenharmony_ci		unsigned long	m:1;				/* RW */
25378c2ecf20Sopenharmony_ci		unsigned long	rsvd_17_31:15;
25388c2ecf20Sopenharmony_ci		unsigned long	apic_id:32;			/* RW */
25398c2ecf20Sopenharmony_ci	} s3;
25408c2ecf20Sopenharmony_ci
25418c2ecf20Sopenharmony_ci	/* UV2 unique struct */
25428c2ecf20Sopenharmony_ci	struct uv2h_gr1_tlb_int0_config_s {
25438c2ecf20Sopenharmony_ci		unsigned long	vector_:8;			/* RW */
25448c2ecf20Sopenharmony_ci		unsigned long	dm:3;				/* RW */
25458c2ecf20Sopenharmony_ci		unsigned long	destmode:1;			/* RW */
25468c2ecf20Sopenharmony_ci		unsigned long	status:1;			/* RO */
25478c2ecf20Sopenharmony_ci		unsigned long	p:1;				/* RO */
25488c2ecf20Sopenharmony_ci		unsigned long	rsvd_14:1;
25498c2ecf20Sopenharmony_ci		unsigned long	t:1;				/* RO */
25508c2ecf20Sopenharmony_ci		unsigned long	m:1;				/* RW */
25518c2ecf20Sopenharmony_ci		unsigned long	rsvd_17_31:15;
25528c2ecf20Sopenharmony_ci		unsigned long	apic_id:32;			/* RW */
25538c2ecf20Sopenharmony_ci	} s2;
25548c2ecf20Sopenharmony_ci};
25558c2ecf20Sopenharmony_ci
25568c2ecf20Sopenharmony_ci/* ========================================================================= */
25578c2ecf20Sopenharmony_ci/*                         UVH_GR1_TLB_INT1_CONFIG                           */
25588c2ecf20Sopenharmony_ci/* ========================================================================= */
25598c2ecf20Sopenharmony_ci#define UVH_GR1_TLB_INT1_CONFIG (					\
25608c2ecf20Sopenharmony_ci	is_uv(UV4) ? 0x62140UL :					\
25618c2ecf20Sopenharmony_ci	is_uv(UV3) ? 0x61f40UL :					\
25628c2ecf20Sopenharmony_ci	is_uv(UV2) ? 0x61f40UL :					\
25638c2ecf20Sopenharmony_ci	uv_undefined("UVH_GR1_TLB_INT1_CONFIG"))
25648c2ecf20Sopenharmony_ci
25658c2ecf20Sopenharmony_ci
25668c2ecf20Sopenharmony_ci/* UVXH common defines */
25678c2ecf20Sopenharmony_ci#define UVXH_GR1_TLB_INT1_CONFIG_VECTOR_SHFT		0
25688c2ecf20Sopenharmony_ci#define UVXH_GR1_TLB_INT1_CONFIG_VECTOR_MASK		0x00000000000000ffUL
25698c2ecf20Sopenharmony_ci#define UVXH_GR1_TLB_INT1_CONFIG_DM_SHFT		8
25708c2ecf20Sopenharmony_ci#define UVXH_GR1_TLB_INT1_CONFIG_DM_MASK		0x0000000000000700UL
25718c2ecf20Sopenharmony_ci#define UVXH_GR1_TLB_INT1_CONFIG_DESTMODE_SHFT		11
25728c2ecf20Sopenharmony_ci#define UVXH_GR1_TLB_INT1_CONFIG_DESTMODE_MASK		0x0000000000000800UL
25738c2ecf20Sopenharmony_ci#define UVXH_GR1_TLB_INT1_CONFIG_STATUS_SHFT		12
25748c2ecf20Sopenharmony_ci#define UVXH_GR1_TLB_INT1_CONFIG_STATUS_MASK		0x0000000000001000UL
25758c2ecf20Sopenharmony_ci#define UVXH_GR1_TLB_INT1_CONFIG_P_SHFT			13
25768c2ecf20Sopenharmony_ci#define UVXH_GR1_TLB_INT1_CONFIG_P_MASK			0x0000000000002000UL
25778c2ecf20Sopenharmony_ci#define UVXH_GR1_TLB_INT1_CONFIG_T_SHFT			15
25788c2ecf20Sopenharmony_ci#define UVXH_GR1_TLB_INT1_CONFIG_T_MASK			0x0000000000008000UL
25798c2ecf20Sopenharmony_ci#define UVXH_GR1_TLB_INT1_CONFIG_M_SHFT			16
25808c2ecf20Sopenharmony_ci#define UVXH_GR1_TLB_INT1_CONFIG_M_MASK			0x0000000000010000UL
25818c2ecf20Sopenharmony_ci#define UVXH_GR1_TLB_INT1_CONFIG_APIC_ID_SHFT		32
25828c2ecf20Sopenharmony_ci#define UVXH_GR1_TLB_INT1_CONFIG_APIC_ID_MASK		0xffffffff00000000UL
25838c2ecf20Sopenharmony_ci
25848c2ecf20Sopenharmony_ci
25858c2ecf20Sopenharmony_ciunion uvh_gr1_tlb_int1_config_u {
25868c2ecf20Sopenharmony_ci	unsigned long	v;
25878c2ecf20Sopenharmony_ci
25888c2ecf20Sopenharmony_ci	/* UVH common struct */
25898c2ecf20Sopenharmony_ci	struct uvh_gr1_tlb_int1_config_s {
25908c2ecf20Sopenharmony_ci		unsigned long	vector_:8;			/* RW */
25918c2ecf20Sopenharmony_ci		unsigned long	dm:3;				/* RW */
25928c2ecf20Sopenharmony_ci		unsigned long	destmode:1;			/* RW */
25938c2ecf20Sopenharmony_ci		unsigned long	status:1;			/* RO */
25948c2ecf20Sopenharmony_ci		unsigned long	p:1;				/* RO */
25958c2ecf20Sopenharmony_ci		unsigned long	rsvd_14:1;
25968c2ecf20Sopenharmony_ci		unsigned long	t:1;				/* RO */
25978c2ecf20Sopenharmony_ci		unsigned long	m:1;				/* RW */
25988c2ecf20Sopenharmony_ci		unsigned long	rsvd_17_31:15;
25998c2ecf20Sopenharmony_ci		unsigned long	apic_id:32;			/* RW */
26008c2ecf20Sopenharmony_ci	} s;
26018c2ecf20Sopenharmony_ci
26028c2ecf20Sopenharmony_ci	/* UVXH common struct */
26038c2ecf20Sopenharmony_ci	struct uvxh_gr1_tlb_int1_config_s {
26048c2ecf20Sopenharmony_ci		unsigned long	vector_:8;			/* RW */
26058c2ecf20Sopenharmony_ci		unsigned long	dm:3;				/* RW */
26068c2ecf20Sopenharmony_ci		unsigned long	destmode:1;			/* RW */
26078c2ecf20Sopenharmony_ci		unsigned long	status:1;			/* RO */
26088c2ecf20Sopenharmony_ci		unsigned long	p:1;				/* RO */
26098c2ecf20Sopenharmony_ci		unsigned long	rsvd_14:1;
26108c2ecf20Sopenharmony_ci		unsigned long	t:1;				/* RO */
26118c2ecf20Sopenharmony_ci		unsigned long	m:1;				/* RW */
26128c2ecf20Sopenharmony_ci		unsigned long	rsvd_17_31:15;
26138c2ecf20Sopenharmony_ci		unsigned long	apic_id:32;			/* RW */
26148c2ecf20Sopenharmony_ci	} sx;
26158c2ecf20Sopenharmony_ci
26168c2ecf20Sopenharmony_ci	/* UV4 unique struct */
26178c2ecf20Sopenharmony_ci	struct uv4h_gr1_tlb_int1_config_s {
26188c2ecf20Sopenharmony_ci		unsigned long	vector_:8;			/* RW */
26198c2ecf20Sopenharmony_ci		unsigned long	dm:3;				/* RW */
26208c2ecf20Sopenharmony_ci		unsigned long	destmode:1;			/* RW */
26218c2ecf20Sopenharmony_ci		unsigned long	status:1;			/* RO */
26228c2ecf20Sopenharmony_ci		unsigned long	p:1;				/* RO */
26238c2ecf20Sopenharmony_ci		unsigned long	rsvd_14:1;
26248c2ecf20Sopenharmony_ci		unsigned long	t:1;				/* RO */
26258c2ecf20Sopenharmony_ci		unsigned long	m:1;				/* RW */
26268c2ecf20Sopenharmony_ci		unsigned long	rsvd_17_31:15;
26278c2ecf20Sopenharmony_ci		unsigned long	apic_id:32;			/* RW */
26288c2ecf20Sopenharmony_ci	} s4;
26298c2ecf20Sopenharmony_ci
26308c2ecf20Sopenharmony_ci	/* UV3 unique struct */
26318c2ecf20Sopenharmony_ci	struct uv3h_gr1_tlb_int1_config_s {
26328c2ecf20Sopenharmony_ci		unsigned long	vector_:8;			/* RW */
26338c2ecf20Sopenharmony_ci		unsigned long	dm:3;				/* RW */
26348c2ecf20Sopenharmony_ci		unsigned long	destmode:1;			/* RW */
26358c2ecf20Sopenharmony_ci		unsigned long	status:1;			/* RO */
26368c2ecf20Sopenharmony_ci		unsigned long	p:1;				/* RO */
26378c2ecf20Sopenharmony_ci		unsigned long	rsvd_14:1;
26388c2ecf20Sopenharmony_ci		unsigned long	t:1;				/* RO */
26398c2ecf20Sopenharmony_ci		unsigned long	m:1;				/* RW */
26408c2ecf20Sopenharmony_ci		unsigned long	rsvd_17_31:15;
26418c2ecf20Sopenharmony_ci		unsigned long	apic_id:32;			/* RW */
26428c2ecf20Sopenharmony_ci	} s3;
26438c2ecf20Sopenharmony_ci
26448c2ecf20Sopenharmony_ci	/* UV2 unique struct */
26458c2ecf20Sopenharmony_ci	struct uv2h_gr1_tlb_int1_config_s {
26468c2ecf20Sopenharmony_ci		unsigned long	vector_:8;			/* RW */
26478c2ecf20Sopenharmony_ci		unsigned long	dm:3;				/* RW */
26488c2ecf20Sopenharmony_ci		unsigned long	destmode:1;			/* RW */
26498c2ecf20Sopenharmony_ci		unsigned long	status:1;			/* RO */
26508c2ecf20Sopenharmony_ci		unsigned long	p:1;				/* RO */
26518c2ecf20Sopenharmony_ci		unsigned long	rsvd_14:1;
26528c2ecf20Sopenharmony_ci		unsigned long	t:1;				/* RO */
26538c2ecf20Sopenharmony_ci		unsigned long	m:1;				/* RW */
26548c2ecf20Sopenharmony_ci		unsigned long	rsvd_17_31:15;
26558c2ecf20Sopenharmony_ci		unsigned long	apic_id:32;			/* RW */
26568c2ecf20Sopenharmony_ci	} s2;
26578c2ecf20Sopenharmony_ci};
26588c2ecf20Sopenharmony_ci
26598c2ecf20Sopenharmony_ci/* ========================================================================= */
26608c2ecf20Sopenharmony_ci/*                               UVH_INT_CMPB                                */
26618c2ecf20Sopenharmony_ci/* ========================================================================= */
26628c2ecf20Sopenharmony_ci#define UVH_INT_CMPB 0x22080UL
26638c2ecf20Sopenharmony_ci
26648c2ecf20Sopenharmony_ci/* UVH common defines*/
26658c2ecf20Sopenharmony_ci#define UVH_INT_CMPB_REAL_TIME_CMPB_SHFT		0
26668c2ecf20Sopenharmony_ci#define UVH_INT_CMPB_REAL_TIME_CMPB_MASK		0x00ffffffffffffffUL
26678c2ecf20Sopenharmony_ci
26688c2ecf20Sopenharmony_ci
26698c2ecf20Sopenharmony_ciunion uvh_int_cmpb_u {
26708c2ecf20Sopenharmony_ci	unsigned long	v;
26718c2ecf20Sopenharmony_ci
26728c2ecf20Sopenharmony_ci	/* UVH common struct */
26738c2ecf20Sopenharmony_ci	struct uvh_int_cmpb_s {
26748c2ecf20Sopenharmony_ci		unsigned long	real_time_cmpb:56;		/* RW */
26758c2ecf20Sopenharmony_ci		unsigned long	rsvd_56_63:8;
26768c2ecf20Sopenharmony_ci	} s;
26778c2ecf20Sopenharmony_ci
26788c2ecf20Sopenharmony_ci	/* UV5 unique struct */
26798c2ecf20Sopenharmony_ci	struct uv5h_int_cmpb_s {
26808c2ecf20Sopenharmony_ci		unsigned long	real_time_cmpb:56;		/* RW */
26818c2ecf20Sopenharmony_ci		unsigned long	rsvd_56_63:8;
26828c2ecf20Sopenharmony_ci	} s5;
26838c2ecf20Sopenharmony_ci
26848c2ecf20Sopenharmony_ci	/* UV4 unique struct */
26858c2ecf20Sopenharmony_ci	struct uv4h_int_cmpb_s {
26868c2ecf20Sopenharmony_ci		unsigned long	real_time_cmpb:56;		/* RW */
26878c2ecf20Sopenharmony_ci		unsigned long	rsvd_56_63:8;
26888c2ecf20Sopenharmony_ci	} s4;
26898c2ecf20Sopenharmony_ci
26908c2ecf20Sopenharmony_ci	/* UV3 unique struct */
26918c2ecf20Sopenharmony_ci	struct uv3h_int_cmpb_s {
26928c2ecf20Sopenharmony_ci		unsigned long	real_time_cmpb:56;		/* RW */
26938c2ecf20Sopenharmony_ci		unsigned long	rsvd_56_63:8;
26948c2ecf20Sopenharmony_ci	} s3;
26958c2ecf20Sopenharmony_ci
26968c2ecf20Sopenharmony_ci	/* UV2 unique struct */
26978c2ecf20Sopenharmony_ci	struct uv2h_int_cmpb_s {
26988c2ecf20Sopenharmony_ci		unsigned long	real_time_cmpb:56;		/* RW */
26998c2ecf20Sopenharmony_ci		unsigned long	rsvd_56_63:8;
27008c2ecf20Sopenharmony_ci	} s2;
27018c2ecf20Sopenharmony_ci};
27028c2ecf20Sopenharmony_ci
27038c2ecf20Sopenharmony_ci/* ========================================================================= */
27048c2ecf20Sopenharmony_ci/*                               UVH_IPI_INT                                 */
27058c2ecf20Sopenharmony_ci/* ========================================================================= */
27068c2ecf20Sopenharmony_ci#define UVH_IPI_INT 0x60500UL
27078c2ecf20Sopenharmony_ci
27088c2ecf20Sopenharmony_ci/* UVH common defines*/
27098c2ecf20Sopenharmony_ci#define UVH_IPI_INT_VECTOR_SHFT				0
27108c2ecf20Sopenharmony_ci#define UVH_IPI_INT_VECTOR_MASK				0x00000000000000ffUL
27118c2ecf20Sopenharmony_ci#define UVH_IPI_INT_DELIVERY_MODE_SHFT			8
27128c2ecf20Sopenharmony_ci#define UVH_IPI_INT_DELIVERY_MODE_MASK			0x0000000000000700UL
27138c2ecf20Sopenharmony_ci#define UVH_IPI_INT_DESTMODE_SHFT			11
27148c2ecf20Sopenharmony_ci#define UVH_IPI_INT_DESTMODE_MASK			0x0000000000000800UL
27158c2ecf20Sopenharmony_ci#define UVH_IPI_INT_APIC_ID_SHFT			16
27168c2ecf20Sopenharmony_ci#define UVH_IPI_INT_APIC_ID_MASK			0x0000ffffffff0000UL
27178c2ecf20Sopenharmony_ci#define UVH_IPI_INT_SEND_SHFT				63
27188c2ecf20Sopenharmony_ci#define UVH_IPI_INT_SEND_MASK				0x8000000000000000UL
27198c2ecf20Sopenharmony_ci
27208c2ecf20Sopenharmony_ci
27218c2ecf20Sopenharmony_ciunion uvh_ipi_int_u {
27228c2ecf20Sopenharmony_ci	unsigned long	v;
27238c2ecf20Sopenharmony_ci
27248c2ecf20Sopenharmony_ci	/* UVH common struct */
27258c2ecf20Sopenharmony_ci	struct uvh_ipi_int_s {
27268c2ecf20Sopenharmony_ci		unsigned long	vector_:8;			/* RW */
27278c2ecf20Sopenharmony_ci		unsigned long	delivery_mode:3;		/* RW */
27288c2ecf20Sopenharmony_ci		unsigned long	destmode:1;			/* RW */
27298c2ecf20Sopenharmony_ci		unsigned long	rsvd_12_15:4;
27308c2ecf20Sopenharmony_ci		unsigned long	apic_id:32;			/* RW */
27318c2ecf20Sopenharmony_ci		unsigned long	rsvd_48_62:15;
27328c2ecf20Sopenharmony_ci		unsigned long	send:1;				/* WP */
27338c2ecf20Sopenharmony_ci	} s;
27348c2ecf20Sopenharmony_ci
27358c2ecf20Sopenharmony_ci	/* UV5 unique struct */
27368c2ecf20Sopenharmony_ci	struct uv5h_ipi_int_s {
27378c2ecf20Sopenharmony_ci		unsigned long	vector_:8;			/* RW */
27388c2ecf20Sopenharmony_ci		unsigned long	delivery_mode:3;		/* RW */
27398c2ecf20Sopenharmony_ci		unsigned long	destmode:1;			/* RW */
27408c2ecf20Sopenharmony_ci		unsigned long	rsvd_12_15:4;
27418c2ecf20Sopenharmony_ci		unsigned long	apic_id:32;			/* RW */
27428c2ecf20Sopenharmony_ci		unsigned long	rsvd_48_62:15;
27438c2ecf20Sopenharmony_ci		unsigned long	send:1;				/* WP */
27448c2ecf20Sopenharmony_ci	} s5;
27458c2ecf20Sopenharmony_ci
27468c2ecf20Sopenharmony_ci	/* UV4 unique struct */
27478c2ecf20Sopenharmony_ci	struct uv4h_ipi_int_s {
27488c2ecf20Sopenharmony_ci		unsigned long	vector_:8;			/* RW */
27498c2ecf20Sopenharmony_ci		unsigned long	delivery_mode:3;		/* RW */
27508c2ecf20Sopenharmony_ci		unsigned long	destmode:1;			/* RW */
27518c2ecf20Sopenharmony_ci		unsigned long	rsvd_12_15:4;
27528c2ecf20Sopenharmony_ci		unsigned long	apic_id:32;			/* RW */
27538c2ecf20Sopenharmony_ci		unsigned long	rsvd_48_62:15;
27548c2ecf20Sopenharmony_ci		unsigned long	send:1;				/* WP */
27558c2ecf20Sopenharmony_ci	} s4;
27568c2ecf20Sopenharmony_ci
27578c2ecf20Sopenharmony_ci	/* UV3 unique struct */
27588c2ecf20Sopenharmony_ci	struct uv3h_ipi_int_s {
27598c2ecf20Sopenharmony_ci		unsigned long	vector_:8;			/* RW */
27608c2ecf20Sopenharmony_ci		unsigned long	delivery_mode:3;		/* RW */
27618c2ecf20Sopenharmony_ci		unsigned long	destmode:1;			/* RW */
27628c2ecf20Sopenharmony_ci		unsigned long	rsvd_12_15:4;
27638c2ecf20Sopenharmony_ci		unsigned long	apic_id:32;			/* RW */
27648c2ecf20Sopenharmony_ci		unsigned long	rsvd_48_62:15;
27658c2ecf20Sopenharmony_ci		unsigned long	send:1;				/* WP */
27668c2ecf20Sopenharmony_ci	} s3;
27678c2ecf20Sopenharmony_ci
27688c2ecf20Sopenharmony_ci	/* UV2 unique struct */
27698c2ecf20Sopenharmony_ci	struct uv2h_ipi_int_s {
27708c2ecf20Sopenharmony_ci		unsigned long	vector_:8;			/* RW */
27718c2ecf20Sopenharmony_ci		unsigned long	delivery_mode:3;		/* RW */
27728c2ecf20Sopenharmony_ci		unsigned long	destmode:1;			/* RW */
27738c2ecf20Sopenharmony_ci		unsigned long	rsvd_12_15:4;
27748c2ecf20Sopenharmony_ci		unsigned long	apic_id:32;			/* RW */
27758c2ecf20Sopenharmony_ci		unsigned long	rsvd_48_62:15;
27768c2ecf20Sopenharmony_ci		unsigned long	send:1;				/* WP */
27778c2ecf20Sopenharmony_ci	} s2;
27788c2ecf20Sopenharmony_ci};
27798c2ecf20Sopenharmony_ci
27808c2ecf20Sopenharmony_ci/* ========================================================================= */
27818c2ecf20Sopenharmony_ci/*                               UVH_NODE_ID                                 */
27828c2ecf20Sopenharmony_ci/* ========================================================================= */
27838c2ecf20Sopenharmony_ci#define UVH_NODE_ID 0x0UL
27848c2ecf20Sopenharmony_ci
27858c2ecf20Sopenharmony_ci/* UVH common defines*/
27868c2ecf20Sopenharmony_ci#define UVH_NODE_ID_FORCE1_SHFT				0
27878c2ecf20Sopenharmony_ci#define UVH_NODE_ID_FORCE1_MASK				0x0000000000000001UL
27888c2ecf20Sopenharmony_ci#define UVH_NODE_ID_MANUFACTURER_SHFT			1
27898c2ecf20Sopenharmony_ci#define UVH_NODE_ID_MANUFACTURER_MASK			0x0000000000000ffeUL
27908c2ecf20Sopenharmony_ci#define UVH_NODE_ID_PART_NUMBER_SHFT			12
27918c2ecf20Sopenharmony_ci#define UVH_NODE_ID_PART_NUMBER_MASK			0x000000000ffff000UL
27928c2ecf20Sopenharmony_ci#define UVH_NODE_ID_REVISION_SHFT			28
27938c2ecf20Sopenharmony_ci#define UVH_NODE_ID_REVISION_MASK			0x00000000f0000000UL
27948c2ecf20Sopenharmony_ci#define UVH_NODE_ID_NODE_ID_SHFT			32
27958c2ecf20Sopenharmony_ci#define UVH_NODE_ID_NI_PORT_SHFT			57
27968c2ecf20Sopenharmony_ci
27978c2ecf20Sopenharmony_ci/* UVXH common defines */
27988c2ecf20Sopenharmony_ci#define UVXH_NODE_ID_NODE_ID_MASK			0x00007fff00000000UL
27998c2ecf20Sopenharmony_ci#define UVXH_NODE_ID_NODES_PER_BIT_SHFT			50
28008c2ecf20Sopenharmony_ci#define UVXH_NODE_ID_NODES_PER_BIT_MASK			0x01fc000000000000UL
28018c2ecf20Sopenharmony_ci#define UVXH_NODE_ID_NI_PORT_MASK			0x3e00000000000000UL
28028c2ecf20Sopenharmony_ci
28038c2ecf20Sopenharmony_ci/* UVYH common defines */
28048c2ecf20Sopenharmony_ci#define UVYH_NODE_ID_NODE_ID_MASK			0x0000007f00000000UL
28058c2ecf20Sopenharmony_ci#define UVYH_NODE_ID_NI_PORT_MASK			0x7e00000000000000UL
28068c2ecf20Sopenharmony_ci
28078c2ecf20Sopenharmony_ci/* UV4 unique defines */
28088c2ecf20Sopenharmony_ci#define UV4H_NODE_ID_ROUTER_SELECT_SHFT			48
28098c2ecf20Sopenharmony_ci#define UV4H_NODE_ID_ROUTER_SELECT_MASK			0x0001000000000000UL
28108c2ecf20Sopenharmony_ci#define UV4H_NODE_ID_RESERVED_2_SHFT			49
28118c2ecf20Sopenharmony_ci#define UV4H_NODE_ID_RESERVED_2_MASK			0x0002000000000000UL
28128c2ecf20Sopenharmony_ci
28138c2ecf20Sopenharmony_ci/* UV3 unique defines */
28148c2ecf20Sopenharmony_ci#define UV3H_NODE_ID_ROUTER_SELECT_SHFT			48
28158c2ecf20Sopenharmony_ci#define UV3H_NODE_ID_ROUTER_SELECT_MASK			0x0001000000000000UL
28168c2ecf20Sopenharmony_ci#define UV3H_NODE_ID_RESERVED_2_SHFT			49
28178c2ecf20Sopenharmony_ci#define UV3H_NODE_ID_RESERVED_2_MASK			0x0002000000000000UL
28188c2ecf20Sopenharmony_ci
28198c2ecf20Sopenharmony_ci
28208c2ecf20Sopenharmony_ciunion uvh_node_id_u {
28218c2ecf20Sopenharmony_ci	unsigned long	v;
28228c2ecf20Sopenharmony_ci
28238c2ecf20Sopenharmony_ci	/* UVH common struct */
28248c2ecf20Sopenharmony_ci	struct uvh_node_id_s {
28258c2ecf20Sopenharmony_ci		unsigned long	force1:1;			/* RO */
28268c2ecf20Sopenharmony_ci		unsigned long	manufacturer:11;		/* RO */
28278c2ecf20Sopenharmony_ci		unsigned long	part_number:16;			/* RO */
28288c2ecf20Sopenharmony_ci		unsigned long	revision:4;			/* RO */
28298c2ecf20Sopenharmony_ci		unsigned long	rsvd_32_63:32;
28308c2ecf20Sopenharmony_ci	} s;
28318c2ecf20Sopenharmony_ci
28328c2ecf20Sopenharmony_ci	/* UVXH common struct */
28338c2ecf20Sopenharmony_ci	struct uvxh_node_id_s {
28348c2ecf20Sopenharmony_ci		unsigned long	force1:1;			/* RO */
28358c2ecf20Sopenharmony_ci		unsigned long	manufacturer:11;		/* RO */
28368c2ecf20Sopenharmony_ci		unsigned long	part_number:16;			/* RO */
28378c2ecf20Sopenharmony_ci		unsigned long	revision:4;			/* RO */
28388c2ecf20Sopenharmony_ci		unsigned long	node_id:15;			/* RW */
28398c2ecf20Sopenharmony_ci		unsigned long	rsvd_47_49:3;
28408c2ecf20Sopenharmony_ci		unsigned long	nodes_per_bit:7;		/* RO */
28418c2ecf20Sopenharmony_ci		unsigned long	ni_port:5;			/* RO */
28428c2ecf20Sopenharmony_ci		unsigned long	rsvd_62_63:2;
28438c2ecf20Sopenharmony_ci	} sx;
28448c2ecf20Sopenharmony_ci
28458c2ecf20Sopenharmony_ci	/* UVYH common struct */
28468c2ecf20Sopenharmony_ci	struct uvyh_node_id_s {
28478c2ecf20Sopenharmony_ci		unsigned long	force1:1;			/* RO */
28488c2ecf20Sopenharmony_ci		unsigned long	manufacturer:11;		/* RO */
28498c2ecf20Sopenharmony_ci		unsigned long	part_number:16;			/* RO */
28508c2ecf20Sopenharmony_ci		unsigned long	revision:4;			/* RO */
28518c2ecf20Sopenharmony_ci		unsigned long	node_id:7;			/* RW */
28528c2ecf20Sopenharmony_ci		unsigned long	rsvd_39_56:18;
28538c2ecf20Sopenharmony_ci		unsigned long	ni_port:6;			/* RO */
28548c2ecf20Sopenharmony_ci		unsigned long	rsvd_63:1;
28558c2ecf20Sopenharmony_ci	} sy;
28568c2ecf20Sopenharmony_ci
28578c2ecf20Sopenharmony_ci	/* UV5 unique struct */
28588c2ecf20Sopenharmony_ci	struct uv5h_node_id_s {
28598c2ecf20Sopenharmony_ci		unsigned long	force1:1;			/* RO */
28608c2ecf20Sopenharmony_ci		unsigned long	manufacturer:11;		/* RO */
28618c2ecf20Sopenharmony_ci		unsigned long	part_number:16;			/* RO */
28628c2ecf20Sopenharmony_ci		unsigned long	revision:4;			/* RO */
28638c2ecf20Sopenharmony_ci		unsigned long	node_id:7;			/* RW */
28648c2ecf20Sopenharmony_ci		unsigned long	rsvd_39_56:18;
28658c2ecf20Sopenharmony_ci		unsigned long	ni_port:6;			/* RO */
28668c2ecf20Sopenharmony_ci		unsigned long	rsvd_63:1;
28678c2ecf20Sopenharmony_ci	} s5;
28688c2ecf20Sopenharmony_ci
28698c2ecf20Sopenharmony_ci	/* UV4 unique struct */
28708c2ecf20Sopenharmony_ci	struct uv4h_node_id_s {
28718c2ecf20Sopenharmony_ci		unsigned long	force1:1;			/* RO */
28728c2ecf20Sopenharmony_ci		unsigned long	manufacturer:11;		/* RO */
28738c2ecf20Sopenharmony_ci		unsigned long	part_number:16;			/* RO */
28748c2ecf20Sopenharmony_ci		unsigned long	revision:4;			/* RO */
28758c2ecf20Sopenharmony_ci		unsigned long	node_id:15;			/* RW */
28768c2ecf20Sopenharmony_ci		unsigned long	rsvd_47:1;
28778c2ecf20Sopenharmony_ci		unsigned long	router_select:1;		/* RO */
28788c2ecf20Sopenharmony_ci		unsigned long	rsvd_49:1;
28798c2ecf20Sopenharmony_ci		unsigned long	nodes_per_bit:7;		/* RO */
28808c2ecf20Sopenharmony_ci		unsigned long	ni_port:5;			/* RO */
28818c2ecf20Sopenharmony_ci		unsigned long	rsvd_62_63:2;
28828c2ecf20Sopenharmony_ci	} s4;
28838c2ecf20Sopenharmony_ci
28848c2ecf20Sopenharmony_ci	/* UV3 unique struct */
28858c2ecf20Sopenharmony_ci	struct uv3h_node_id_s {
28868c2ecf20Sopenharmony_ci		unsigned long	force1:1;			/* RO */
28878c2ecf20Sopenharmony_ci		unsigned long	manufacturer:11;		/* RO */
28888c2ecf20Sopenharmony_ci		unsigned long	part_number:16;			/* RO */
28898c2ecf20Sopenharmony_ci		unsigned long	revision:4;			/* RO */
28908c2ecf20Sopenharmony_ci		unsigned long	node_id:15;			/* RW */
28918c2ecf20Sopenharmony_ci		unsigned long	rsvd_47:1;
28928c2ecf20Sopenharmony_ci		unsigned long	router_select:1;		/* RO */
28938c2ecf20Sopenharmony_ci		unsigned long	rsvd_49:1;
28948c2ecf20Sopenharmony_ci		unsigned long	nodes_per_bit:7;		/* RO */
28958c2ecf20Sopenharmony_ci		unsigned long	ni_port:5;			/* RO */
28968c2ecf20Sopenharmony_ci		unsigned long	rsvd_62_63:2;
28978c2ecf20Sopenharmony_ci	} s3;
28988c2ecf20Sopenharmony_ci
28998c2ecf20Sopenharmony_ci	/* UV2 unique struct */
29008c2ecf20Sopenharmony_ci	struct uv2h_node_id_s {
29018c2ecf20Sopenharmony_ci		unsigned long	force1:1;			/* RO */
29028c2ecf20Sopenharmony_ci		unsigned long	manufacturer:11;		/* RO */
29038c2ecf20Sopenharmony_ci		unsigned long	part_number:16;			/* RO */
29048c2ecf20Sopenharmony_ci		unsigned long	revision:4;			/* RO */
29058c2ecf20Sopenharmony_ci		unsigned long	node_id:15;			/* RW */
29068c2ecf20Sopenharmony_ci		unsigned long	rsvd_47_49:3;
29078c2ecf20Sopenharmony_ci		unsigned long	nodes_per_bit:7;		/* RO */
29088c2ecf20Sopenharmony_ci		unsigned long	ni_port:5;			/* RO */
29098c2ecf20Sopenharmony_ci		unsigned long	rsvd_62_63:2;
29108c2ecf20Sopenharmony_ci	} s2;
29118c2ecf20Sopenharmony_ci};
29128c2ecf20Sopenharmony_ci
29138c2ecf20Sopenharmony_ci/* ========================================================================= */
29148c2ecf20Sopenharmony_ci/*                            UVH_NODE_PRESENT_0                             */
29158c2ecf20Sopenharmony_ci/* ========================================================================= */
29168c2ecf20Sopenharmony_ci#define UVH_NODE_PRESENT_0 (						\
29178c2ecf20Sopenharmony_ci	is_uv(UV5) ? 0x1400UL :						\
29188c2ecf20Sopenharmony_ci	0)
29198c2ecf20Sopenharmony_ci
29208c2ecf20Sopenharmony_ci
29218c2ecf20Sopenharmony_ci/* UVYH common defines */
29228c2ecf20Sopenharmony_ci#define UVYH_NODE_PRESENT_0_NODES_SHFT			0
29238c2ecf20Sopenharmony_ci#define UVYH_NODE_PRESENT_0_NODES_MASK			0xffffffffffffffffUL
29248c2ecf20Sopenharmony_ci
29258c2ecf20Sopenharmony_ci
29268c2ecf20Sopenharmony_ciunion uvh_node_present_0_u {
29278c2ecf20Sopenharmony_ci	unsigned long	v;
29288c2ecf20Sopenharmony_ci
29298c2ecf20Sopenharmony_ci	/* UVH common struct */
29308c2ecf20Sopenharmony_ci	struct uvh_node_present_0_s {
29318c2ecf20Sopenharmony_ci		unsigned long	nodes:64;			/* RW */
29328c2ecf20Sopenharmony_ci	} s;
29338c2ecf20Sopenharmony_ci
29348c2ecf20Sopenharmony_ci	/* UVYH common struct */
29358c2ecf20Sopenharmony_ci	struct uvyh_node_present_0_s {
29368c2ecf20Sopenharmony_ci		unsigned long	nodes:64;			/* RW */
29378c2ecf20Sopenharmony_ci	} sy;
29388c2ecf20Sopenharmony_ci
29398c2ecf20Sopenharmony_ci	/* UV5 unique struct */
29408c2ecf20Sopenharmony_ci	struct uv5h_node_present_0_s {
29418c2ecf20Sopenharmony_ci		unsigned long	nodes:64;			/* RW */
29428c2ecf20Sopenharmony_ci	} s5;
29438c2ecf20Sopenharmony_ci};
29448c2ecf20Sopenharmony_ci
29458c2ecf20Sopenharmony_ci/* ========================================================================= */
29468c2ecf20Sopenharmony_ci/*                            UVH_NODE_PRESENT_1                             */
29478c2ecf20Sopenharmony_ci/* ========================================================================= */
29488c2ecf20Sopenharmony_ci#define UVH_NODE_PRESENT_1 (						\
29498c2ecf20Sopenharmony_ci	is_uv(UV5) ? 0x1408UL :						\
29508c2ecf20Sopenharmony_ci	0)
29518c2ecf20Sopenharmony_ci
29528c2ecf20Sopenharmony_ci
29538c2ecf20Sopenharmony_ci/* UVYH common defines */
29548c2ecf20Sopenharmony_ci#define UVYH_NODE_PRESENT_1_NODES_SHFT			0
29558c2ecf20Sopenharmony_ci#define UVYH_NODE_PRESENT_1_NODES_MASK			0xffffffffffffffffUL
29568c2ecf20Sopenharmony_ci
29578c2ecf20Sopenharmony_ci
29588c2ecf20Sopenharmony_ciunion uvh_node_present_1_u {
29598c2ecf20Sopenharmony_ci	unsigned long	v;
29608c2ecf20Sopenharmony_ci
29618c2ecf20Sopenharmony_ci	/* UVH common struct */
29628c2ecf20Sopenharmony_ci	struct uvh_node_present_1_s {
29638c2ecf20Sopenharmony_ci		unsigned long	nodes:64;			/* RW */
29648c2ecf20Sopenharmony_ci	} s;
29658c2ecf20Sopenharmony_ci
29668c2ecf20Sopenharmony_ci	/* UVYH common struct */
29678c2ecf20Sopenharmony_ci	struct uvyh_node_present_1_s {
29688c2ecf20Sopenharmony_ci		unsigned long	nodes:64;			/* RW */
29698c2ecf20Sopenharmony_ci	} sy;
29708c2ecf20Sopenharmony_ci
29718c2ecf20Sopenharmony_ci	/* UV5 unique struct */
29728c2ecf20Sopenharmony_ci	struct uv5h_node_present_1_s {
29738c2ecf20Sopenharmony_ci		unsigned long	nodes:64;			/* RW */
29748c2ecf20Sopenharmony_ci	} s5;
29758c2ecf20Sopenharmony_ci};
29768c2ecf20Sopenharmony_ci
29778c2ecf20Sopenharmony_ci/* ========================================================================= */
29788c2ecf20Sopenharmony_ci/*                          UVH_NODE_PRESENT_TABLE                           */
29798c2ecf20Sopenharmony_ci/* ========================================================================= */
29808c2ecf20Sopenharmony_ci#define UVH_NODE_PRESENT_TABLE (					\
29818c2ecf20Sopenharmony_ci	is_uv(UV4) ? 0x1400UL :						\
29828c2ecf20Sopenharmony_ci	is_uv(UV3) ? 0x1400UL :						\
29838c2ecf20Sopenharmony_ci	is_uv(UV2) ? 0x1400UL :						\
29848c2ecf20Sopenharmony_ci	0)
29858c2ecf20Sopenharmony_ci
29868c2ecf20Sopenharmony_ci#define UVH_NODE_PRESENT_TABLE_DEPTH (					\
29878c2ecf20Sopenharmony_ci	is_uv(UV4) ? 4 :						\
29888c2ecf20Sopenharmony_ci	is_uv(UV3) ? 16 :						\
29898c2ecf20Sopenharmony_ci	is_uv(UV2) ? 16 :						\
29908c2ecf20Sopenharmony_ci	0)
29918c2ecf20Sopenharmony_ci
29928c2ecf20Sopenharmony_ci
29938c2ecf20Sopenharmony_ci/* UVXH common defines */
29948c2ecf20Sopenharmony_ci#define UVXH_NODE_PRESENT_TABLE_NODES_SHFT		0
29958c2ecf20Sopenharmony_ci#define UVXH_NODE_PRESENT_TABLE_NODES_MASK		0xffffffffffffffffUL
29968c2ecf20Sopenharmony_ci
29978c2ecf20Sopenharmony_ci
29988c2ecf20Sopenharmony_ciunion uvh_node_present_table_u {
29998c2ecf20Sopenharmony_ci	unsigned long	v;
30008c2ecf20Sopenharmony_ci
30018c2ecf20Sopenharmony_ci	/* UVH common struct */
30028c2ecf20Sopenharmony_ci	struct uvh_node_present_table_s {
30038c2ecf20Sopenharmony_ci		unsigned long	nodes:64;			/* RW */
30048c2ecf20Sopenharmony_ci	} s;
30058c2ecf20Sopenharmony_ci
30068c2ecf20Sopenharmony_ci	/* UVXH common struct */
30078c2ecf20Sopenharmony_ci	struct uvxh_node_present_table_s {
30088c2ecf20Sopenharmony_ci		unsigned long	nodes:64;			/* RW */
30098c2ecf20Sopenharmony_ci	} sx;
30108c2ecf20Sopenharmony_ci
30118c2ecf20Sopenharmony_ci	/* UV4 unique struct */
30128c2ecf20Sopenharmony_ci	struct uv4h_node_present_table_s {
30138c2ecf20Sopenharmony_ci		unsigned long	nodes:64;			/* RW */
30148c2ecf20Sopenharmony_ci	} s4;
30158c2ecf20Sopenharmony_ci
30168c2ecf20Sopenharmony_ci	/* UV3 unique struct */
30178c2ecf20Sopenharmony_ci	struct uv3h_node_present_table_s {
30188c2ecf20Sopenharmony_ci		unsigned long	nodes:64;			/* RW */
30198c2ecf20Sopenharmony_ci	} s3;
30208c2ecf20Sopenharmony_ci
30218c2ecf20Sopenharmony_ci	/* UV2 unique struct */
30228c2ecf20Sopenharmony_ci	struct uv2h_node_present_table_s {
30238c2ecf20Sopenharmony_ci		unsigned long	nodes:64;			/* RW */
30248c2ecf20Sopenharmony_ci	} s2;
30258c2ecf20Sopenharmony_ci};
30268c2ecf20Sopenharmony_ci
30278c2ecf20Sopenharmony_ci/* ========================================================================= */
30288c2ecf20Sopenharmony_ci/*                       UVH_RH10_GAM_ADDR_MAP_CONFIG                        */
30298c2ecf20Sopenharmony_ci/* ========================================================================= */
30308c2ecf20Sopenharmony_ci#define UVH_RH10_GAM_ADDR_MAP_CONFIG (					\
30318c2ecf20Sopenharmony_ci	is_uv(UV5) ? 0x470000UL :					\
30328c2ecf20Sopenharmony_ci	0)
30338c2ecf20Sopenharmony_ci
30348c2ecf20Sopenharmony_ci
30358c2ecf20Sopenharmony_ci/* UVYH common defines */
30368c2ecf20Sopenharmony_ci#define UVYH_RH10_GAM_ADDR_MAP_CONFIG_N_SKT_SHFT	6
30378c2ecf20Sopenharmony_ci#define UVYH_RH10_GAM_ADDR_MAP_CONFIG_N_SKT_MASK	0x00000000000001c0UL
30388c2ecf20Sopenharmony_ci#define UVYH_RH10_GAM_ADDR_MAP_CONFIG_LS_ENABLE_SHFT	12
30398c2ecf20Sopenharmony_ci#define UVYH_RH10_GAM_ADDR_MAP_CONFIG_LS_ENABLE_MASK	0x0000000000001000UL
30408c2ecf20Sopenharmony_ci#define UVYH_RH10_GAM_ADDR_MAP_CONFIG_MK_TME_KEYID_BITS_SHFT 16
30418c2ecf20Sopenharmony_ci#define UVYH_RH10_GAM_ADDR_MAP_CONFIG_MK_TME_KEYID_BITS_MASK 0x00000000000f0000UL
30428c2ecf20Sopenharmony_ci
30438c2ecf20Sopenharmony_ci
30448c2ecf20Sopenharmony_ciunion uvh_rh10_gam_addr_map_config_u {
30458c2ecf20Sopenharmony_ci	unsigned long	v;
30468c2ecf20Sopenharmony_ci
30478c2ecf20Sopenharmony_ci	/* UVH common struct */
30488c2ecf20Sopenharmony_ci	struct uvh_rh10_gam_addr_map_config_s {
30498c2ecf20Sopenharmony_ci		unsigned long	undef_0_5:6;			/* Undefined */
30508c2ecf20Sopenharmony_ci		unsigned long	n_skt:3;			/* RW */
30518c2ecf20Sopenharmony_ci		unsigned long	undef_9_11:3;			/* Undefined */
30528c2ecf20Sopenharmony_ci		unsigned long	ls_enable:1;			/* RW */
30538c2ecf20Sopenharmony_ci		unsigned long	undef_13_15:3;			/* Undefined */
30548c2ecf20Sopenharmony_ci		unsigned long	mk_tme_keyid_bits:4;		/* RW */
30558c2ecf20Sopenharmony_ci		unsigned long	rsvd_20_63:44;
30568c2ecf20Sopenharmony_ci	} s;
30578c2ecf20Sopenharmony_ci
30588c2ecf20Sopenharmony_ci	/* UVYH common struct */
30598c2ecf20Sopenharmony_ci	struct uvyh_rh10_gam_addr_map_config_s {
30608c2ecf20Sopenharmony_ci		unsigned long	undef_0_5:6;			/* Undefined */
30618c2ecf20Sopenharmony_ci		unsigned long	n_skt:3;			/* RW */
30628c2ecf20Sopenharmony_ci		unsigned long	undef_9_11:3;			/* Undefined */
30638c2ecf20Sopenharmony_ci		unsigned long	ls_enable:1;			/* RW */
30648c2ecf20Sopenharmony_ci		unsigned long	undef_13_15:3;			/* Undefined */
30658c2ecf20Sopenharmony_ci		unsigned long	mk_tme_keyid_bits:4;		/* RW */
30668c2ecf20Sopenharmony_ci		unsigned long	rsvd_20_63:44;
30678c2ecf20Sopenharmony_ci	} sy;
30688c2ecf20Sopenharmony_ci
30698c2ecf20Sopenharmony_ci	/* UV5 unique struct */
30708c2ecf20Sopenharmony_ci	struct uv5h_rh10_gam_addr_map_config_s {
30718c2ecf20Sopenharmony_ci		unsigned long	undef_0_5:6;			/* Undefined */
30728c2ecf20Sopenharmony_ci		unsigned long	n_skt:3;			/* RW */
30738c2ecf20Sopenharmony_ci		unsigned long	undef_9_11:3;			/* Undefined */
30748c2ecf20Sopenharmony_ci		unsigned long	ls_enable:1;			/* RW */
30758c2ecf20Sopenharmony_ci		unsigned long	undef_13_15:3;			/* Undefined */
30768c2ecf20Sopenharmony_ci		unsigned long	mk_tme_keyid_bits:4;		/* RW */
30778c2ecf20Sopenharmony_ci	} s5;
30788c2ecf20Sopenharmony_ci};
30798c2ecf20Sopenharmony_ci
30808c2ecf20Sopenharmony_ci/* ========================================================================= */
30818c2ecf20Sopenharmony_ci/*                     UVH_RH10_GAM_GRU_OVERLAY_CONFIG                       */
30828c2ecf20Sopenharmony_ci/* ========================================================================= */
30838c2ecf20Sopenharmony_ci#define UVH_RH10_GAM_GRU_OVERLAY_CONFIG (				\
30848c2ecf20Sopenharmony_ci	is_uv(UV5) ? 0x4700b0UL :					\
30858c2ecf20Sopenharmony_ci	0)
30868c2ecf20Sopenharmony_ci
30878c2ecf20Sopenharmony_ci
30888c2ecf20Sopenharmony_ci/* UVYH common defines */
30898c2ecf20Sopenharmony_ci#define UVYH_RH10_GAM_GRU_OVERLAY_CONFIG_BASE_SHFT	25
30908c2ecf20Sopenharmony_ci#define UVYH_RH10_GAM_GRU_OVERLAY_CONFIG_BASE_MASK	0x000ffffffe000000UL
30918c2ecf20Sopenharmony_ci#define UVYH_RH10_GAM_GRU_OVERLAY_CONFIG_N_GRU_SHFT	52
30928c2ecf20Sopenharmony_ci#define UVYH_RH10_GAM_GRU_OVERLAY_CONFIG_N_GRU_MASK	0x0070000000000000UL
30938c2ecf20Sopenharmony_ci#define UVYH_RH10_GAM_GRU_OVERLAY_CONFIG_ENABLE_SHFT	63
30948c2ecf20Sopenharmony_ci#define UVYH_RH10_GAM_GRU_OVERLAY_CONFIG_ENABLE_MASK	0x8000000000000000UL
30958c2ecf20Sopenharmony_ci
30968c2ecf20Sopenharmony_ci#define UVH_RH10_GAM_GRU_OVERLAY_CONFIG_BASE_MASK (			\
30978c2ecf20Sopenharmony_ci	is_uv(UV5) ? 0x000ffffffe000000UL :				\
30988c2ecf20Sopenharmony_ci	0)
30998c2ecf20Sopenharmony_ci#define UVH_RH10_GAM_GRU_OVERLAY_CONFIG_BASE_SHFT (			\
31008c2ecf20Sopenharmony_ci	is_uv(UV5) ? 25 :						\
31018c2ecf20Sopenharmony_ci	-1)
31028c2ecf20Sopenharmony_ci
31038c2ecf20Sopenharmony_ciunion uvh_rh10_gam_gru_overlay_config_u {
31048c2ecf20Sopenharmony_ci	unsigned long	v;
31058c2ecf20Sopenharmony_ci
31068c2ecf20Sopenharmony_ci	/* UVH common struct */
31078c2ecf20Sopenharmony_ci	struct uvh_rh10_gam_gru_overlay_config_s {
31088c2ecf20Sopenharmony_ci		unsigned long	undef_0_24:25;			/* Undefined */
31098c2ecf20Sopenharmony_ci		unsigned long	base:27;			/* RW */
31108c2ecf20Sopenharmony_ci		unsigned long	n_gru:3;			/* RW */
31118c2ecf20Sopenharmony_ci		unsigned long	undef_55_62:8;			/* Undefined */
31128c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
31138c2ecf20Sopenharmony_ci	} s;
31148c2ecf20Sopenharmony_ci
31158c2ecf20Sopenharmony_ci	/* UVYH common struct */
31168c2ecf20Sopenharmony_ci	struct uvyh_rh10_gam_gru_overlay_config_s {
31178c2ecf20Sopenharmony_ci		unsigned long	undef_0_24:25;			/* Undefined */
31188c2ecf20Sopenharmony_ci		unsigned long	base:27;			/* RW */
31198c2ecf20Sopenharmony_ci		unsigned long	n_gru:3;			/* RW */
31208c2ecf20Sopenharmony_ci		unsigned long	undef_55_62:8;			/* Undefined */
31218c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
31228c2ecf20Sopenharmony_ci	} sy;
31238c2ecf20Sopenharmony_ci
31248c2ecf20Sopenharmony_ci	/* UV5 unique struct */
31258c2ecf20Sopenharmony_ci	struct uv5h_rh10_gam_gru_overlay_config_s {
31268c2ecf20Sopenharmony_ci		unsigned long	undef_0_24:25;			/* Undefined */
31278c2ecf20Sopenharmony_ci		unsigned long	base:27;			/* RW */
31288c2ecf20Sopenharmony_ci		unsigned long	n_gru:3;			/* RW */
31298c2ecf20Sopenharmony_ci		unsigned long	undef_55_62:8;			/* Undefined */
31308c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
31318c2ecf20Sopenharmony_ci	} s5;
31328c2ecf20Sopenharmony_ci};
31338c2ecf20Sopenharmony_ci
31348c2ecf20Sopenharmony_ci/* ========================================================================= */
31358c2ecf20Sopenharmony_ci/*                    UVH_RH10_GAM_MMIOH_OVERLAY_CONFIG0                     */
31368c2ecf20Sopenharmony_ci/* ========================================================================= */
31378c2ecf20Sopenharmony_ci#define UVH_RH10_GAM_MMIOH_OVERLAY_CONFIG0 (				\
31388c2ecf20Sopenharmony_ci	is_uv(UV5) ? 0x473000UL :					\
31398c2ecf20Sopenharmony_ci	0)
31408c2ecf20Sopenharmony_ci
31418c2ecf20Sopenharmony_ci
31428c2ecf20Sopenharmony_ci/* UVYH common defines */
31438c2ecf20Sopenharmony_ci#define UVYH_RH10_GAM_MMIOH_OVERLAY_CONFIG0_BASE_SHFT	26
31448c2ecf20Sopenharmony_ci#define UVYH_RH10_GAM_MMIOH_OVERLAY_CONFIG0_BASE_MASK	0x000ffffffc000000UL
31458c2ecf20Sopenharmony_ci#define UVYH_RH10_GAM_MMIOH_OVERLAY_CONFIG0_M_IO_SHFT	52
31468c2ecf20Sopenharmony_ci#define UVYH_RH10_GAM_MMIOH_OVERLAY_CONFIG0_M_IO_MASK	0x03f0000000000000UL
31478c2ecf20Sopenharmony_ci#define UVYH_RH10_GAM_MMIOH_OVERLAY_CONFIG0_ENABLE_SHFT	63
31488c2ecf20Sopenharmony_ci#define UVYH_RH10_GAM_MMIOH_OVERLAY_CONFIG0_ENABLE_MASK	0x8000000000000000UL
31498c2ecf20Sopenharmony_ci
31508c2ecf20Sopenharmony_ci#define UVH_RH10_GAM_MMIOH_OVERLAY_CONFIG0_BASE_MASK (			\
31518c2ecf20Sopenharmony_ci	is_uv(UV5) ? 0x000ffffffc000000UL :				\
31528c2ecf20Sopenharmony_ci	0)
31538c2ecf20Sopenharmony_ci#define UVH_RH10_GAM_MMIOH_OVERLAY_CONFIG0_BASE_SHFT (			\
31548c2ecf20Sopenharmony_ci	is_uv(UV5) ? 26 :						\
31558c2ecf20Sopenharmony_ci	-1)
31568c2ecf20Sopenharmony_ci
31578c2ecf20Sopenharmony_ciunion uvh_rh10_gam_mmioh_overlay_config0_u {
31588c2ecf20Sopenharmony_ci	unsigned long	v;
31598c2ecf20Sopenharmony_ci
31608c2ecf20Sopenharmony_ci	/* UVH common struct */
31618c2ecf20Sopenharmony_ci	struct uvh_rh10_gam_mmioh_overlay_config0_s {
31628c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_25:26;
31638c2ecf20Sopenharmony_ci		unsigned long	base:26;			/* RW */
31648c2ecf20Sopenharmony_ci		unsigned long	m_io:6;				/* RW */
31658c2ecf20Sopenharmony_ci		unsigned long	n_io:4;
31668c2ecf20Sopenharmony_ci		unsigned long	undef_62:1;			/* Undefined */
31678c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
31688c2ecf20Sopenharmony_ci	} s;
31698c2ecf20Sopenharmony_ci
31708c2ecf20Sopenharmony_ci	/* UVYH common struct */
31718c2ecf20Sopenharmony_ci	struct uvyh_rh10_gam_mmioh_overlay_config0_s {
31728c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_25:26;
31738c2ecf20Sopenharmony_ci		unsigned long	base:26;			/* RW */
31748c2ecf20Sopenharmony_ci		unsigned long	m_io:6;				/* RW */
31758c2ecf20Sopenharmony_ci		unsigned long	n_io:4;
31768c2ecf20Sopenharmony_ci		unsigned long	undef_62:1;			/* Undefined */
31778c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
31788c2ecf20Sopenharmony_ci	} sy;
31798c2ecf20Sopenharmony_ci
31808c2ecf20Sopenharmony_ci	/* UV5 unique struct */
31818c2ecf20Sopenharmony_ci	struct uv5h_rh10_gam_mmioh_overlay_config0_s {
31828c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_25:26;
31838c2ecf20Sopenharmony_ci		unsigned long	base:26;			/* RW */
31848c2ecf20Sopenharmony_ci		unsigned long	m_io:6;				/* RW */
31858c2ecf20Sopenharmony_ci		unsigned long	n_io:4;
31868c2ecf20Sopenharmony_ci		unsigned long	undef_62:1;			/* Undefined */
31878c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
31888c2ecf20Sopenharmony_ci	} s5;
31898c2ecf20Sopenharmony_ci};
31908c2ecf20Sopenharmony_ci
31918c2ecf20Sopenharmony_ci/* ========================================================================= */
31928c2ecf20Sopenharmony_ci/*                    UVH_RH10_GAM_MMIOH_OVERLAY_CONFIG1                     */
31938c2ecf20Sopenharmony_ci/* ========================================================================= */
31948c2ecf20Sopenharmony_ci#define UVH_RH10_GAM_MMIOH_OVERLAY_CONFIG1 (				\
31958c2ecf20Sopenharmony_ci	is_uv(UV5) ? 0x474000UL :					\
31968c2ecf20Sopenharmony_ci	0)
31978c2ecf20Sopenharmony_ci
31988c2ecf20Sopenharmony_ci
31998c2ecf20Sopenharmony_ci/* UVYH common defines */
32008c2ecf20Sopenharmony_ci#define UVYH_RH10_GAM_MMIOH_OVERLAY_CONFIG1_BASE_SHFT	26
32018c2ecf20Sopenharmony_ci#define UVYH_RH10_GAM_MMIOH_OVERLAY_CONFIG1_BASE_MASK	0x000ffffffc000000UL
32028c2ecf20Sopenharmony_ci#define UVYH_RH10_GAM_MMIOH_OVERLAY_CONFIG1_M_IO_SHFT	52
32038c2ecf20Sopenharmony_ci#define UVYH_RH10_GAM_MMIOH_OVERLAY_CONFIG1_M_IO_MASK	0x03f0000000000000UL
32048c2ecf20Sopenharmony_ci#define UVYH_RH10_GAM_MMIOH_OVERLAY_CONFIG1_ENABLE_SHFT	63
32058c2ecf20Sopenharmony_ci#define UVYH_RH10_GAM_MMIOH_OVERLAY_CONFIG1_ENABLE_MASK	0x8000000000000000UL
32068c2ecf20Sopenharmony_ci
32078c2ecf20Sopenharmony_ci#define UVH_RH10_GAM_MMIOH_OVERLAY_CONFIG1_BASE_MASK (			\
32088c2ecf20Sopenharmony_ci	is_uv(UV5) ? 0x000ffffffc000000UL :				\
32098c2ecf20Sopenharmony_ci	0)
32108c2ecf20Sopenharmony_ci#define UVH_RH10_GAM_MMIOH_OVERLAY_CONFIG1_BASE_SHFT (			\
32118c2ecf20Sopenharmony_ci	is_uv(UV5) ? 26 :						\
32128c2ecf20Sopenharmony_ci	-1)
32138c2ecf20Sopenharmony_ci
32148c2ecf20Sopenharmony_ciunion uvh_rh10_gam_mmioh_overlay_config1_u {
32158c2ecf20Sopenharmony_ci	unsigned long	v;
32168c2ecf20Sopenharmony_ci
32178c2ecf20Sopenharmony_ci	/* UVH common struct */
32188c2ecf20Sopenharmony_ci	struct uvh_rh10_gam_mmioh_overlay_config1_s {
32198c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_25:26;
32208c2ecf20Sopenharmony_ci		unsigned long	base:26;			/* RW */
32218c2ecf20Sopenharmony_ci		unsigned long	m_io:6;				/* RW */
32228c2ecf20Sopenharmony_ci		unsigned long	n_io:4;
32238c2ecf20Sopenharmony_ci		unsigned long	undef_62:1;			/* Undefined */
32248c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
32258c2ecf20Sopenharmony_ci	} s;
32268c2ecf20Sopenharmony_ci
32278c2ecf20Sopenharmony_ci	/* UVYH common struct */
32288c2ecf20Sopenharmony_ci	struct uvyh_rh10_gam_mmioh_overlay_config1_s {
32298c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_25:26;
32308c2ecf20Sopenharmony_ci		unsigned long	base:26;			/* RW */
32318c2ecf20Sopenharmony_ci		unsigned long	m_io:6;				/* RW */
32328c2ecf20Sopenharmony_ci		unsigned long	n_io:4;
32338c2ecf20Sopenharmony_ci		unsigned long	undef_62:1;			/* Undefined */
32348c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
32358c2ecf20Sopenharmony_ci	} sy;
32368c2ecf20Sopenharmony_ci
32378c2ecf20Sopenharmony_ci	/* UV5 unique struct */
32388c2ecf20Sopenharmony_ci	struct uv5h_rh10_gam_mmioh_overlay_config1_s {
32398c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_25:26;
32408c2ecf20Sopenharmony_ci		unsigned long	base:26;			/* RW */
32418c2ecf20Sopenharmony_ci		unsigned long	m_io:6;				/* RW */
32428c2ecf20Sopenharmony_ci		unsigned long	n_io:4;
32438c2ecf20Sopenharmony_ci		unsigned long	undef_62:1;			/* Undefined */
32448c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
32458c2ecf20Sopenharmony_ci	} s5;
32468c2ecf20Sopenharmony_ci};
32478c2ecf20Sopenharmony_ci
32488c2ecf20Sopenharmony_ci/* ========================================================================= */
32498c2ecf20Sopenharmony_ci/*                   UVH_RH10_GAM_MMIOH_REDIRECT_CONFIG0                     */
32508c2ecf20Sopenharmony_ci/* ========================================================================= */
32518c2ecf20Sopenharmony_ci#define UVH_RH10_GAM_MMIOH_REDIRECT_CONFIG0 (				\
32528c2ecf20Sopenharmony_ci	is_uv(UV5) ? 0x473800UL :					\
32538c2ecf20Sopenharmony_ci	0)
32548c2ecf20Sopenharmony_ci
32558c2ecf20Sopenharmony_ci#define UVH_RH10_GAM_MMIOH_REDIRECT_CONFIG0_DEPTH (			\
32568c2ecf20Sopenharmony_ci	is_uv(UV5) ? 128 :						\
32578c2ecf20Sopenharmony_ci	0)
32588c2ecf20Sopenharmony_ci
32598c2ecf20Sopenharmony_ci
32608c2ecf20Sopenharmony_ci/* UVYH common defines */
32618c2ecf20Sopenharmony_ci#define UVYH_RH10_GAM_MMIOH_REDIRECT_CONFIG0_NASID_SHFT	0
32628c2ecf20Sopenharmony_ci#define UVYH_RH10_GAM_MMIOH_REDIRECT_CONFIG0_NASID_MASK	0x000000000000007fUL
32638c2ecf20Sopenharmony_ci
32648c2ecf20Sopenharmony_ci
32658c2ecf20Sopenharmony_ciunion uvh_rh10_gam_mmioh_redirect_config0_u {
32668c2ecf20Sopenharmony_ci	unsigned long	v;
32678c2ecf20Sopenharmony_ci
32688c2ecf20Sopenharmony_ci	/* UVH common struct */
32698c2ecf20Sopenharmony_ci	struct uvh_rh10_gam_mmioh_redirect_config0_s {
32708c2ecf20Sopenharmony_ci		unsigned long	nasid:7;			/* RW */
32718c2ecf20Sopenharmony_ci		unsigned long	rsvd_7_63:57;
32728c2ecf20Sopenharmony_ci	} s;
32738c2ecf20Sopenharmony_ci
32748c2ecf20Sopenharmony_ci	/* UVYH common struct */
32758c2ecf20Sopenharmony_ci	struct uvyh_rh10_gam_mmioh_redirect_config0_s {
32768c2ecf20Sopenharmony_ci		unsigned long	nasid:7;			/* RW */
32778c2ecf20Sopenharmony_ci		unsigned long	rsvd_7_63:57;
32788c2ecf20Sopenharmony_ci	} sy;
32798c2ecf20Sopenharmony_ci
32808c2ecf20Sopenharmony_ci	/* UV5 unique struct */
32818c2ecf20Sopenharmony_ci	struct uv5h_rh10_gam_mmioh_redirect_config0_s {
32828c2ecf20Sopenharmony_ci		unsigned long	nasid:7;			/* RW */
32838c2ecf20Sopenharmony_ci		unsigned long	rsvd_7_63:57;
32848c2ecf20Sopenharmony_ci	} s5;
32858c2ecf20Sopenharmony_ci};
32868c2ecf20Sopenharmony_ci
32878c2ecf20Sopenharmony_ci/* ========================================================================= */
32888c2ecf20Sopenharmony_ci/*                   UVH_RH10_GAM_MMIOH_REDIRECT_CONFIG1                     */
32898c2ecf20Sopenharmony_ci/* ========================================================================= */
32908c2ecf20Sopenharmony_ci#define UVH_RH10_GAM_MMIOH_REDIRECT_CONFIG1 (				\
32918c2ecf20Sopenharmony_ci	is_uv(UV5) ? 0x474800UL :					\
32928c2ecf20Sopenharmony_ci	0)
32938c2ecf20Sopenharmony_ci
32948c2ecf20Sopenharmony_ci#define UVH_RH10_GAM_MMIOH_REDIRECT_CONFIG1_DEPTH (			\
32958c2ecf20Sopenharmony_ci	is_uv(UV5) ? 128 :						\
32968c2ecf20Sopenharmony_ci	0)
32978c2ecf20Sopenharmony_ci
32988c2ecf20Sopenharmony_ci
32998c2ecf20Sopenharmony_ci/* UVYH common defines */
33008c2ecf20Sopenharmony_ci#define UVYH_RH10_GAM_MMIOH_REDIRECT_CONFIG1_NASID_SHFT	0
33018c2ecf20Sopenharmony_ci#define UVYH_RH10_GAM_MMIOH_REDIRECT_CONFIG1_NASID_MASK	0x000000000000007fUL
33028c2ecf20Sopenharmony_ci
33038c2ecf20Sopenharmony_ci
33048c2ecf20Sopenharmony_ciunion uvh_rh10_gam_mmioh_redirect_config1_u {
33058c2ecf20Sopenharmony_ci	unsigned long	v;
33068c2ecf20Sopenharmony_ci
33078c2ecf20Sopenharmony_ci	/* UVH common struct */
33088c2ecf20Sopenharmony_ci	struct uvh_rh10_gam_mmioh_redirect_config1_s {
33098c2ecf20Sopenharmony_ci		unsigned long	nasid:7;			/* RW */
33108c2ecf20Sopenharmony_ci		unsigned long	rsvd_7_63:57;
33118c2ecf20Sopenharmony_ci	} s;
33128c2ecf20Sopenharmony_ci
33138c2ecf20Sopenharmony_ci	/* UVYH common struct */
33148c2ecf20Sopenharmony_ci	struct uvyh_rh10_gam_mmioh_redirect_config1_s {
33158c2ecf20Sopenharmony_ci		unsigned long	nasid:7;			/* RW */
33168c2ecf20Sopenharmony_ci		unsigned long	rsvd_7_63:57;
33178c2ecf20Sopenharmony_ci	} sy;
33188c2ecf20Sopenharmony_ci
33198c2ecf20Sopenharmony_ci	/* UV5 unique struct */
33208c2ecf20Sopenharmony_ci	struct uv5h_rh10_gam_mmioh_redirect_config1_s {
33218c2ecf20Sopenharmony_ci		unsigned long	nasid:7;			/* RW */
33228c2ecf20Sopenharmony_ci		unsigned long	rsvd_7_63:57;
33238c2ecf20Sopenharmony_ci	} s5;
33248c2ecf20Sopenharmony_ci};
33258c2ecf20Sopenharmony_ci
33268c2ecf20Sopenharmony_ci/* ========================================================================= */
33278c2ecf20Sopenharmony_ci/*                     UVH_RH10_GAM_MMR_OVERLAY_CONFIG                       */
33288c2ecf20Sopenharmony_ci/* ========================================================================= */
33298c2ecf20Sopenharmony_ci#define UVH_RH10_GAM_MMR_OVERLAY_CONFIG (				\
33308c2ecf20Sopenharmony_ci	is_uv(UV5) ? 0x470090UL :					\
33318c2ecf20Sopenharmony_ci	0)
33328c2ecf20Sopenharmony_ci
33338c2ecf20Sopenharmony_ci
33348c2ecf20Sopenharmony_ci/* UVYH common defines */
33358c2ecf20Sopenharmony_ci#define UVYH_RH10_GAM_MMR_OVERLAY_CONFIG_BASE_SHFT	25
33368c2ecf20Sopenharmony_ci#define UVYH_RH10_GAM_MMR_OVERLAY_CONFIG_BASE_MASK	0x000ffffffe000000UL
33378c2ecf20Sopenharmony_ci#define UVYH_RH10_GAM_MMR_OVERLAY_CONFIG_ENABLE_SHFT	63
33388c2ecf20Sopenharmony_ci#define UVYH_RH10_GAM_MMR_OVERLAY_CONFIG_ENABLE_MASK	0x8000000000000000UL
33398c2ecf20Sopenharmony_ci
33408c2ecf20Sopenharmony_ci#define UVH_RH10_GAM_MMR_OVERLAY_CONFIG_BASE_MASK (			\
33418c2ecf20Sopenharmony_ci	is_uv(UV5) ? 0x000ffffffe000000UL :				\
33428c2ecf20Sopenharmony_ci	0)
33438c2ecf20Sopenharmony_ci#define UVH_RH10_GAM_MMR_OVERLAY_CONFIG_BASE_SHFT (			\
33448c2ecf20Sopenharmony_ci	is_uv(UV5) ? 25 :						\
33458c2ecf20Sopenharmony_ci	-1)
33468c2ecf20Sopenharmony_ci
33478c2ecf20Sopenharmony_ciunion uvh_rh10_gam_mmr_overlay_config_u {
33488c2ecf20Sopenharmony_ci	unsigned long	v;
33498c2ecf20Sopenharmony_ci
33508c2ecf20Sopenharmony_ci	/* UVH common struct */
33518c2ecf20Sopenharmony_ci	struct uvh_rh10_gam_mmr_overlay_config_s {
33528c2ecf20Sopenharmony_ci		unsigned long	undef_0_24:25;			/* Undefined */
33538c2ecf20Sopenharmony_ci		unsigned long	base:27;			/* RW */
33548c2ecf20Sopenharmony_ci		unsigned long	undef_52_62:11;			/* Undefined */
33558c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
33568c2ecf20Sopenharmony_ci	} s;
33578c2ecf20Sopenharmony_ci
33588c2ecf20Sopenharmony_ci	/* UVYH common struct */
33598c2ecf20Sopenharmony_ci	struct uvyh_rh10_gam_mmr_overlay_config_s {
33608c2ecf20Sopenharmony_ci		unsigned long	undef_0_24:25;			/* Undefined */
33618c2ecf20Sopenharmony_ci		unsigned long	base:27;			/* RW */
33628c2ecf20Sopenharmony_ci		unsigned long	undef_52_62:11;			/* Undefined */
33638c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
33648c2ecf20Sopenharmony_ci	} sy;
33658c2ecf20Sopenharmony_ci
33668c2ecf20Sopenharmony_ci	/* UV5 unique struct */
33678c2ecf20Sopenharmony_ci	struct uv5h_rh10_gam_mmr_overlay_config_s {
33688c2ecf20Sopenharmony_ci		unsigned long	undef_0_24:25;			/* Undefined */
33698c2ecf20Sopenharmony_ci		unsigned long	base:27;			/* RW */
33708c2ecf20Sopenharmony_ci		unsigned long	undef_52_62:11;			/* Undefined */
33718c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
33728c2ecf20Sopenharmony_ci	} s5;
33738c2ecf20Sopenharmony_ci};
33748c2ecf20Sopenharmony_ci
33758c2ecf20Sopenharmony_ci/* ========================================================================= */
33768c2ecf20Sopenharmony_ci/*                        UVH_RH_GAM_ADDR_MAP_CONFIG                         */
33778c2ecf20Sopenharmony_ci/* ========================================================================= */
33788c2ecf20Sopenharmony_ci#define UVH_RH_GAM_ADDR_MAP_CONFIG (					\
33798c2ecf20Sopenharmony_ci	is_uv(UV4) ? 0x480000UL :					\
33808c2ecf20Sopenharmony_ci	is_uv(UV3) ? 0x1600000UL :					\
33818c2ecf20Sopenharmony_ci	is_uv(UV2) ? 0x1600000UL :					\
33828c2ecf20Sopenharmony_ci	0)
33838c2ecf20Sopenharmony_ci
33848c2ecf20Sopenharmony_ci
33858c2ecf20Sopenharmony_ci/* UVXH common defines */
33868c2ecf20Sopenharmony_ci#define UVXH_RH_GAM_ADDR_MAP_CONFIG_N_SKT_SHFT		6
33878c2ecf20Sopenharmony_ci#define UVXH_RH_GAM_ADDR_MAP_CONFIG_N_SKT_MASK		0x00000000000003c0UL
33888c2ecf20Sopenharmony_ci
33898c2ecf20Sopenharmony_ci/* UV3 unique defines */
33908c2ecf20Sopenharmony_ci#define UV3H_RH_GAM_ADDR_MAP_CONFIG_M_SKT_SHFT		0
33918c2ecf20Sopenharmony_ci#define UV3H_RH_GAM_ADDR_MAP_CONFIG_M_SKT_MASK		0x000000000000003fUL
33928c2ecf20Sopenharmony_ci
33938c2ecf20Sopenharmony_ci/* UV2 unique defines */
33948c2ecf20Sopenharmony_ci#define UV2H_RH_GAM_ADDR_MAP_CONFIG_M_SKT_SHFT		0
33958c2ecf20Sopenharmony_ci#define UV2H_RH_GAM_ADDR_MAP_CONFIG_M_SKT_MASK		0x000000000000003fUL
33968c2ecf20Sopenharmony_ci
33978c2ecf20Sopenharmony_ci
33988c2ecf20Sopenharmony_ciunion uvh_rh_gam_addr_map_config_u {
33998c2ecf20Sopenharmony_ci	unsigned long	v;
34008c2ecf20Sopenharmony_ci
34018c2ecf20Sopenharmony_ci	/* UVH common struct */
34028c2ecf20Sopenharmony_ci	struct uvh_rh_gam_addr_map_config_s {
34038c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_5:6;
34048c2ecf20Sopenharmony_ci		unsigned long	n_skt:4;			/* RW */
34058c2ecf20Sopenharmony_ci		unsigned long	rsvd_10_63:54;
34068c2ecf20Sopenharmony_ci	} s;
34078c2ecf20Sopenharmony_ci
34088c2ecf20Sopenharmony_ci	/* UVXH common struct */
34098c2ecf20Sopenharmony_ci	struct uvxh_rh_gam_addr_map_config_s {
34108c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_5:6;
34118c2ecf20Sopenharmony_ci		unsigned long	n_skt:4;			/* RW */
34128c2ecf20Sopenharmony_ci		unsigned long	rsvd_10_63:54;
34138c2ecf20Sopenharmony_ci	} sx;
34148c2ecf20Sopenharmony_ci
34158c2ecf20Sopenharmony_ci	/* UV4 unique struct */
34168c2ecf20Sopenharmony_ci	struct uv4h_rh_gam_addr_map_config_s {
34178c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_5:6;
34188c2ecf20Sopenharmony_ci		unsigned long	n_skt:4;			/* RW */
34198c2ecf20Sopenharmony_ci		unsigned long	rsvd_10_63:54;
34208c2ecf20Sopenharmony_ci	} s4;
34218c2ecf20Sopenharmony_ci
34228c2ecf20Sopenharmony_ci	/* UV3 unique struct */
34238c2ecf20Sopenharmony_ci	struct uv3h_rh_gam_addr_map_config_s {
34248c2ecf20Sopenharmony_ci		unsigned long	m_skt:6;			/* RW */
34258c2ecf20Sopenharmony_ci		unsigned long	n_skt:4;			/* RW */
34268c2ecf20Sopenharmony_ci		unsigned long	rsvd_10_63:54;
34278c2ecf20Sopenharmony_ci	} s3;
34288c2ecf20Sopenharmony_ci
34298c2ecf20Sopenharmony_ci	/* UV2 unique struct */
34308c2ecf20Sopenharmony_ci	struct uv2h_rh_gam_addr_map_config_s {
34318c2ecf20Sopenharmony_ci		unsigned long	m_skt:6;			/* RW */
34328c2ecf20Sopenharmony_ci		unsigned long	n_skt:4;			/* RW */
34338c2ecf20Sopenharmony_ci		unsigned long	rsvd_10_63:54;
34348c2ecf20Sopenharmony_ci	} s2;
34358c2ecf20Sopenharmony_ci};
34368c2ecf20Sopenharmony_ci
34378c2ecf20Sopenharmony_ci/* ========================================================================= */
34388c2ecf20Sopenharmony_ci/*                    UVH_RH_GAM_ALIAS_0_OVERLAY_CONFIG                      */
34398c2ecf20Sopenharmony_ci/* ========================================================================= */
34408c2ecf20Sopenharmony_ci#define UVH_RH_GAM_ALIAS_0_OVERLAY_CONFIG (				\
34418c2ecf20Sopenharmony_ci	is_uv(UV4) ? 0x4800c8UL :					\
34428c2ecf20Sopenharmony_ci	is_uv(UV3) ? 0x16000c8UL :					\
34438c2ecf20Sopenharmony_ci	is_uv(UV2) ? 0x16000c8UL :					\
34448c2ecf20Sopenharmony_ci	0)
34458c2ecf20Sopenharmony_ci
34468c2ecf20Sopenharmony_ci
34478c2ecf20Sopenharmony_ci/* UVXH common defines */
34488c2ecf20Sopenharmony_ci#define UVXH_RH_GAM_ALIAS_0_OVERLAY_CONFIG_BASE_SHFT	24
34498c2ecf20Sopenharmony_ci#define UVXH_RH_GAM_ALIAS_0_OVERLAY_CONFIG_BASE_MASK	0x00000000ff000000UL
34508c2ecf20Sopenharmony_ci#define UVXH_RH_GAM_ALIAS_0_OVERLAY_CONFIG_M_ALIAS_SHFT	48
34518c2ecf20Sopenharmony_ci#define UVXH_RH_GAM_ALIAS_0_OVERLAY_CONFIG_M_ALIAS_MASK	0x001f000000000000UL
34528c2ecf20Sopenharmony_ci#define UVXH_RH_GAM_ALIAS_0_OVERLAY_CONFIG_ENABLE_SHFT	63
34538c2ecf20Sopenharmony_ci#define UVXH_RH_GAM_ALIAS_0_OVERLAY_CONFIG_ENABLE_MASK	0x8000000000000000UL
34548c2ecf20Sopenharmony_ci
34558c2ecf20Sopenharmony_ci
34568c2ecf20Sopenharmony_ciunion uvh_rh_gam_alias_0_overlay_config_u {
34578c2ecf20Sopenharmony_ci	unsigned long	v;
34588c2ecf20Sopenharmony_ci
34598c2ecf20Sopenharmony_ci	/* UVH common struct */
34608c2ecf20Sopenharmony_ci	struct uvh_rh_gam_alias_0_overlay_config_s {
34618c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_23:24;
34628c2ecf20Sopenharmony_ci		unsigned long	base:8;				/* RW */
34638c2ecf20Sopenharmony_ci		unsigned long	rsvd_32_47:16;
34648c2ecf20Sopenharmony_ci		unsigned long	m_alias:5;			/* RW */
34658c2ecf20Sopenharmony_ci		unsigned long	rsvd_53_62:10;
34668c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
34678c2ecf20Sopenharmony_ci	} s;
34688c2ecf20Sopenharmony_ci
34698c2ecf20Sopenharmony_ci	/* UVXH common struct */
34708c2ecf20Sopenharmony_ci	struct uvxh_rh_gam_alias_0_overlay_config_s {
34718c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_23:24;
34728c2ecf20Sopenharmony_ci		unsigned long	base:8;				/* RW */
34738c2ecf20Sopenharmony_ci		unsigned long	rsvd_32_47:16;
34748c2ecf20Sopenharmony_ci		unsigned long	m_alias:5;			/* RW */
34758c2ecf20Sopenharmony_ci		unsigned long	rsvd_53_62:10;
34768c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
34778c2ecf20Sopenharmony_ci	} sx;
34788c2ecf20Sopenharmony_ci
34798c2ecf20Sopenharmony_ci	/* UV4 unique struct */
34808c2ecf20Sopenharmony_ci	struct uv4h_rh_gam_alias_0_overlay_config_s {
34818c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_23:24;
34828c2ecf20Sopenharmony_ci		unsigned long	base:8;				/* RW */
34838c2ecf20Sopenharmony_ci		unsigned long	rsvd_32_47:16;
34848c2ecf20Sopenharmony_ci		unsigned long	m_alias:5;			/* RW */
34858c2ecf20Sopenharmony_ci		unsigned long	rsvd_53_62:10;
34868c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
34878c2ecf20Sopenharmony_ci	} s4;
34888c2ecf20Sopenharmony_ci
34898c2ecf20Sopenharmony_ci	/* UV3 unique struct */
34908c2ecf20Sopenharmony_ci	struct uv3h_rh_gam_alias_0_overlay_config_s {
34918c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_23:24;
34928c2ecf20Sopenharmony_ci		unsigned long	base:8;				/* RW */
34938c2ecf20Sopenharmony_ci		unsigned long	rsvd_32_47:16;
34948c2ecf20Sopenharmony_ci		unsigned long	m_alias:5;			/* RW */
34958c2ecf20Sopenharmony_ci		unsigned long	rsvd_53_62:10;
34968c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
34978c2ecf20Sopenharmony_ci	} s3;
34988c2ecf20Sopenharmony_ci
34998c2ecf20Sopenharmony_ci	/* UV2 unique struct */
35008c2ecf20Sopenharmony_ci	struct uv2h_rh_gam_alias_0_overlay_config_s {
35018c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_23:24;
35028c2ecf20Sopenharmony_ci		unsigned long	base:8;				/* RW */
35038c2ecf20Sopenharmony_ci		unsigned long	rsvd_32_47:16;
35048c2ecf20Sopenharmony_ci		unsigned long	m_alias:5;			/* RW */
35058c2ecf20Sopenharmony_ci		unsigned long	rsvd_53_62:10;
35068c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
35078c2ecf20Sopenharmony_ci	} s2;
35088c2ecf20Sopenharmony_ci};
35098c2ecf20Sopenharmony_ci
35108c2ecf20Sopenharmony_ci/* ========================================================================= */
35118c2ecf20Sopenharmony_ci/*                    UVH_RH_GAM_ALIAS_0_REDIRECT_CONFIG                     */
35128c2ecf20Sopenharmony_ci/* ========================================================================= */
35138c2ecf20Sopenharmony_ci#define UVH_RH_GAM_ALIAS_0_REDIRECT_CONFIG (				\
35148c2ecf20Sopenharmony_ci	is_uv(UV4) ? 0x4800d0UL :					\
35158c2ecf20Sopenharmony_ci	is_uv(UV3) ? 0x16000d0UL :					\
35168c2ecf20Sopenharmony_ci	is_uv(UV2) ? 0x16000d0UL :					\
35178c2ecf20Sopenharmony_ci	0)
35188c2ecf20Sopenharmony_ci
35198c2ecf20Sopenharmony_ci
35208c2ecf20Sopenharmony_ci/* UVXH common defines */
35218c2ecf20Sopenharmony_ci#define UVXH_RH_GAM_ALIAS_0_REDIRECT_CONFIG_DEST_BASE_SHFT 24
35228c2ecf20Sopenharmony_ci#define UVXH_RH_GAM_ALIAS_0_REDIRECT_CONFIG_DEST_BASE_MASK 0x00003fffff000000UL
35238c2ecf20Sopenharmony_ci
35248c2ecf20Sopenharmony_ci
35258c2ecf20Sopenharmony_ciunion uvh_rh_gam_alias_0_redirect_config_u {
35268c2ecf20Sopenharmony_ci	unsigned long	v;
35278c2ecf20Sopenharmony_ci
35288c2ecf20Sopenharmony_ci	/* UVH common struct */
35298c2ecf20Sopenharmony_ci	struct uvh_rh_gam_alias_0_redirect_config_s {
35308c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_23:24;
35318c2ecf20Sopenharmony_ci		unsigned long	dest_base:22;			/* RW */
35328c2ecf20Sopenharmony_ci		unsigned long	rsvd_46_63:18;
35338c2ecf20Sopenharmony_ci	} s;
35348c2ecf20Sopenharmony_ci
35358c2ecf20Sopenharmony_ci	/* UVXH common struct */
35368c2ecf20Sopenharmony_ci	struct uvxh_rh_gam_alias_0_redirect_config_s {
35378c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_23:24;
35388c2ecf20Sopenharmony_ci		unsigned long	dest_base:22;			/* RW */
35398c2ecf20Sopenharmony_ci		unsigned long	rsvd_46_63:18;
35408c2ecf20Sopenharmony_ci	} sx;
35418c2ecf20Sopenharmony_ci
35428c2ecf20Sopenharmony_ci	/* UV4 unique struct */
35438c2ecf20Sopenharmony_ci	struct uv4h_rh_gam_alias_0_redirect_config_s {
35448c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_23:24;
35458c2ecf20Sopenharmony_ci		unsigned long	dest_base:22;			/* RW */
35468c2ecf20Sopenharmony_ci		unsigned long	rsvd_46_63:18;
35478c2ecf20Sopenharmony_ci	} s4;
35488c2ecf20Sopenharmony_ci
35498c2ecf20Sopenharmony_ci	/* UV3 unique struct */
35508c2ecf20Sopenharmony_ci	struct uv3h_rh_gam_alias_0_redirect_config_s {
35518c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_23:24;
35528c2ecf20Sopenharmony_ci		unsigned long	dest_base:22;			/* RW */
35538c2ecf20Sopenharmony_ci		unsigned long	rsvd_46_63:18;
35548c2ecf20Sopenharmony_ci	} s3;
35558c2ecf20Sopenharmony_ci
35568c2ecf20Sopenharmony_ci	/* UV2 unique struct */
35578c2ecf20Sopenharmony_ci	struct uv2h_rh_gam_alias_0_redirect_config_s {
35588c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_23:24;
35598c2ecf20Sopenharmony_ci		unsigned long	dest_base:22;			/* RW */
35608c2ecf20Sopenharmony_ci		unsigned long	rsvd_46_63:18;
35618c2ecf20Sopenharmony_ci	} s2;
35628c2ecf20Sopenharmony_ci};
35638c2ecf20Sopenharmony_ci
35648c2ecf20Sopenharmony_ci/* ========================================================================= */
35658c2ecf20Sopenharmony_ci/*                    UVH_RH_GAM_ALIAS_1_OVERLAY_CONFIG                      */
35668c2ecf20Sopenharmony_ci/* ========================================================================= */
35678c2ecf20Sopenharmony_ci#define UVH_RH_GAM_ALIAS_1_OVERLAY_CONFIG (				\
35688c2ecf20Sopenharmony_ci	is_uv(UV4) ? 0x4800d8UL :					\
35698c2ecf20Sopenharmony_ci	is_uv(UV3) ? 0x16000d8UL :					\
35708c2ecf20Sopenharmony_ci	is_uv(UV2) ? 0x16000d8UL :					\
35718c2ecf20Sopenharmony_ci	0)
35728c2ecf20Sopenharmony_ci
35738c2ecf20Sopenharmony_ci
35748c2ecf20Sopenharmony_ci/* UVXH common defines */
35758c2ecf20Sopenharmony_ci#define UVXH_RH_GAM_ALIAS_1_OVERLAY_CONFIG_BASE_SHFT	24
35768c2ecf20Sopenharmony_ci#define UVXH_RH_GAM_ALIAS_1_OVERLAY_CONFIG_BASE_MASK	0x00000000ff000000UL
35778c2ecf20Sopenharmony_ci#define UVXH_RH_GAM_ALIAS_1_OVERLAY_CONFIG_M_ALIAS_SHFT	48
35788c2ecf20Sopenharmony_ci#define UVXH_RH_GAM_ALIAS_1_OVERLAY_CONFIG_M_ALIAS_MASK	0x001f000000000000UL
35798c2ecf20Sopenharmony_ci#define UVXH_RH_GAM_ALIAS_1_OVERLAY_CONFIG_ENABLE_SHFT	63
35808c2ecf20Sopenharmony_ci#define UVXH_RH_GAM_ALIAS_1_OVERLAY_CONFIG_ENABLE_MASK	0x8000000000000000UL
35818c2ecf20Sopenharmony_ci
35828c2ecf20Sopenharmony_ci
35838c2ecf20Sopenharmony_ciunion uvh_rh_gam_alias_1_overlay_config_u {
35848c2ecf20Sopenharmony_ci	unsigned long	v;
35858c2ecf20Sopenharmony_ci
35868c2ecf20Sopenharmony_ci	/* UVH common struct */
35878c2ecf20Sopenharmony_ci	struct uvh_rh_gam_alias_1_overlay_config_s {
35888c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_23:24;
35898c2ecf20Sopenharmony_ci		unsigned long	base:8;				/* RW */
35908c2ecf20Sopenharmony_ci		unsigned long	rsvd_32_47:16;
35918c2ecf20Sopenharmony_ci		unsigned long	m_alias:5;			/* RW */
35928c2ecf20Sopenharmony_ci		unsigned long	rsvd_53_62:10;
35938c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
35948c2ecf20Sopenharmony_ci	} s;
35958c2ecf20Sopenharmony_ci
35968c2ecf20Sopenharmony_ci	/* UVXH common struct */
35978c2ecf20Sopenharmony_ci	struct uvxh_rh_gam_alias_1_overlay_config_s {
35988c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_23:24;
35998c2ecf20Sopenharmony_ci		unsigned long	base:8;				/* RW */
36008c2ecf20Sopenharmony_ci		unsigned long	rsvd_32_47:16;
36018c2ecf20Sopenharmony_ci		unsigned long	m_alias:5;			/* RW */
36028c2ecf20Sopenharmony_ci		unsigned long	rsvd_53_62:10;
36038c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
36048c2ecf20Sopenharmony_ci	} sx;
36058c2ecf20Sopenharmony_ci
36068c2ecf20Sopenharmony_ci	/* UV4 unique struct */
36078c2ecf20Sopenharmony_ci	struct uv4h_rh_gam_alias_1_overlay_config_s {
36088c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_23:24;
36098c2ecf20Sopenharmony_ci		unsigned long	base:8;				/* RW */
36108c2ecf20Sopenharmony_ci		unsigned long	rsvd_32_47:16;
36118c2ecf20Sopenharmony_ci		unsigned long	m_alias:5;			/* RW */
36128c2ecf20Sopenharmony_ci		unsigned long	rsvd_53_62:10;
36138c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
36148c2ecf20Sopenharmony_ci	} s4;
36158c2ecf20Sopenharmony_ci
36168c2ecf20Sopenharmony_ci	/* UV3 unique struct */
36178c2ecf20Sopenharmony_ci	struct uv3h_rh_gam_alias_1_overlay_config_s {
36188c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_23:24;
36198c2ecf20Sopenharmony_ci		unsigned long	base:8;				/* RW */
36208c2ecf20Sopenharmony_ci		unsigned long	rsvd_32_47:16;
36218c2ecf20Sopenharmony_ci		unsigned long	m_alias:5;			/* RW */
36228c2ecf20Sopenharmony_ci		unsigned long	rsvd_53_62:10;
36238c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
36248c2ecf20Sopenharmony_ci	} s3;
36258c2ecf20Sopenharmony_ci
36268c2ecf20Sopenharmony_ci	/* UV2 unique struct */
36278c2ecf20Sopenharmony_ci	struct uv2h_rh_gam_alias_1_overlay_config_s {
36288c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_23:24;
36298c2ecf20Sopenharmony_ci		unsigned long	base:8;				/* RW */
36308c2ecf20Sopenharmony_ci		unsigned long	rsvd_32_47:16;
36318c2ecf20Sopenharmony_ci		unsigned long	m_alias:5;			/* RW */
36328c2ecf20Sopenharmony_ci		unsigned long	rsvd_53_62:10;
36338c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
36348c2ecf20Sopenharmony_ci	} s2;
36358c2ecf20Sopenharmony_ci};
36368c2ecf20Sopenharmony_ci
36378c2ecf20Sopenharmony_ci/* ========================================================================= */
36388c2ecf20Sopenharmony_ci/*                    UVH_RH_GAM_ALIAS_1_REDIRECT_CONFIG                     */
36398c2ecf20Sopenharmony_ci/* ========================================================================= */
36408c2ecf20Sopenharmony_ci#define UVH_RH_GAM_ALIAS_1_REDIRECT_CONFIG (				\
36418c2ecf20Sopenharmony_ci	is_uv(UV4) ? 0x4800e0UL :					\
36428c2ecf20Sopenharmony_ci	is_uv(UV3) ? 0x16000e0UL :					\
36438c2ecf20Sopenharmony_ci	is_uv(UV2) ? 0x16000e0UL :					\
36448c2ecf20Sopenharmony_ci	0)
36458c2ecf20Sopenharmony_ci
36468c2ecf20Sopenharmony_ci
36478c2ecf20Sopenharmony_ci/* UVXH common defines */
36488c2ecf20Sopenharmony_ci#define UVXH_RH_GAM_ALIAS_1_REDIRECT_CONFIG_DEST_BASE_SHFT 24
36498c2ecf20Sopenharmony_ci#define UVXH_RH_GAM_ALIAS_1_REDIRECT_CONFIG_DEST_BASE_MASK 0x00003fffff000000UL
36508c2ecf20Sopenharmony_ci
36518c2ecf20Sopenharmony_ci
36528c2ecf20Sopenharmony_ciunion uvh_rh_gam_alias_1_redirect_config_u {
36538c2ecf20Sopenharmony_ci	unsigned long	v;
36548c2ecf20Sopenharmony_ci
36558c2ecf20Sopenharmony_ci	/* UVH common struct */
36568c2ecf20Sopenharmony_ci	struct uvh_rh_gam_alias_1_redirect_config_s {
36578c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_23:24;
36588c2ecf20Sopenharmony_ci		unsigned long	dest_base:22;			/* RW */
36598c2ecf20Sopenharmony_ci		unsigned long	rsvd_46_63:18;
36608c2ecf20Sopenharmony_ci	} s;
36618c2ecf20Sopenharmony_ci
36628c2ecf20Sopenharmony_ci	/* UVXH common struct */
36638c2ecf20Sopenharmony_ci	struct uvxh_rh_gam_alias_1_redirect_config_s {
36648c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_23:24;
36658c2ecf20Sopenharmony_ci		unsigned long	dest_base:22;			/* RW */
36668c2ecf20Sopenharmony_ci		unsigned long	rsvd_46_63:18;
36678c2ecf20Sopenharmony_ci	} sx;
36688c2ecf20Sopenharmony_ci
36698c2ecf20Sopenharmony_ci	/* UV4 unique struct */
36708c2ecf20Sopenharmony_ci	struct uv4h_rh_gam_alias_1_redirect_config_s {
36718c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_23:24;
36728c2ecf20Sopenharmony_ci		unsigned long	dest_base:22;			/* RW */
36738c2ecf20Sopenharmony_ci		unsigned long	rsvd_46_63:18;
36748c2ecf20Sopenharmony_ci	} s4;
36758c2ecf20Sopenharmony_ci
36768c2ecf20Sopenharmony_ci	/* UV3 unique struct */
36778c2ecf20Sopenharmony_ci	struct uv3h_rh_gam_alias_1_redirect_config_s {
36788c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_23:24;
36798c2ecf20Sopenharmony_ci		unsigned long	dest_base:22;			/* RW */
36808c2ecf20Sopenharmony_ci		unsigned long	rsvd_46_63:18;
36818c2ecf20Sopenharmony_ci	} s3;
36828c2ecf20Sopenharmony_ci
36838c2ecf20Sopenharmony_ci	/* UV2 unique struct */
36848c2ecf20Sopenharmony_ci	struct uv2h_rh_gam_alias_1_redirect_config_s {
36858c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_23:24;
36868c2ecf20Sopenharmony_ci		unsigned long	dest_base:22;			/* RW */
36878c2ecf20Sopenharmony_ci		unsigned long	rsvd_46_63:18;
36888c2ecf20Sopenharmony_ci	} s2;
36898c2ecf20Sopenharmony_ci};
36908c2ecf20Sopenharmony_ci
36918c2ecf20Sopenharmony_ci/* ========================================================================= */
36928c2ecf20Sopenharmony_ci/*                    UVH_RH_GAM_ALIAS_2_OVERLAY_CONFIG                      */
36938c2ecf20Sopenharmony_ci/* ========================================================================= */
36948c2ecf20Sopenharmony_ci#define UVH_RH_GAM_ALIAS_2_OVERLAY_CONFIG (				\
36958c2ecf20Sopenharmony_ci	is_uv(UV4) ? 0x4800e8UL :					\
36968c2ecf20Sopenharmony_ci	is_uv(UV3) ? 0x16000e8UL :					\
36978c2ecf20Sopenharmony_ci	is_uv(UV2) ? 0x16000e8UL :					\
36988c2ecf20Sopenharmony_ci	0)
36998c2ecf20Sopenharmony_ci
37008c2ecf20Sopenharmony_ci
37018c2ecf20Sopenharmony_ci/* UVXH common defines */
37028c2ecf20Sopenharmony_ci#define UVXH_RH_GAM_ALIAS_2_OVERLAY_CONFIG_BASE_SHFT	24
37038c2ecf20Sopenharmony_ci#define UVXH_RH_GAM_ALIAS_2_OVERLAY_CONFIG_BASE_MASK	0x00000000ff000000UL
37048c2ecf20Sopenharmony_ci#define UVXH_RH_GAM_ALIAS_2_OVERLAY_CONFIG_M_ALIAS_SHFT	48
37058c2ecf20Sopenharmony_ci#define UVXH_RH_GAM_ALIAS_2_OVERLAY_CONFIG_M_ALIAS_MASK	0x001f000000000000UL
37068c2ecf20Sopenharmony_ci#define UVXH_RH_GAM_ALIAS_2_OVERLAY_CONFIG_ENABLE_SHFT	63
37078c2ecf20Sopenharmony_ci#define UVXH_RH_GAM_ALIAS_2_OVERLAY_CONFIG_ENABLE_MASK	0x8000000000000000UL
37088c2ecf20Sopenharmony_ci
37098c2ecf20Sopenharmony_ci
37108c2ecf20Sopenharmony_ciunion uvh_rh_gam_alias_2_overlay_config_u {
37118c2ecf20Sopenharmony_ci	unsigned long	v;
37128c2ecf20Sopenharmony_ci
37138c2ecf20Sopenharmony_ci	/* UVH common struct */
37148c2ecf20Sopenharmony_ci	struct uvh_rh_gam_alias_2_overlay_config_s {
37158c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_23:24;
37168c2ecf20Sopenharmony_ci		unsigned long	base:8;				/* RW */
37178c2ecf20Sopenharmony_ci		unsigned long	rsvd_32_47:16;
37188c2ecf20Sopenharmony_ci		unsigned long	m_alias:5;			/* RW */
37198c2ecf20Sopenharmony_ci		unsigned long	rsvd_53_62:10;
37208c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
37218c2ecf20Sopenharmony_ci	} s;
37228c2ecf20Sopenharmony_ci
37238c2ecf20Sopenharmony_ci	/* UVXH common struct */
37248c2ecf20Sopenharmony_ci	struct uvxh_rh_gam_alias_2_overlay_config_s {
37258c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_23:24;
37268c2ecf20Sopenharmony_ci		unsigned long	base:8;				/* RW */
37278c2ecf20Sopenharmony_ci		unsigned long	rsvd_32_47:16;
37288c2ecf20Sopenharmony_ci		unsigned long	m_alias:5;			/* RW */
37298c2ecf20Sopenharmony_ci		unsigned long	rsvd_53_62:10;
37308c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
37318c2ecf20Sopenharmony_ci	} sx;
37328c2ecf20Sopenharmony_ci
37338c2ecf20Sopenharmony_ci	/* UV4 unique struct */
37348c2ecf20Sopenharmony_ci	struct uv4h_rh_gam_alias_2_overlay_config_s {
37358c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_23:24;
37368c2ecf20Sopenharmony_ci		unsigned long	base:8;				/* RW */
37378c2ecf20Sopenharmony_ci		unsigned long	rsvd_32_47:16;
37388c2ecf20Sopenharmony_ci		unsigned long	m_alias:5;			/* RW */
37398c2ecf20Sopenharmony_ci		unsigned long	rsvd_53_62:10;
37408c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
37418c2ecf20Sopenharmony_ci	} s4;
37428c2ecf20Sopenharmony_ci
37438c2ecf20Sopenharmony_ci	/* UV3 unique struct */
37448c2ecf20Sopenharmony_ci	struct uv3h_rh_gam_alias_2_overlay_config_s {
37458c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_23:24;
37468c2ecf20Sopenharmony_ci		unsigned long	base:8;				/* RW */
37478c2ecf20Sopenharmony_ci		unsigned long	rsvd_32_47:16;
37488c2ecf20Sopenharmony_ci		unsigned long	m_alias:5;			/* RW */
37498c2ecf20Sopenharmony_ci		unsigned long	rsvd_53_62:10;
37508c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
37518c2ecf20Sopenharmony_ci	} s3;
37528c2ecf20Sopenharmony_ci
37538c2ecf20Sopenharmony_ci	/* UV2 unique struct */
37548c2ecf20Sopenharmony_ci	struct uv2h_rh_gam_alias_2_overlay_config_s {
37558c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_23:24;
37568c2ecf20Sopenharmony_ci		unsigned long	base:8;				/* RW */
37578c2ecf20Sopenharmony_ci		unsigned long	rsvd_32_47:16;
37588c2ecf20Sopenharmony_ci		unsigned long	m_alias:5;			/* RW */
37598c2ecf20Sopenharmony_ci		unsigned long	rsvd_53_62:10;
37608c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
37618c2ecf20Sopenharmony_ci	} s2;
37628c2ecf20Sopenharmony_ci};
37638c2ecf20Sopenharmony_ci
37648c2ecf20Sopenharmony_ci/* ========================================================================= */
37658c2ecf20Sopenharmony_ci/*                    UVH_RH_GAM_ALIAS_2_REDIRECT_CONFIG                     */
37668c2ecf20Sopenharmony_ci/* ========================================================================= */
37678c2ecf20Sopenharmony_ci#define UVH_RH_GAM_ALIAS_2_REDIRECT_CONFIG (				\
37688c2ecf20Sopenharmony_ci	is_uv(UV4) ? 0x4800f0UL :					\
37698c2ecf20Sopenharmony_ci	is_uv(UV3) ? 0x16000f0UL :					\
37708c2ecf20Sopenharmony_ci	is_uv(UV2) ? 0x16000f0UL :					\
37718c2ecf20Sopenharmony_ci	0)
37728c2ecf20Sopenharmony_ci
37738c2ecf20Sopenharmony_ci
37748c2ecf20Sopenharmony_ci/* UVXH common defines */
37758c2ecf20Sopenharmony_ci#define UVXH_RH_GAM_ALIAS_2_REDIRECT_CONFIG_DEST_BASE_SHFT 24
37768c2ecf20Sopenharmony_ci#define UVXH_RH_GAM_ALIAS_2_REDIRECT_CONFIG_DEST_BASE_MASK 0x00003fffff000000UL
37778c2ecf20Sopenharmony_ci
37788c2ecf20Sopenharmony_ci
37798c2ecf20Sopenharmony_ciunion uvh_rh_gam_alias_2_redirect_config_u {
37808c2ecf20Sopenharmony_ci	unsigned long	v;
37818c2ecf20Sopenharmony_ci
37828c2ecf20Sopenharmony_ci	/* UVH common struct */
37838c2ecf20Sopenharmony_ci	struct uvh_rh_gam_alias_2_redirect_config_s {
37848c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_23:24;
37858c2ecf20Sopenharmony_ci		unsigned long	dest_base:22;			/* RW */
37868c2ecf20Sopenharmony_ci		unsigned long	rsvd_46_63:18;
37878c2ecf20Sopenharmony_ci	} s;
37888c2ecf20Sopenharmony_ci
37898c2ecf20Sopenharmony_ci	/* UVXH common struct */
37908c2ecf20Sopenharmony_ci	struct uvxh_rh_gam_alias_2_redirect_config_s {
37918c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_23:24;
37928c2ecf20Sopenharmony_ci		unsigned long	dest_base:22;			/* RW */
37938c2ecf20Sopenharmony_ci		unsigned long	rsvd_46_63:18;
37948c2ecf20Sopenharmony_ci	} sx;
37958c2ecf20Sopenharmony_ci
37968c2ecf20Sopenharmony_ci	/* UV4 unique struct */
37978c2ecf20Sopenharmony_ci	struct uv4h_rh_gam_alias_2_redirect_config_s {
37988c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_23:24;
37998c2ecf20Sopenharmony_ci		unsigned long	dest_base:22;			/* RW */
38008c2ecf20Sopenharmony_ci		unsigned long	rsvd_46_63:18;
38018c2ecf20Sopenharmony_ci	} s4;
38028c2ecf20Sopenharmony_ci
38038c2ecf20Sopenharmony_ci	/* UV3 unique struct */
38048c2ecf20Sopenharmony_ci	struct uv3h_rh_gam_alias_2_redirect_config_s {
38058c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_23:24;
38068c2ecf20Sopenharmony_ci		unsigned long	dest_base:22;			/* RW */
38078c2ecf20Sopenharmony_ci		unsigned long	rsvd_46_63:18;
38088c2ecf20Sopenharmony_ci	} s3;
38098c2ecf20Sopenharmony_ci
38108c2ecf20Sopenharmony_ci	/* UV2 unique struct */
38118c2ecf20Sopenharmony_ci	struct uv2h_rh_gam_alias_2_redirect_config_s {
38128c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_23:24;
38138c2ecf20Sopenharmony_ci		unsigned long	dest_base:22;			/* RW */
38148c2ecf20Sopenharmony_ci		unsigned long	rsvd_46_63:18;
38158c2ecf20Sopenharmony_ci	} s2;
38168c2ecf20Sopenharmony_ci};
38178c2ecf20Sopenharmony_ci
38188c2ecf20Sopenharmony_ci/* ========================================================================= */
38198c2ecf20Sopenharmony_ci/*                      UVH_RH_GAM_GRU_OVERLAY_CONFIG                        */
38208c2ecf20Sopenharmony_ci/* ========================================================================= */
38218c2ecf20Sopenharmony_ci#define UVH_RH_GAM_GRU_OVERLAY_CONFIG (					\
38228c2ecf20Sopenharmony_ci	is_uv(UV4) ? 0x480010UL :					\
38238c2ecf20Sopenharmony_ci	is_uv(UV3) ? 0x1600010UL :					\
38248c2ecf20Sopenharmony_ci	is_uv(UV2) ? 0x1600010UL :					\
38258c2ecf20Sopenharmony_ci	0)
38268c2ecf20Sopenharmony_ci
38278c2ecf20Sopenharmony_ci
38288c2ecf20Sopenharmony_ci/* UVXH common defines */
38298c2ecf20Sopenharmony_ci#define UVXH_RH_GAM_GRU_OVERLAY_CONFIG_N_GRU_SHFT	52
38308c2ecf20Sopenharmony_ci#define UVXH_RH_GAM_GRU_OVERLAY_CONFIG_N_GRU_MASK	0x00f0000000000000UL
38318c2ecf20Sopenharmony_ci#define UVXH_RH_GAM_GRU_OVERLAY_CONFIG_ENABLE_SHFT	63
38328c2ecf20Sopenharmony_ci#define UVXH_RH_GAM_GRU_OVERLAY_CONFIG_ENABLE_MASK	0x8000000000000000UL
38338c2ecf20Sopenharmony_ci
38348c2ecf20Sopenharmony_ci/* UV4A unique defines */
38358c2ecf20Sopenharmony_ci#define UV4AH_RH_GAM_GRU_OVERLAY_CONFIG_BASE_SHFT	26
38368c2ecf20Sopenharmony_ci#define UV4AH_RH_GAM_GRU_OVERLAY_CONFIG_BASE_MASK	0x000ffffffc000000UL
38378c2ecf20Sopenharmony_ci
38388c2ecf20Sopenharmony_ci/* UV4 unique defines */
38398c2ecf20Sopenharmony_ci#define UV4H_RH_GAM_GRU_OVERLAY_CONFIG_BASE_SHFT	26
38408c2ecf20Sopenharmony_ci#define UV4H_RH_GAM_GRU_OVERLAY_CONFIG_BASE_MASK	0x00003ffffc000000UL
38418c2ecf20Sopenharmony_ci
38428c2ecf20Sopenharmony_ci/* UV3 unique defines */
38438c2ecf20Sopenharmony_ci#define UV3H_RH_GAM_GRU_OVERLAY_CONFIG_BASE_SHFT	28
38448c2ecf20Sopenharmony_ci#define UV3H_RH_GAM_GRU_OVERLAY_CONFIG_BASE_MASK	0x00003ffff0000000UL
38458c2ecf20Sopenharmony_ci#define UV3H_RH_GAM_GRU_OVERLAY_CONFIG_MODE_SHFT	62
38468c2ecf20Sopenharmony_ci#define UV3H_RH_GAM_GRU_OVERLAY_CONFIG_MODE_MASK	0x4000000000000000UL
38478c2ecf20Sopenharmony_ci
38488c2ecf20Sopenharmony_ci/* UV2 unique defines */
38498c2ecf20Sopenharmony_ci#define UV2H_RH_GAM_GRU_OVERLAY_CONFIG_BASE_SHFT	28
38508c2ecf20Sopenharmony_ci#define UV2H_RH_GAM_GRU_OVERLAY_CONFIG_BASE_MASK	0x00003ffff0000000UL
38518c2ecf20Sopenharmony_ci
38528c2ecf20Sopenharmony_ci#define UVH_RH_GAM_GRU_OVERLAY_CONFIG_BASE_MASK (			\
38538c2ecf20Sopenharmony_ci	is_uv(UV4A) ? 0x000ffffffc000000UL :				\
38548c2ecf20Sopenharmony_ci	is_uv(UV4) ? 0x00003ffffc000000UL :				\
38558c2ecf20Sopenharmony_ci	is_uv(UV3) ? 0x00003ffff0000000UL :				\
38568c2ecf20Sopenharmony_ci	is_uv(UV2) ? 0x00003ffff0000000UL :				\
38578c2ecf20Sopenharmony_ci	0)
38588c2ecf20Sopenharmony_ci#define UVH_RH_GAM_GRU_OVERLAY_CONFIG_BASE_SHFT (			\
38598c2ecf20Sopenharmony_ci	is_uv(UV4) ? 26 :						\
38608c2ecf20Sopenharmony_ci	is_uv(UV3) ? 28 :						\
38618c2ecf20Sopenharmony_ci	is_uv(UV2) ? 28 :						\
38628c2ecf20Sopenharmony_ci	-1)
38638c2ecf20Sopenharmony_ci
38648c2ecf20Sopenharmony_ciunion uvh_rh_gam_gru_overlay_config_u {
38658c2ecf20Sopenharmony_ci	unsigned long	v;
38668c2ecf20Sopenharmony_ci
38678c2ecf20Sopenharmony_ci	/* UVH common struct */
38688c2ecf20Sopenharmony_ci	struct uvh_rh_gam_gru_overlay_config_s {
38698c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_45:46;
38708c2ecf20Sopenharmony_ci		unsigned long	rsvd_46_51:6;
38718c2ecf20Sopenharmony_ci		unsigned long	n_gru:4;			/* RW */
38728c2ecf20Sopenharmony_ci		unsigned long	rsvd_56_62:7;
38738c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
38748c2ecf20Sopenharmony_ci	} s;
38758c2ecf20Sopenharmony_ci
38768c2ecf20Sopenharmony_ci	/* UVXH common struct */
38778c2ecf20Sopenharmony_ci	struct uvxh_rh_gam_gru_overlay_config_s {
38788c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_45:46;
38798c2ecf20Sopenharmony_ci		unsigned long	rsvd_46_51:6;
38808c2ecf20Sopenharmony_ci		unsigned long	n_gru:4;			/* RW */
38818c2ecf20Sopenharmony_ci		unsigned long	rsvd_56_62:7;
38828c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
38838c2ecf20Sopenharmony_ci	} sx;
38848c2ecf20Sopenharmony_ci
38858c2ecf20Sopenharmony_ci	/* UV4A unique struct */
38868c2ecf20Sopenharmony_ci	struct uv4ah_rh_gam_gru_overlay_config_s {
38878c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_24:25;
38888c2ecf20Sopenharmony_ci		unsigned long	undef_25:1;			/* Undefined */
38898c2ecf20Sopenharmony_ci		unsigned long	base:26;			/* RW */
38908c2ecf20Sopenharmony_ci		unsigned long	n_gru:4;			/* RW */
38918c2ecf20Sopenharmony_ci		unsigned long	rsvd_56_62:7;
38928c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
38938c2ecf20Sopenharmony_ci	} s4a;
38948c2ecf20Sopenharmony_ci
38958c2ecf20Sopenharmony_ci	/* UV4 unique struct */
38968c2ecf20Sopenharmony_ci	struct uv4h_rh_gam_gru_overlay_config_s {
38978c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_24:25;
38988c2ecf20Sopenharmony_ci		unsigned long	undef_25:1;			/* Undefined */
38998c2ecf20Sopenharmony_ci		unsigned long	base:20;			/* RW */
39008c2ecf20Sopenharmony_ci		unsigned long	rsvd_46_51:6;
39018c2ecf20Sopenharmony_ci		unsigned long	n_gru:4;			/* RW */
39028c2ecf20Sopenharmony_ci		unsigned long	rsvd_56_62:7;
39038c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
39048c2ecf20Sopenharmony_ci	} s4;
39058c2ecf20Sopenharmony_ci
39068c2ecf20Sopenharmony_ci	/* UV3 unique struct */
39078c2ecf20Sopenharmony_ci	struct uv3h_rh_gam_gru_overlay_config_s {
39088c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_27:28;
39098c2ecf20Sopenharmony_ci		unsigned long	base:18;			/* RW */
39108c2ecf20Sopenharmony_ci		unsigned long	rsvd_46_51:6;
39118c2ecf20Sopenharmony_ci		unsigned long	n_gru:4;			/* RW */
39128c2ecf20Sopenharmony_ci		unsigned long	rsvd_56_61:6;
39138c2ecf20Sopenharmony_ci		unsigned long	mode:1;				/* RW */
39148c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
39158c2ecf20Sopenharmony_ci	} s3;
39168c2ecf20Sopenharmony_ci
39178c2ecf20Sopenharmony_ci	/* UV2 unique struct */
39188c2ecf20Sopenharmony_ci	struct uv2h_rh_gam_gru_overlay_config_s {
39198c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_27:28;
39208c2ecf20Sopenharmony_ci		unsigned long	base:18;			/* RW */
39218c2ecf20Sopenharmony_ci		unsigned long	rsvd_46_51:6;
39228c2ecf20Sopenharmony_ci		unsigned long	n_gru:4;			/* RW */
39238c2ecf20Sopenharmony_ci		unsigned long	rsvd_56_62:7;
39248c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
39258c2ecf20Sopenharmony_ci	} s2;
39268c2ecf20Sopenharmony_ci};
39278c2ecf20Sopenharmony_ci
39288c2ecf20Sopenharmony_ci/* ========================================================================= */
39298c2ecf20Sopenharmony_ci/*                     UVH_RH_GAM_MMIOH_OVERLAY_CONFIG                       */
39308c2ecf20Sopenharmony_ci/* ========================================================================= */
39318c2ecf20Sopenharmony_ci#define UVH_RH_GAM_MMIOH_OVERLAY_CONFIG (				\
39328c2ecf20Sopenharmony_ci	is_uv(UV2) ? 0x1600030UL :					\
39338c2ecf20Sopenharmony_ci	0)
39348c2ecf20Sopenharmony_ci
39358c2ecf20Sopenharmony_ci
39368c2ecf20Sopenharmony_ci
39378c2ecf20Sopenharmony_ci/* UV2 unique defines */
39388c2ecf20Sopenharmony_ci#define UV2H_RH_GAM_MMIOH_OVERLAY_CONFIG_BASE_SHFT	27
39398c2ecf20Sopenharmony_ci#define UV2H_RH_GAM_MMIOH_OVERLAY_CONFIG_BASE_MASK	0x00003ffff8000000UL
39408c2ecf20Sopenharmony_ci#define UV2H_RH_GAM_MMIOH_OVERLAY_CONFIG_M_IO_SHFT	46
39418c2ecf20Sopenharmony_ci#define UV2H_RH_GAM_MMIOH_OVERLAY_CONFIG_M_IO_MASK	0x000fc00000000000UL
39428c2ecf20Sopenharmony_ci#define UV2H_RH_GAM_MMIOH_OVERLAY_CONFIG_N_IO_SHFT	52
39438c2ecf20Sopenharmony_ci#define UV2H_RH_GAM_MMIOH_OVERLAY_CONFIG_N_IO_MASK	0x00f0000000000000UL
39448c2ecf20Sopenharmony_ci#define UV2H_RH_GAM_MMIOH_OVERLAY_CONFIG_ENABLE_SHFT	63
39458c2ecf20Sopenharmony_ci#define UV2H_RH_GAM_MMIOH_OVERLAY_CONFIG_ENABLE_MASK	0x8000000000000000UL
39468c2ecf20Sopenharmony_ci
39478c2ecf20Sopenharmony_ci#define UVH_RH_GAM_MMIOH_OVERLAY_CONFIG_BASE_SHFT (			\
39488c2ecf20Sopenharmony_ci	is_uv(UV2) ? 27 :						\
39498c2ecf20Sopenharmony_ci	uv_undefined("UVH_RH_GAM_MMIOH_OVERLAY_CONFIG_BASE_SHFT"))
39508c2ecf20Sopenharmony_ci
39518c2ecf20Sopenharmony_ciunion uvh_rh_gam_mmioh_overlay_config_u {
39528c2ecf20Sopenharmony_ci	unsigned long	v;
39538c2ecf20Sopenharmony_ci
39548c2ecf20Sopenharmony_ci	/* UVH common struct */
39558c2ecf20Sopenharmony_ci	struct uvh_rh_gam_mmioh_overlay_config_s {
39568c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_26:27;
39578c2ecf20Sopenharmony_ci		unsigned long	base:19;			/* RW */
39588c2ecf20Sopenharmony_ci		unsigned long	m_io:6;				/* RW */
39598c2ecf20Sopenharmony_ci		unsigned long	n_io:4;				/* RW */
39608c2ecf20Sopenharmony_ci		unsigned long	rsvd_56_62:7;
39618c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
39628c2ecf20Sopenharmony_ci	} s;
39638c2ecf20Sopenharmony_ci
39648c2ecf20Sopenharmony_ci	/* UVXH common struct */
39658c2ecf20Sopenharmony_ci	struct uvxh_rh_gam_mmioh_overlay_config_s {
39668c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_26:27;
39678c2ecf20Sopenharmony_ci		unsigned long	base:19;			/* RW */
39688c2ecf20Sopenharmony_ci		unsigned long	m_io:6;				/* RW */
39698c2ecf20Sopenharmony_ci		unsigned long	n_io:4;				/* RW */
39708c2ecf20Sopenharmony_ci		unsigned long	rsvd_56_62:7;
39718c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
39728c2ecf20Sopenharmony_ci	} sx;
39738c2ecf20Sopenharmony_ci
39748c2ecf20Sopenharmony_ci	/* UV2 unique struct */
39758c2ecf20Sopenharmony_ci	struct uv2h_rh_gam_mmioh_overlay_config_s {
39768c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_26:27;
39778c2ecf20Sopenharmony_ci		unsigned long	base:19;			/* RW */
39788c2ecf20Sopenharmony_ci		unsigned long	m_io:6;				/* RW */
39798c2ecf20Sopenharmony_ci		unsigned long	n_io:4;				/* RW */
39808c2ecf20Sopenharmony_ci		unsigned long	rsvd_56_62:7;
39818c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
39828c2ecf20Sopenharmony_ci	} s2;
39838c2ecf20Sopenharmony_ci};
39848c2ecf20Sopenharmony_ci
39858c2ecf20Sopenharmony_ci/* ========================================================================= */
39868c2ecf20Sopenharmony_ci/*                     UVH_RH_GAM_MMIOH_OVERLAY_CONFIG0                      */
39878c2ecf20Sopenharmony_ci/* ========================================================================= */
39888c2ecf20Sopenharmony_ci#define UVH_RH_GAM_MMIOH_OVERLAY_CONFIG0 (				\
39898c2ecf20Sopenharmony_ci	is_uv(UV4) ? 0x483000UL :					\
39908c2ecf20Sopenharmony_ci	is_uv(UV3) ? 0x1603000UL :					\
39918c2ecf20Sopenharmony_ci	0)
39928c2ecf20Sopenharmony_ci
39938c2ecf20Sopenharmony_ci/* UV4A unique defines */
39948c2ecf20Sopenharmony_ci#define UV4AH_RH_GAM_MMIOH_OVERLAY_CONFIG0_BASE_SHFT	26
39958c2ecf20Sopenharmony_ci#define UV4AH_RH_GAM_MMIOH_OVERLAY_CONFIG0_BASE_MASK	0x000ffffffc000000UL
39968c2ecf20Sopenharmony_ci#define UV4AH_RH_GAM_MMIOH_OVERLAY_CONFIG0_M_IO_SHFT	52
39978c2ecf20Sopenharmony_ci#define UV4AH_RH_GAM_MMIOH_OVERLAY_CONFIG0_M_IO_MASK	0x03f0000000000000UL
39988c2ecf20Sopenharmony_ci#define UV4AH_RH_GAM_MMIOH_OVERLAY_CONFIG0_ENABLE_SHFT	63
39998c2ecf20Sopenharmony_ci#define UV4AH_RH_GAM_MMIOH_OVERLAY_CONFIG0_ENABLE_MASK	0x8000000000000000UL
40008c2ecf20Sopenharmony_ci
40018c2ecf20Sopenharmony_ci/* UV4 unique defines */
40028c2ecf20Sopenharmony_ci#define UV4H_RH_GAM_MMIOH_OVERLAY_CONFIG0_BASE_SHFT	26
40038c2ecf20Sopenharmony_ci#define UV4H_RH_GAM_MMIOH_OVERLAY_CONFIG0_BASE_MASK	0x00003ffffc000000UL
40048c2ecf20Sopenharmony_ci#define UV4H_RH_GAM_MMIOH_OVERLAY_CONFIG0_M_IO_SHFT	46
40058c2ecf20Sopenharmony_ci#define UV4H_RH_GAM_MMIOH_OVERLAY_CONFIG0_M_IO_MASK	0x000fc00000000000UL
40068c2ecf20Sopenharmony_ci#define UV4H_RH_GAM_MMIOH_OVERLAY_CONFIG0_ENABLE_SHFT	63
40078c2ecf20Sopenharmony_ci#define UV4H_RH_GAM_MMIOH_OVERLAY_CONFIG0_ENABLE_MASK	0x8000000000000000UL
40088c2ecf20Sopenharmony_ci
40098c2ecf20Sopenharmony_ci/* UV3 unique defines */
40108c2ecf20Sopenharmony_ci#define UV3H_RH_GAM_MMIOH_OVERLAY_CONFIG0_BASE_SHFT	26
40118c2ecf20Sopenharmony_ci#define UV3H_RH_GAM_MMIOH_OVERLAY_CONFIG0_BASE_MASK	0x00003ffffc000000UL
40128c2ecf20Sopenharmony_ci#define UV3H_RH_GAM_MMIOH_OVERLAY_CONFIG0_M_IO_SHFT	46
40138c2ecf20Sopenharmony_ci#define UV3H_RH_GAM_MMIOH_OVERLAY_CONFIG0_M_IO_MASK	0x000fc00000000000UL
40148c2ecf20Sopenharmony_ci#define UV3H_RH_GAM_MMIOH_OVERLAY_CONFIG0_ENABLE_SHFT	63
40158c2ecf20Sopenharmony_ci#define UV3H_RH_GAM_MMIOH_OVERLAY_CONFIG0_ENABLE_MASK	0x8000000000000000UL
40168c2ecf20Sopenharmony_ci
40178c2ecf20Sopenharmony_ci#define UVH_RH_GAM_MMIOH_OVERLAY_CONFIG0_BASE_MASK (			\
40188c2ecf20Sopenharmony_ci	is_uv(UV4A) ? 0x000ffffffc000000UL :				\
40198c2ecf20Sopenharmony_ci	is_uv(UV4) ? 0x00003ffffc000000UL :				\
40208c2ecf20Sopenharmony_ci	is_uv(UV3) ? 0x00003ffffc000000UL :				\
40218c2ecf20Sopenharmony_ci	0)
40228c2ecf20Sopenharmony_ci#define UVH_RH_GAM_MMIOH_OVERLAY_CONFIG0_BASE_SHFT (			\
40238c2ecf20Sopenharmony_ci	is_uv(UV4) ? 26 :						\
40248c2ecf20Sopenharmony_ci	is_uv(UV3) ? 26 :						\
40258c2ecf20Sopenharmony_ci	-1)
40268c2ecf20Sopenharmony_ci
40278c2ecf20Sopenharmony_ciunion uvh_rh_gam_mmioh_overlay_config0_u {
40288c2ecf20Sopenharmony_ci	unsigned long	v;
40298c2ecf20Sopenharmony_ci
40308c2ecf20Sopenharmony_ci	/* UVH common struct */
40318c2ecf20Sopenharmony_ci	struct uvh_rh_gam_mmioh_overlay_config0_s {
40328c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_25:26;
40338c2ecf20Sopenharmony_ci		unsigned long	base:20;			/* RW */
40348c2ecf20Sopenharmony_ci		unsigned long	m_io:6;				/* RW */
40358c2ecf20Sopenharmony_ci		unsigned long	n_io:4;
40368c2ecf20Sopenharmony_ci		unsigned long	rsvd_56_62:7;
40378c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
40388c2ecf20Sopenharmony_ci	} s;
40398c2ecf20Sopenharmony_ci
40408c2ecf20Sopenharmony_ci	/* UVXH common struct */
40418c2ecf20Sopenharmony_ci	struct uvxh_rh_gam_mmioh_overlay_config0_s {
40428c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_25:26;
40438c2ecf20Sopenharmony_ci		unsigned long	base:20;			/* RW */
40448c2ecf20Sopenharmony_ci		unsigned long	m_io:6;				/* RW */
40458c2ecf20Sopenharmony_ci		unsigned long	n_io:4;
40468c2ecf20Sopenharmony_ci		unsigned long	rsvd_56_62:7;
40478c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
40488c2ecf20Sopenharmony_ci	} sx;
40498c2ecf20Sopenharmony_ci
40508c2ecf20Sopenharmony_ci	/* UV4A unique struct */
40518c2ecf20Sopenharmony_ci	struct uv4ah_rh_gam_mmioh_overlay_config0_mmr_s {
40528c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_25:26;
40538c2ecf20Sopenharmony_ci		unsigned long	base:26;			/* RW */
40548c2ecf20Sopenharmony_ci		unsigned long	m_io:6;				/* RW */
40558c2ecf20Sopenharmony_ci		unsigned long	n_io:4;
40568c2ecf20Sopenharmony_ci		unsigned long	undef_62:1;			/* Undefined */
40578c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
40588c2ecf20Sopenharmony_ci	} s4a;
40598c2ecf20Sopenharmony_ci
40608c2ecf20Sopenharmony_ci	/* UV4 unique struct */
40618c2ecf20Sopenharmony_ci	struct uv4h_rh_gam_mmioh_overlay_config0_s {
40628c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_25:26;
40638c2ecf20Sopenharmony_ci		unsigned long	base:20;			/* RW */
40648c2ecf20Sopenharmony_ci		unsigned long	m_io:6;				/* RW */
40658c2ecf20Sopenharmony_ci		unsigned long	n_io:4;
40668c2ecf20Sopenharmony_ci		unsigned long	rsvd_56_62:7;
40678c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
40688c2ecf20Sopenharmony_ci	} s4;
40698c2ecf20Sopenharmony_ci
40708c2ecf20Sopenharmony_ci	/* UV3 unique struct */
40718c2ecf20Sopenharmony_ci	struct uv3h_rh_gam_mmioh_overlay_config0_s {
40728c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_25:26;
40738c2ecf20Sopenharmony_ci		unsigned long	base:20;			/* RW */
40748c2ecf20Sopenharmony_ci		unsigned long	m_io:6;				/* RW */
40758c2ecf20Sopenharmony_ci		unsigned long	n_io:4;
40768c2ecf20Sopenharmony_ci		unsigned long	rsvd_56_62:7;
40778c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
40788c2ecf20Sopenharmony_ci	} s3;
40798c2ecf20Sopenharmony_ci};
40808c2ecf20Sopenharmony_ci
40818c2ecf20Sopenharmony_ci/* ========================================================================= */
40828c2ecf20Sopenharmony_ci/*                     UVH_RH_GAM_MMIOH_OVERLAY_CONFIG1                      */
40838c2ecf20Sopenharmony_ci/* ========================================================================= */
40848c2ecf20Sopenharmony_ci#define UVH_RH_GAM_MMIOH_OVERLAY_CONFIG1 (				\
40858c2ecf20Sopenharmony_ci	is_uv(UV4) ? 0x484000UL :					\
40868c2ecf20Sopenharmony_ci	is_uv(UV3) ? 0x1604000UL :					\
40878c2ecf20Sopenharmony_ci	0)
40888c2ecf20Sopenharmony_ci
40898c2ecf20Sopenharmony_ci/* UV4A unique defines */
40908c2ecf20Sopenharmony_ci#define UV4AH_RH_GAM_MMIOH_OVERLAY_CONFIG1_BASE_SHFT	26
40918c2ecf20Sopenharmony_ci#define UV4AH_RH_GAM_MMIOH_OVERLAY_CONFIG1_BASE_MASK	0x000ffffffc000000UL
40928c2ecf20Sopenharmony_ci#define UV4AH_RH_GAM_MMIOH_OVERLAY_CONFIG1_M_IO_SHFT	52
40938c2ecf20Sopenharmony_ci#define UV4AH_RH_GAM_MMIOH_OVERLAY_CONFIG1_M_IO_MASK	0x03f0000000000000UL
40948c2ecf20Sopenharmony_ci#define UV4AH_RH_GAM_MMIOH_OVERLAY_CONFIG1_ENABLE_SHFT	63
40958c2ecf20Sopenharmony_ci#define UV4AH_RH_GAM_MMIOH_OVERLAY_CONFIG1_ENABLE_MASK	0x8000000000000000UL
40968c2ecf20Sopenharmony_ci
40978c2ecf20Sopenharmony_ci/* UV4 unique defines */
40988c2ecf20Sopenharmony_ci#define UV4H_RH_GAM_MMIOH_OVERLAY_CONFIG1_BASE_SHFT	26
40998c2ecf20Sopenharmony_ci#define UV4H_RH_GAM_MMIOH_OVERLAY_CONFIG1_BASE_MASK	0x00003ffffc000000UL
41008c2ecf20Sopenharmony_ci#define UV4H_RH_GAM_MMIOH_OVERLAY_CONFIG1_M_IO_SHFT	46
41018c2ecf20Sopenharmony_ci#define UV4H_RH_GAM_MMIOH_OVERLAY_CONFIG1_M_IO_MASK	0x000fc00000000000UL
41028c2ecf20Sopenharmony_ci#define UV4H_RH_GAM_MMIOH_OVERLAY_CONFIG1_ENABLE_SHFT	63
41038c2ecf20Sopenharmony_ci#define UV4H_RH_GAM_MMIOH_OVERLAY_CONFIG1_ENABLE_MASK	0x8000000000000000UL
41048c2ecf20Sopenharmony_ci
41058c2ecf20Sopenharmony_ci/* UV3 unique defines */
41068c2ecf20Sopenharmony_ci#define UV3H_RH_GAM_MMIOH_OVERLAY_CONFIG1_BASE_SHFT	26
41078c2ecf20Sopenharmony_ci#define UV3H_RH_GAM_MMIOH_OVERLAY_CONFIG1_BASE_MASK	0x00003ffffc000000UL
41088c2ecf20Sopenharmony_ci#define UV3H_RH_GAM_MMIOH_OVERLAY_CONFIG1_M_IO_SHFT	46
41098c2ecf20Sopenharmony_ci#define UV3H_RH_GAM_MMIOH_OVERLAY_CONFIG1_M_IO_MASK	0x000fc00000000000UL
41108c2ecf20Sopenharmony_ci#define UV3H_RH_GAM_MMIOH_OVERLAY_CONFIG1_ENABLE_SHFT	63
41118c2ecf20Sopenharmony_ci#define UV3H_RH_GAM_MMIOH_OVERLAY_CONFIG1_ENABLE_MASK	0x8000000000000000UL
41128c2ecf20Sopenharmony_ci
41138c2ecf20Sopenharmony_ci#define UVH_RH_GAM_MMIOH_OVERLAY_CONFIG1_BASE_MASK (			\
41148c2ecf20Sopenharmony_ci	is_uv(UV4A) ? 0x000ffffffc000000UL : \
41158c2ecf20Sopenharmony_ci	is_uv(UV4) ? 0x00003ffffc000000UL :				\
41168c2ecf20Sopenharmony_ci	is_uv(UV3) ? 0x00003ffffc000000UL :				\
41178c2ecf20Sopenharmony_ci	0)
41188c2ecf20Sopenharmony_ci#define UVH_RH_GAM_MMIOH_OVERLAY_CONFIG1_BASE_SHFT (			\
41198c2ecf20Sopenharmony_ci	is_uv(UV4) ? 26 :						\
41208c2ecf20Sopenharmony_ci	is_uv(UV3) ? 26 :						\
41218c2ecf20Sopenharmony_ci	-1)
41228c2ecf20Sopenharmony_ci
41238c2ecf20Sopenharmony_ciunion uvh_rh_gam_mmioh_overlay_config1_u {
41248c2ecf20Sopenharmony_ci	unsigned long	v;
41258c2ecf20Sopenharmony_ci
41268c2ecf20Sopenharmony_ci	/* UVH common struct */
41278c2ecf20Sopenharmony_ci	struct uvh_rh_gam_mmioh_overlay_config1_s {
41288c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_25:26;
41298c2ecf20Sopenharmony_ci		unsigned long	base:20;			/* RW */
41308c2ecf20Sopenharmony_ci		unsigned long	m_io:6;				/* RW */
41318c2ecf20Sopenharmony_ci		unsigned long	n_io:4;
41328c2ecf20Sopenharmony_ci		unsigned long	rsvd_56_62:7;
41338c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
41348c2ecf20Sopenharmony_ci	} s;
41358c2ecf20Sopenharmony_ci
41368c2ecf20Sopenharmony_ci	/* UVXH common struct */
41378c2ecf20Sopenharmony_ci	struct uvxh_rh_gam_mmioh_overlay_config1_s {
41388c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_25:26;
41398c2ecf20Sopenharmony_ci		unsigned long	base:20;			/* RW */
41408c2ecf20Sopenharmony_ci		unsigned long	m_io:6;				/* RW */
41418c2ecf20Sopenharmony_ci		unsigned long	n_io:4;
41428c2ecf20Sopenharmony_ci		unsigned long	rsvd_56_62:7;
41438c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
41448c2ecf20Sopenharmony_ci	} sx;
41458c2ecf20Sopenharmony_ci
41468c2ecf20Sopenharmony_ci	/* UV4A unique struct */
41478c2ecf20Sopenharmony_ci	struct uv4ah_rh_gam_mmioh_overlay_config1_mmr_s {
41488c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_25:26;
41498c2ecf20Sopenharmony_ci		unsigned long	base:26;			/* RW */
41508c2ecf20Sopenharmony_ci		unsigned long	m_io:6;				/* RW */
41518c2ecf20Sopenharmony_ci		unsigned long	n_io:4;
41528c2ecf20Sopenharmony_ci		unsigned long	undef_62:1;			/* Undefined */
41538c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
41548c2ecf20Sopenharmony_ci	} s4a;
41558c2ecf20Sopenharmony_ci
41568c2ecf20Sopenharmony_ci	/* UV4 unique struct */
41578c2ecf20Sopenharmony_ci	struct uv4h_rh_gam_mmioh_overlay_config1_s {
41588c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_25:26;
41598c2ecf20Sopenharmony_ci		unsigned long	base:20;			/* RW */
41608c2ecf20Sopenharmony_ci		unsigned long	m_io:6;				/* RW */
41618c2ecf20Sopenharmony_ci		unsigned long	n_io:4;
41628c2ecf20Sopenharmony_ci		unsigned long	rsvd_56_62:7;
41638c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
41648c2ecf20Sopenharmony_ci	} s4;
41658c2ecf20Sopenharmony_ci
41668c2ecf20Sopenharmony_ci	/* UV3 unique struct */
41678c2ecf20Sopenharmony_ci	struct uv3h_rh_gam_mmioh_overlay_config1_s {
41688c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_25:26;
41698c2ecf20Sopenharmony_ci		unsigned long	base:20;			/* RW */
41708c2ecf20Sopenharmony_ci		unsigned long	m_io:6;				/* RW */
41718c2ecf20Sopenharmony_ci		unsigned long	n_io:4;
41728c2ecf20Sopenharmony_ci		unsigned long	rsvd_56_62:7;
41738c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
41748c2ecf20Sopenharmony_ci	} s3;
41758c2ecf20Sopenharmony_ci};
41768c2ecf20Sopenharmony_ci
41778c2ecf20Sopenharmony_ci/* ========================================================================= */
41788c2ecf20Sopenharmony_ci/*                    UVH_RH_GAM_MMIOH_REDIRECT_CONFIG0                      */
41798c2ecf20Sopenharmony_ci/* ========================================================================= */
41808c2ecf20Sopenharmony_ci#define UVH_RH_GAM_MMIOH_REDIRECT_CONFIG0 (				\
41818c2ecf20Sopenharmony_ci	is_uv(UV4) ? 0x483800UL :					\
41828c2ecf20Sopenharmony_ci	is_uv(UV3) ? 0x1603800UL :					\
41838c2ecf20Sopenharmony_ci	0)
41848c2ecf20Sopenharmony_ci
41858c2ecf20Sopenharmony_ci#define UVH_RH_GAM_MMIOH_REDIRECT_CONFIG0_DEPTH (			\
41868c2ecf20Sopenharmony_ci	is_uv(UV4) ? 128 :						\
41878c2ecf20Sopenharmony_ci	is_uv(UV3) ? 128 :						\
41888c2ecf20Sopenharmony_ci	0)
41898c2ecf20Sopenharmony_ci
41908c2ecf20Sopenharmony_ci/* UV4A unique defines */
41918c2ecf20Sopenharmony_ci#define UV4AH_RH_GAM_MMIOH_REDIRECT_CONFIG0_NASID_SHFT	0
41928c2ecf20Sopenharmony_ci#define UV4AH_RH_GAM_MMIOH_REDIRECT_CONFIG0_NASID_MASK	0x0000000000000fffUL
41938c2ecf20Sopenharmony_ci
41948c2ecf20Sopenharmony_ci/* UV4 unique defines */
41958c2ecf20Sopenharmony_ci#define UV4H_RH_GAM_MMIOH_REDIRECT_CONFIG0_NASID_SHFT	0
41968c2ecf20Sopenharmony_ci#define UV4H_RH_GAM_MMIOH_REDIRECT_CONFIG0_NASID_MASK	0x0000000000007fffUL
41978c2ecf20Sopenharmony_ci
41988c2ecf20Sopenharmony_ci/* UV3 unique defines */
41998c2ecf20Sopenharmony_ci#define UV3H_RH_GAM_MMIOH_REDIRECT_CONFIG0_NASID_SHFT	0
42008c2ecf20Sopenharmony_ci#define UV3H_RH_GAM_MMIOH_REDIRECT_CONFIG0_NASID_MASK	0x0000000000007fffUL
42018c2ecf20Sopenharmony_ci
42028c2ecf20Sopenharmony_ci
42038c2ecf20Sopenharmony_ciunion uvh_rh_gam_mmioh_redirect_config0_u {
42048c2ecf20Sopenharmony_ci	unsigned long	v;
42058c2ecf20Sopenharmony_ci
42068c2ecf20Sopenharmony_ci	/* UVH common struct */
42078c2ecf20Sopenharmony_ci	struct uvh_rh_gam_mmioh_redirect_config0_s {
42088c2ecf20Sopenharmony_ci		unsigned long	nasid:15;			/* RW */
42098c2ecf20Sopenharmony_ci		unsigned long	rsvd_15_63:49;
42108c2ecf20Sopenharmony_ci	} s;
42118c2ecf20Sopenharmony_ci
42128c2ecf20Sopenharmony_ci	/* UVXH common struct */
42138c2ecf20Sopenharmony_ci	struct uvxh_rh_gam_mmioh_redirect_config0_s {
42148c2ecf20Sopenharmony_ci		unsigned long	nasid:15;			/* RW */
42158c2ecf20Sopenharmony_ci		unsigned long	rsvd_15_63:49;
42168c2ecf20Sopenharmony_ci	} sx;
42178c2ecf20Sopenharmony_ci
42188c2ecf20Sopenharmony_ci	struct uv4ah_rh_gam_mmioh_redirect_config0_s {
42198c2ecf20Sopenharmony_ci		unsigned long	nasid:12;			/* RW */
42208c2ecf20Sopenharmony_ci		unsigned long	rsvd_12_63:52;
42218c2ecf20Sopenharmony_ci	} s4a;
42228c2ecf20Sopenharmony_ci
42238c2ecf20Sopenharmony_ci	/* UV4 unique struct */
42248c2ecf20Sopenharmony_ci	struct uv4h_rh_gam_mmioh_redirect_config0_s {
42258c2ecf20Sopenharmony_ci		unsigned long	nasid:15;			/* RW */
42268c2ecf20Sopenharmony_ci		unsigned long	rsvd_15_63:49;
42278c2ecf20Sopenharmony_ci	} s4;
42288c2ecf20Sopenharmony_ci
42298c2ecf20Sopenharmony_ci	/* UV3 unique struct */
42308c2ecf20Sopenharmony_ci	struct uv3h_rh_gam_mmioh_redirect_config0_s {
42318c2ecf20Sopenharmony_ci		unsigned long	nasid:15;			/* RW */
42328c2ecf20Sopenharmony_ci		unsigned long	rsvd_15_63:49;
42338c2ecf20Sopenharmony_ci	} s3;
42348c2ecf20Sopenharmony_ci};
42358c2ecf20Sopenharmony_ci
42368c2ecf20Sopenharmony_ci/* ========================================================================= */
42378c2ecf20Sopenharmony_ci/*                    UVH_RH_GAM_MMIOH_REDIRECT_CONFIG1                      */
42388c2ecf20Sopenharmony_ci/* ========================================================================= */
42398c2ecf20Sopenharmony_ci#define UVH_RH_GAM_MMIOH_REDIRECT_CONFIG1 (				\
42408c2ecf20Sopenharmony_ci	is_uv(UV4) ? 0x484800UL :					\
42418c2ecf20Sopenharmony_ci	is_uv(UV3) ? 0x1604800UL :					\
42428c2ecf20Sopenharmony_ci	0)
42438c2ecf20Sopenharmony_ci
42448c2ecf20Sopenharmony_ci#define UVH_RH_GAM_MMIOH_REDIRECT_CONFIG1_DEPTH (			\
42458c2ecf20Sopenharmony_ci	is_uv(UV4) ? 128 :						\
42468c2ecf20Sopenharmony_ci	is_uv(UV3) ? 128 :						\
42478c2ecf20Sopenharmony_ci	0)
42488c2ecf20Sopenharmony_ci
42498c2ecf20Sopenharmony_ci/* UV4A unique defines */
42508c2ecf20Sopenharmony_ci#define UV4AH_RH_GAM_MMIOH_REDIRECT_CONFIG0_NASID_SHFT	0
42518c2ecf20Sopenharmony_ci#define UV4AH_RH_GAM_MMIOH_REDIRECT_CONFIG0_NASID_MASK	0x0000000000000fffUL
42528c2ecf20Sopenharmony_ci
42538c2ecf20Sopenharmony_ci/* UV4 unique defines */
42548c2ecf20Sopenharmony_ci#define UV4H_RH_GAM_MMIOH_REDIRECT_CONFIG1_NASID_SHFT	0
42558c2ecf20Sopenharmony_ci#define UV4H_RH_GAM_MMIOH_REDIRECT_CONFIG1_NASID_MASK	0x0000000000007fffUL
42568c2ecf20Sopenharmony_ci
42578c2ecf20Sopenharmony_ci/* UV3 unique defines */
42588c2ecf20Sopenharmony_ci#define UV3H_RH_GAM_MMIOH_REDIRECT_CONFIG1_NASID_SHFT	0
42598c2ecf20Sopenharmony_ci#define UV3H_RH_GAM_MMIOH_REDIRECT_CONFIG1_NASID_MASK	0x0000000000007fffUL
42608c2ecf20Sopenharmony_ci
42618c2ecf20Sopenharmony_ci
42628c2ecf20Sopenharmony_ciunion uvh_rh_gam_mmioh_redirect_config1_u {
42638c2ecf20Sopenharmony_ci	unsigned long	v;
42648c2ecf20Sopenharmony_ci
42658c2ecf20Sopenharmony_ci	/* UVH common struct */
42668c2ecf20Sopenharmony_ci	struct uvh_rh_gam_mmioh_redirect_config1_s {
42678c2ecf20Sopenharmony_ci		unsigned long	nasid:15;			/* RW */
42688c2ecf20Sopenharmony_ci		unsigned long	rsvd_15_63:49;
42698c2ecf20Sopenharmony_ci	} s;
42708c2ecf20Sopenharmony_ci
42718c2ecf20Sopenharmony_ci	/* UVXH common struct */
42728c2ecf20Sopenharmony_ci	struct uvxh_rh_gam_mmioh_redirect_config1_s {
42738c2ecf20Sopenharmony_ci		unsigned long	nasid:15;			/* RW */
42748c2ecf20Sopenharmony_ci		unsigned long	rsvd_15_63:49;
42758c2ecf20Sopenharmony_ci	} sx;
42768c2ecf20Sopenharmony_ci
42778c2ecf20Sopenharmony_ci	struct uv4ah_rh_gam_mmioh_redirect_config1_s {
42788c2ecf20Sopenharmony_ci		unsigned long	nasid:12;			/* RW */
42798c2ecf20Sopenharmony_ci		unsigned long	rsvd_12_63:52;
42808c2ecf20Sopenharmony_ci	} s4a;
42818c2ecf20Sopenharmony_ci
42828c2ecf20Sopenharmony_ci	/* UV4 unique struct */
42838c2ecf20Sopenharmony_ci	struct uv4h_rh_gam_mmioh_redirect_config1_s {
42848c2ecf20Sopenharmony_ci		unsigned long	nasid:15;			/* RW */
42858c2ecf20Sopenharmony_ci		unsigned long	rsvd_15_63:49;
42868c2ecf20Sopenharmony_ci	} s4;
42878c2ecf20Sopenharmony_ci
42888c2ecf20Sopenharmony_ci	/* UV3 unique struct */
42898c2ecf20Sopenharmony_ci	struct uv3h_rh_gam_mmioh_redirect_config1_s {
42908c2ecf20Sopenharmony_ci		unsigned long	nasid:15;			/* RW */
42918c2ecf20Sopenharmony_ci		unsigned long	rsvd_15_63:49;
42928c2ecf20Sopenharmony_ci	} s3;
42938c2ecf20Sopenharmony_ci};
42948c2ecf20Sopenharmony_ci
42958c2ecf20Sopenharmony_ci/* ========================================================================= */
42968c2ecf20Sopenharmony_ci/*                      UVH_RH_GAM_MMR_OVERLAY_CONFIG                        */
42978c2ecf20Sopenharmony_ci/* ========================================================================= */
42988c2ecf20Sopenharmony_ci#define UVH_RH_GAM_MMR_OVERLAY_CONFIG (					\
42998c2ecf20Sopenharmony_ci	is_uv(UV4) ? 0x480028UL :					\
43008c2ecf20Sopenharmony_ci	is_uv(UV3) ? 0x1600028UL :					\
43018c2ecf20Sopenharmony_ci	is_uv(UV2) ? 0x1600028UL :					\
43028c2ecf20Sopenharmony_ci	0)
43038c2ecf20Sopenharmony_ci
43048c2ecf20Sopenharmony_ci
43058c2ecf20Sopenharmony_ci/* UVXH common defines */
43068c2ecf20Sopenharmony_ci#define UVXH_RH_GAM_MMR_OVERLAY_CONFIG_BASE_SHFT	26
43078c2ecf20Sopenharmony_ci#define UVXH_RH_GAM_MMR_OVERLAY_CONFIG_BASE_MASK (			\
43088c2ecf20Sopenharmony_ci	is_uv(UV4A) ? 0x000ffffffc000000UL :				\
43098c2ecf20Sopenharmony_ci	is_uv(UV4) ? 0x00003ffffc000000UL :				\
43108c2ecf20Sopenharmony_ci	is_uv(UV3) ? 0x00003ffffc000000UL :				\
43118c2ecf20Sopenharmony_ci	is_uv(UV2) ? 0x00003ffffc000000UL :				\
43128c2ecf20Sopenharmony_ci	0)
43138c2ecf20Sopenharmony_ci#define UVXH_RH_GAM_MMR_OVERLAY_CONFIG_ENABLE_SHFT	63
43148c2ecf20Sopenharmony_ci#define UVXH_RH_GAM_MMR_OVERLAY_CONFIG_ENABLE_MASK	0x8000000000000000UL
43158c2ecf20Sopenharmony_ci
43168c2ecf20Sopenharmony_ci/* UV4A unique defines */
43178c2ecf20Sopenharmony_ci#define UV4AH_RH_GAM_GRU_OVERLAY_CONFIG_BASE_SHFT	26
43188c2ecf20Sopenharmony_ci#define UV4AH_RH_GAM_GRU_OVERLAY_CONFIG_BASE_MASK	0x000ffffffc000000UL
43198c2ecf20Sopenharmony_ci
43208c2ecf20Sopenharmony_ci#define UVH_RH_GAM_MMR_OVERLAY_CONFIG_BASE_MASK (			\
43218c2ecf20Sopenharmony_ci	is_uv(UV4A) ? 0x000ffffffc000000UL :				\
43228c2ecf20Sopenharmony_ci	is_uv(UV4) ? 0x00003ffffc000000UL :				\
43238c2ecf20Sopenharmony_ci	is_uv(UV3) ? 0x00003ffffc000000UL :				\
43248c2ecf20Sopenharmony_ci	is_uv(UV2) ? 0x00003ffffc000000UL :				\
43258c2ecf20Sopenharmony_ci	0)
43268c2ecf20Sopenharmony_ci
43278c2ecf20Sopenharmony_ci#define UVH_RH_GAM_MMR_OVERLAY_CONFIG_BASE_SHFT (			\
43288c2ecf20Sopenharmony_ci	is_uv(UV4) ? 26 :						\
43298c2ecf20Sopenharmony_ci	is_uv(UV3) ? 26 :						\
43308c2ecf20Sopenharmony_ci	is_uv(UV2) ? 26 :						\
43318c2ecf20Sopenharmony_ci	-1)
43328c2ecf20Sopenharmony_ci
43338c2ecf20Sopenharmony_ciunion uvh_rh_gam_mmr_overlay_config_u {
43348c2ecf20Sopenharmony_ci	unsigned long	v;
43358c2ecf20Sopenharmony_ci
43368c2ecf20Sopenharmony_ci	/* UVH common struct */
43378c2ecf20Sopenharmony_ci	struct uvh_rh_gam_mmr_overlay_config_s {
43388c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_25:26;
43398c2ecf20Sopenharmony_ci		unsigned long	base:20;			/* RW */
43408c2ecf20Sopenharmony_ci		unsigned long	rsvd_46_62:17;
43418c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
43428c2ecf20Sopenharmony_ci	} s;
43438c2ecf20Sopenharmony_ci
43448c2ecf20Sopenharmony_ci	/* UVXH common struct */
43458c2ecf20Sopenharmony_ci	struct uvxh_rh_gam_mmr_overlay_config_s {
43468c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_25:26;
43478c2ecf20Sopenharmony_ci		unsigned long	base:20;			/* RW */
43488c2ecf20Sopenharmony_ci		unsigned long	rsvd_46_62:17;
43498c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
43508c2ecf20Sopenharmony_ci	} sx;
43518c2ecf20Sopenharmony_ci
43528c2ecf20Sopenharmony_ci	/* UV4 unique struct */
43538c2ecf20Sopenharmony_ci	struct uv4h_rh_gam_mmr_overlay_config_s {
43548c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_25:26;
43558c2ecf20Sopenharmony_ci		unsigned long	base:20;			/* RW */
43568c2ecf20Sopenharmony_ci		unsigned long	rsvd_46_62:17;
43578c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
43588c2ecf20Sopenharmony_ci	} s4;
43598c2ecf20Sopenharmony_ci
43608c2ecf20Sopenharmony_ci	/* UV3 unique struct */
43618c2ecf20Sopenharmony_ci	struct uv3h_rh_gam_mmr_overlay_config_s {
43628c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_25:26;
43638c2ecf20Sopenharmony_ci		unsigned long	base:20;			/* RW */
43648c2ecf20Sopenharmony_ci		unsigned long	rsvd_46_62:17;
43658c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
43668c2ecf20Sopenharmony_ci	} s3;
43678c2ecf20Sopenharmony_ci
43688c2ecf20Sopenharmony_ci	/* UV2 unique struct */
43698c2ecf20Sopenharmony_ci	struct uv2h_rh_gam_mmr_overlay_config_s {
43708c2ecf20Sopenharmony_ci		unsigned long	rsvd_0_25:26;
43718c2ecf20Sopenharmony_ci		unsigned long	base:20;			/* RW */
43728c2ecf20Sopenharmony_ci		unsigned long	rsvd_46_62:17;
43738c2ecf20Sopenharmony_ci		unsigned long	enable:1;			/* RW */
43748c2ecf20Sopenharmony_ci	} s2;
43758c2ecf20Sopenharmony_ci};
43768c2ecf20Sopenharmony_ci
43778c2ecf20Sopenharmony_ci/* ========================================================================= */
43788c2ecf20Sopenharmony_ci/*                                 UVH_RTC                                   */
43798c2ecf20Sopenharmony_ci/* ========================================================================= */
43808c2ecf20Sopenharmony_ci#define UVH_RTC (							\
43818c2ecf20Sopenharmony_ci	is_uv(UV5) ? 0xe0000UL :					\
43828c2ecf20Sopenharmony_ci	is_uv(UV4) ? 0xe0000UL :					\
43838c2ecf20Sopenharmony_ci	is_uv(UV3) ? 0x340000UL :					\
43848c2ecf20Sopenharmony_ci	is_uv(UV2) ? 0x340000UL :					\
43858c2ecf20Sopenharmony_ci	0)
43868c2ecf20Sopenharmony_ci
43878c2ecf20Sopenharmony_ci/* UVH common defines*/
43888c2ecf20Sopenharmony_ci#define UVH_RTC_REAL_TIME_CLOCK_SHFT			0
43898c2ecf20Sopenharmony_ci#define UVH_RTC_REAL_TIME_CLOCK_MASK			0x00ffffffffffffffUL
43908c2ecf20Sopenharmony_ci
43918c2ecf20Sopenharmony_ci
43928c2ecf20Sopenharmony_ciunion uvh_rtc_u {
43938c2ecf20Sopenharmony_ci	unsigned long	v;
43948c2ecf20Sopenharmony_ci
43958c2ecf20Sopenharmony_ci	/* UVH common struct */
43968c2ecf20Sopenharmony_ci	struct uvh_rtc_s {
43978c2ecf20Sopenharmony_ci		unsigned long	real_time_clock:56;		/* RW */
43988c2ecf20Sopenharmony_ci		unsigned long	rsvd_56_63:8;
43998c2ecf20Sopenharmony_ci	} s;
44008c2ecf20Sopenharmony_ci
44018c2ecf20Sopenharmony_ci	/* UV5 unique struct */
44028c2ecf20Sopenharmony_ci	struct uv5h_rtc_s {
44038c2ecf20Sopenharmony_ci		unsigned long	real_time_clock:56;		/* RW */
44048c2ecf20Sopenharmony_ci		unsigned long	rsvd_56_63:8;
44058c2ecf20Sopenharmony_ci	} s5;
44068c2ecf20Sopenharmony_ci
44078c2ecf20Sopenharmony_ci	/* UV4 unique struct */
44088c2ecf20Sopenharmony_ci	struct uv4h_rtc_s {
44098c2ecf20Sopenharmony_ci		unsigned long	real_time_clock:56;		/* RW */
44108c2ecf20Sopenharmony_ci		unsigned long	rsvd_56_63:8;
44118c2ecf20Sopenharmony_ci	} s4;
44128c2ecf20Sopenharmony_ci
44138c2ecf20Sopenharmony_ci	/* UV3 unique struct */
44148c2ecf20Sopenharmony_ci	struct uv3h_rtc_s {
44158c2ecf20Sopenharmony_ci		unsigned long	real_time_clock:56;		/* RW */
44168c2ecf20Sopenharmony_ci		unsigned long	rsvd_56_63:8;
44178c2ecf20Sopenharmony_ci	} s3;
44188c2ecf20Sopenharmony_ci
44198c2ecf20Sopenharmony_ci	/* UV2 unique struct */
44208c2ecf20Sopenharmony_ci	struct uv2h_rtc_s {
44218c2ecf20Sopenharmony_ci		unsigned long	real_time_clock:56;		/* RW */
44228c2ecf20Sopenharmony_ci		unsigned long	rsvd_56_63:8;
44238c2ecf20Sopenharmony_ci	} s2;
44248c2ecf20Sopenharmony_ci};
44258c2ecf20Sopenharmony_ci
44268c2ecf20Sopenharmony_ci/* ========================================================================= */
44278c2ecf20Sopenharmony_ci/*                           UVH_RTC1_INT_CONFIG                             */
44288c2ecf20Sopenharmony_ci/* ========================================================================= */
44298c2ecf20Sopenharmony_ci#define UVH_RTC1_INT_CONFIG 0x615c0UL
44308c2ecf20Sopenharmony_ci
44318c2ecf20Sopenharmony_ci/* UVH common defines*/
44328c2ecf20Sopenharmony_ci#define UVH_RTC1_INT_CONFIG_VECTOR_SHFT			0
44338c2ecf20Sopenharmony_ci#define UVH_RTC1_INT_CONFIG_VECTOR_MASK			0x00000000000000ffUL
44348c2ecf20Sopenharmony_ci#define UVH_RTC1_INT_CONFIG_DM_SHFT			8
44358c2ecf20Sopenharmony_ci#define UVH_RTC1_INT_CONFIG_DM_MASK			0x0000000000000700UL
44368c2ecf20Sopenharmony_ci#define UVH_RTC1_INT_CONFIG_DESTMODE_SHFT		11
44378c2ecf20Sopenharmony_ci#define UVH_RTC1_INT_CONFIG_DESTMODE_MASK		0x0000000000000800UL
44388c2ecf20Sopenharmony_ci#define UVH_RTC1_INT_CONFIG_STATUS_SHFT			12
44398c2ecf20Sopenharmony_ci#define UVH_RTC1_INT_CONFIG_STATUS_MASK			0x0000000000001000UL
44408c2ecf20Sopenharmony_ci#define UVH_RTC1_INT_CONFIG_P_SHFT			13
44418c2ecf20Sopenharmony_ci#define UVH_RTC1_INT_CONFIG_P_MASK			0x0000000000002000UL
44428c2ecf20Sopenharmony_ci#define UVH_RTC1_INT_CONFIG_T_SHFT			15
44438c2ecf20Sopenharmony_ci#define UVH_RTC1_INT_CONFIG_T_MASK			0x0000000000008000UL
44448c2ecf20Sopenharmony_ci#define UVH_RTC1_INT_CONFIG_M_SHFT			16
44458c2ecf20Sopenharmony_ci#define UVH_RTC1_INT_CONFIG_M_MASK			0x0000000000010000UL
44468c2ecf20Sopenharmony_ci#define UVH_RTC1_INT_CONFIG_APIC_ID_SHFT		32
44478c2ecf20Sopenharmony_ci#define UVH_RTC1_INT_CONFIG_APIC_ID_MASK		0xffffffff00000000UL
44488c2ecf20Sopenharmony_ci
44498c2ecf20Sopenharmony_ci
44508c2ecf20Sopenharmony_ciunion uvh_rtc1_int_config_u {
44518c2ecf20Sopenharmony_ci	unsigned long	v;
44528c2ecf20Sopenharmony_ci
44538c2ecf20Sopenharmony_ci	/* UVH common struct */
44548c2ecf20Sopenharmony_ci	struct uvh_rtc1_int_config_s {
44558c2ecf20Sopenharmony_ci		unsigned long	vector_:8;			/* RW */
44568c2ecf20Sopenharmony_ci		unsigned long	dm:3;				/* RW */
44578c2ecf20Sopenharmony_ci		unsigned long	destmode:1;			/* RW */
44588c2ecf20Sopenharmony_ci		unsigned long	status:1;			/* RO */
44598c2ecf20Sopenharmony_ci		unsigned long	p:1;				/* RO */
44608c2ecf20Sopenharmony_ci		unsigned long	rsvd_14:1;
44618c2ecf20Sopenharmony_ci		unsigned long	t:1;				/* RO */
44628c2ecf20Sopenharmony_ci		unsigned long	m:1;				/* RW */
44638c2ecf20Sopenharmony_ci		unsigned long	rsvd_17_31:15;
44648c2ecf20Sopenharmony_ci		unsigned long	apic_id:32;			/* RW */
44658c2ecf20Sopenharmony_ci	} s;
44668c2ecf20Sopenharmony_ci
44678c2ecf20Sopenharmony_ci	/* UV5 unique struct */
44688c2ecf20Sopenharmony_ci	struct uv5h_rtc1_int_config_s {
44698c2ecf20Sopenharmony_ci		unsigned long	vector_:8;			/* RW */
44708c2ecf20Sopenharmony_ci		unsigned long	dm:3;				/* RW */
44718c2ecf20Sopenharmony_ci		unsigned long	destmode:1;			/* RW */
44728c2ecf20Sopenharmony_ci		unsigned long	status:1;			/* RO */
44738c2ecf20Sopenharmony_ci		unsigned long	p:1;				/* RO */
44748c2ecf20Sopenharmony_ci		unsigned long	rsvd_14:1;
44758c2ecf20Sopenharmony_ci		unsigned long	t:1;				/* RO */
44768c2ecf20Sopenharmony_ci		unsigned long	m:1;				/* RW */
44778c2ecf20Sopenharmony_ci		unsigned long	rsvd_17_31:15;
44788c2ecf20Sopenharmony_ci		unsigned long	apic_id:32;			/* RW */
44798c2ecf20Sopenharmony_ci	} s5;
44808c2ecf20Sopenharmony_ci
44818c2ecf20Sopenharmony_ci	/* UV4 unique struct */
44828c2ecf20Sopenharmony_ci	struct uv4h_rtc1_int_config_s {
44838c2ecf20Sopenharmony_ci		unsigned long	vector_:8;			/* RW */
44848c2ecf20Sopenharmony_ci		unsigned long	dm:3;				/* RW */
44858c2ecf20Sopenharmony_ci		unsigned long	destmode:1;			/* RW */
44868c2ecf20Sopenharmony_ci		unsigned long	status:1;			/* RO */
44878c2ecf20Sopenharmony_ci		unsigned long	p:1;				/* RO */
44888c2ecf20Sopenharmony_ci		unsigned long	rsvd_14:1;
44898c2ecf20Sopenharmony_ci		unsigned long	t:1;				/* RO */
44908c2ecf20Sopenharmony_ci		unsigned long	m:1;				/* RW */
44918c2ecf20Sopenharmony_ci		unsigned long	rsvd_17_31:15;
44928c2ecf20Sopenharmony_ci		unsigned long	apic_id:32;			/* RW */
44938c2ecf20Sopenharmony_ci	} s4;
44948c2ecf20Sopenharmony_ci
44958c2ecf20Sopenharmony_ci	/* UV3 unique struct */
44968c2ecf20Sopenharmony_ci	struct uv3h_rtc1_int_config_s {
44978c2ecf20Sopenharmony_ci		unsigned long	vector_:8;			/* RW */
44988c2ecf20Sopenharmony_ci		unsigned long	dm:3;				/* RW */
44998c2ecf20Sopenharmony_ci		unsigned long	destmode:1;			/* RW */
45008c2ecf20Sopenharmony_ci		unsigned long	status:1;			/* RO */
45018c2ecf20Sopenharmony_ci		unsigned long	p:1;				/* RO */
45028c2ecf20Sopenharmony_ci		unsigned long	rsvd_14:1;
45038c2ecf20Sopenharmony_ci		unsigned long	t:1;				/* RO */
45048c2ecf20Sopenharmony_ci		unsigned long	m:1;				/* RW */
45058c2ecf20Sopenharmony_ci		unsigned long	rsvd_17_31:15;
45068c2ecf20Sopenharmony_ci		unsigned long	apic_id:32;			/* RW */
45078c2ecf20Sopenharmony_ci	} s3;
45088c2ecf20Sopenharmony_ci
45098c2ecf20Sopenharmony_ci	/* UV2 unique struct */
45108c2ecf20Sopenharmony_ci	struct uv2h_rtc1_int_config_s {
45118c2ecf20Sopenharmony_ci		unsigned long	vector_:8;			/* RW */
45128c2ecf20Sopenharmony_ci		unsigned long	dm:3;				/* RW */
45138c2ecf20Sopenharmony_ci		unsigned long	destmode:1;			/* RW */
45148c2ecf20Sopenharmony_ci		unsigned long	status:1;			/* RO */
45158c2ecf20Sopenharmony_ci		unsigned long	p:1;				/* RO */
45168c2ecf20Sopenharmony_ci		unsigned long	rsvd_14:1;
45178c2ecf20Sopenharmony_ci		unsigned long	t:1;				/* RO */
45188c2ecf20Sopenharmony_ci		unsigned long	m:1;				/* RW */
45198c2ecf20Sopenharmony_ci		unsigned long	rsvd_17_31:15;
45208c2ecf20Sopenharmony_ci		unsigned long	apic_id:32;			/* RW */
45218c2ecf20Sopenharmony_ci	} s2;
45228c2ecf20Sopenharmony_ci};
45238c2ecf20Sopenharmony_ci
45248c2ecf20Sopenharmony_ci/* ========================================================================= */
45258c2ecf20Sopenharmony_ci/*                               UVH_SCRATCH5                                */
45268c2ecf20Sopenharmony_ci/* ========================================================================= */
45278c2ecf20Sopenharmony_ci#define UVH_SCRATCH5 (							\
45288c2ecf20Sopenharmony_ci	is_uv(UV5) ? 0xb0200UL :					\
45298c2ecf20Sopenharmony_ci	is_uv(UV4) ? 0xb0200UL :					\
45308c2ecf20Sopenharmony_ci	is_uv(UV3) ? 0x2d0200UL :					\
45318c2ecf20Sopenharmony_ci	is_uv(UV2) ? 0x2d0200UL :					\
45328c2ecf20Sopenharmony_ci	0)
45338c2ecf20Sopenharmony_ci#define UV5H_SCRATCH5 0xb0200UL
45348c2ecf20Sopenharmony_ci#define UV4H_SCRATCH5 0xb0200UL
45358c2ecf20Sopenharmony_ci#define UV3H_SCRATCH5 0x2d0200UL
45368c2ecf20Sopenharmony_ci#define UV2H_SCRATCH5 0x2d0200UL
45378c2ecf20Sopenharmony_ci
45388c2ecf20Sopenharmony_ci/* UVH common defines*/
45398c2ecf20Sopenharmony_ci#define UVH_SCRATCH5_SCRATCH5_SHFT			0
45408c2ecf20Sopenharmony_ci#define UVH_SCRATCH5_SCRATCH5_MASK			0xffffffffffffffffUL
45418c2ecf20Sopenharmony_ci
45428c2ecf20Sopenharmony_ci/* UVXH common defines */
45438c2ecf20Sopenharmony_ci#define UVXH_SCRATCH5_SCRATCH5_SHFT			0
45448c2ecf20Sopenharmony_ci#define UVXH_SCRATCH5_SCRATCH5_MASK			0xffffffffffffffffUL
45458c2ecf20Sopenharmony_ci
45468c2ecf20Sopenharmony_ci/* UVYH common defines */
45478c2ecf20Sopenharmony_ci#define UVYH_SCRATCH5_SCRATCH5_SHFT			0
45488c2ecf20Sopenharmony_ci#define UVYH_SCRATCH5_SCRATCH5_MASK			0xffffffffffffffffUL
45498c2ecf20Sopenharmony_ci
45508c2ecf20Sopenharmony_ci/* UV5 unique defines */
45518c2ecf20Sopenharmony_ci#define UV5H_SCRATCH5_SCRATCH5_SHFT			0
45528c2ecf20Sopenharmony_ci#define UV5H_SCRATCH5_SCRATCH5_MASK			0xffffffffffffffffUL
45538c2ecf20Sopenharmony_ci
45548c2ecf20Sopenharmony_ci/* UV4 unique defines */
45558c2ecf20Sopenharmony_ci#define UV4H_SCRATCH5_SCRATCH5_SHFT			0
45568c2ecf20Sopenharmony_ci#define UV4H_SCRATCH5_SCRATCH5_MASK			0xffffffffffffffffUL
45578c2ecf20Sopenharmony_ci
45588c2ecf20Sopenharmony_ci/* UV3 unique defines */
45598c2ecf20Sopenharmony_ci#define UV3H_SCRATCH5_SCRATCH5_SHFT			0
45608c2ecf20Sopenharmony_ci#define UV3H_SCRATCH5_SCRATCH5_MASK			0xffffffffffffffffUL
45618c2ecf20Sopenharmony_ci
45628c2ecf20Sopenharmony_ci/* UV2 unique defines */
45638c2ecf20Sopenharmony_ci#define UV2H_SCRATCH5_SCRATCH5_SHFT			0
45648c2ecf20Sopenharmony_ci#define UV2H_SCRATCH5_SCRATCH5_MASK			0xffffffffffffffffUL
45658c2ecf20Sopenharmony_ci
45668c2ecf20Sopenharmony_ci
45678c2ecf20Sopenharmony_ciunion uvh_scratch5_u {
45688c2ecf20Sopenharmony_ci	unsigned long	v;
45698c2ecf20Sopenharmony_ci
45708c2ecf20Sopenharmony_ci	/* UVH common struct */
45718c2ecf20Sopenharmony_ci	struct uvh_scratch5_s {
45728c2ecf20Sopenharmony_ci		unsigned long	scratch5:64;			/* RW */
45738c2ecf20Sopenharmony_ci	} s;
45748c2ecf20Sopenharmony_ci
45758c2ecf20Sopenharmony_ci	/* UVXH common struct */
45768c2ecf20Sopenharmony_ci	struct uvxh_scratch5_s {
45778c2ecf20Sopenharmony_ci		unsigned long	scratch5:64;			/* RW */
45788c2ecf20Sopenharmony_ci	} sx;
45798c2ecf20Sopenharmony_ci
45808c2ecf20Sopenharmony_ci	/* UVYH common struct */
45818c2ecf20Sopenharmony_ci	struct uvyh_scratch5_s {
45828c2ecf20Sopenharmony_ci		unsigned long	scratch5:64;			/* RW */
45838c2ecf20Sopenharmony_ci	} sy;
45848c2ecf20Sopenharmony_ci
45858c2ecf20Sopenharmony_ci	/* UV5 unique struct */
45868c2ecf20Sopenharmony_ci	struct uv5h_scratch5_s {
45878c2ecf20Sopenharmony_ci		unsigned long	scratch5:64;			/* RW */
45888c2ecf20Sopenharmony_ci	} s5;
45898c2ecf20Sopenharmony_ci
45908c2ecf20Sopenharmony_ci	/* UV4 unique struct */
45918c2ecf20Sopenharmony_ci	struct uv4h_scratch5_s {
45928c2ecf20Sopenharmony_ci		unsigned long	scratch5:64;			/* RW */
45938c2ecf20Sopenharmony_ci	} s4;
45948c2ecf20Sopenharmony_ci
45958c2ecf20Sopenharmony_ci	/* UV3 unique struct */
45968c2ecf20Sopenharmony_ci	struct uv3h_scratch5_s {
45978c2ecf20Sopenharmony_ci		unsigned long	scratch5:64;			/* RW */
45988c2ecf20Sopenharmony_ci	} s3;
45998c2ecf20Sopenharmony_ci
46008c2ecf20Sopenharmony_ci	/* UV2 unique struct */
46018c2ecf20Sopenharmony_ci	struct uv2h_scratch5_s {
46028c2ecf20Sopenharmony_ci		unsigned long	scratch5:64;			/* RW */
46038c2ecf20Sopenharmony_ci	} s2;
46048c2ecf20Sopenharmony_ci};
46058c2ecf20Sopenharmony_ci
46068c2ecf20Sopenharmony_ci/* ========================================================================= */
46078c2ecf20Sopenharmony_ci/*                            UVH_SCRATCH5_ALIAS                             */
46088c2ecf20Sopenharmony_ci/* ========================================================================= */
46098c2ecf20Sopenharmony_ci#define UVH_SCRATCH5_ALIAS (						\
46108c2ecf20Sopenharmony_ci	is_uv(UV5) ? 0xb0208UL :					\
46118c2ecf20Sopenharmony_ci	is_uv(UV4) ? 0xb0208UL :					\
46128c2ecf20Sopenharmony_ci	is_uv(UV3) ? 0x2d0208UL :					\
46138c2ecf20Sopenharmony_ci	is_uv(UV2) ? 0x2d0208UL :					\
46148c2ecf20Sopenharmony_ci	0)
46158c2ecf20Sopenharmony_ci#define UV5H_SCRATCH5_ALIAS 0xb0208UL
46168c2ecf20Sopenharmony_ci#define UV4H_SCRATCH5_ALIAS 0xb0208UL
46178c2ecf20Sopenharmony_ci#define UV3H_SCRATCH5_ALIAS 0x2d0208UL
46188c2ecf20Sopenharmony_ci#define UV2H_SCRATCH5_ALIAS 0x2d0208UL
46198c2ecf20Sopenharmony_ci
46208c2ecf20Sopenharmony_ci
46218c2ecf20Sopenharmony_ci/* ========================================================================= */
46228c2ecf20Sopenharmony_ci/*                           UVH_SCRATCH5_ALIAS_2                            */
46238c2ecf20Sopenharmony_ci/* ========================================================================= */
46248c2ecf20Sopenharmony_ci#define UVH_SCRATCH5_ALIAS_2 (						\
46258c2ecf20Sopenharmony_ci	is_uv(UV5) ? 0xb0210UL :					\
46268c2ecf20Sopenharmony_ci	is_uv(UV4) ? 0xb0210UL :					\
46278c2ecf20Sopenharmony_ci	is_uv(UV3) ? 0x2d0210UL :					\
46288c2ecf20Sopenharmony_ci	is_uv(UV2) ? 0x2d0210UL :					\
46298c2ecf20Sopenharmony_ci	0)
46308c2ecf20Sopenharmony_ci#define UV5H_SCRATCH5_ALIAS_2 0xb0210UL
46318c2ecf20Sopenharmony_ci#define UV4H_SCRATCH5_ALIAS_2 0xb0210UL
46328c2ecf20Sopenharmony_ci#define UV3H_SCRATCH5_ALIAS_2 0x2d0210UL
46338c2ecf20Sopenharmony_ci#define UV2H_SCRATCH5_ALIAS_2 0x2d0210UL
46348c2ecf20Sopenharmony_ci
46358c2ecf20Sopenharmony_ci
46368c2ecf20Sopenharmony_ci
46378c2ecf20Sopenharmony_ci#endif /* _ASM_X86_UV_UV_MMRS_H */
4638