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 * Derived from IRIX <sys/SN/SN0/addrs.h>, revision 1.126.
78c2ecf20Sopenharmony_ci *
88c2ecf20Sopenharmony_ci * Copyright (C) 1992 - 1997, 1999 Silicon Graphics, Inc.
98c2ecf20Sopenharmony_ci * Copyright (C) 1999 by Ralf Baechle
108c2ecf20Sopenharmony_ci */
118c2ecf20Sopenharmony_ci#ifndef _ASM_SN_SN0_ADDRS_H
128c2ecf20Sopenharmony_ci#define _ASM_SN_SN0_ADDRS_H
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci/*
168c2ecf20Sopenharmony_ci * SN0 (on a T5) Address map
178c2ecf20Sopenharmony_ci *
188c2ecf20Sopenharmony_ci * This file contains a set of definitions and macros which are used
198c2ecf20Sopenharmony_ci * to reference into the major address spaces (CAC, HSPEC, IO, MSPEC,
208c2ecf20Sopenharmony_ci * and UNCAC) used by the SN0 architecture.  It also contains addresses
218c2ecf20Sopenharmony_ci * for "major" statically locatable PROM/Kernel data structures, such as
228c2ecf20Sopenharmony_ci * the partition table, the configuration data structure, etc.
238c2ecf20Sopenharmony_ci * We make an implicit assumption that the processor using this file
248c2ecf20Sopenharmony_ci * follows the R10K's provisions for specifying uncached attributes;
258c2ecf20Sopenharmony_ci * should this change, the base registers may very well become processor-
268c2ecf20Sopenharmony_ci * dependent.
278c2ecf20Sopenharmony_ci *
288c2ecf20Sopenharmony_ci * For more information on the address spaces, see the "Local Resources"
298c2ecf20Sopenharmony_ci * chapter of the Hub specification.
308c2ecf20Sopenharmony_ci *
318c2ecf20Sopenharmony_ci * NOTE: This header file is included both by C and by assembler source
328c2ecf20Sopenharmony_ci *	 files.	 Please bracket any language-dependent definitions
338c2ecf20Sopenharmony_ci *	 appropriately.
348c2ecf20Sopenharmony_ci */
358c2ecf20Sopenharmony_ci
368c2ecf20Sopenharmony_ci/*
378c2ecf20Sopenharmony_ci * Some of the macros here need to be casted to appropriate types when used
388c2ecf20Sopenharmony_ci * from C.  They definitely must not be casted from assembly language so we
398c2ecf20Sopenharmony_ci * use some new ANSI preprocessor stuff to paste these on where needed.
408c2ecf20Sopenharmony_ci */
418c2ecf20Sopenharmony_ci
428c2ecf20Sopenharmony_ci/*
438c2ecf20Sopenharmony_ci * The following couple of definitions will eventually need to be variables,
448c2ecf20Sopenharmony_ci * since the amount of address space assigned to each node depends on
458c2ecf20Sopenharmony_ci * whether the system is running in N-mode (more nodes with less memory)
468c2ecf20Sopenharmony_ci * or M-mode (fewer nodes with more memory).  We expect that it will
478c2ecf20Sopenharmony_ci * be a while before we need to make this decision dynamically, though,
488c2ecf20Sopenharmony_ci * so for now we just use defines bracketed by an ifdef.
498c2ecf20Sopenharmony_ci */
508c2ecf20Sopenharmony_ci
518c2ecf20Sopenharmony_ci#ifdef CONFIG_SGI_SN_N_MODE
528c2ecf20Sopenharmony_ci
538c2ecf20Sopenharmony_ci#define NODE_SIZE_BITS		31
548c2ecf20Sopenharmony_ci#define BWIN_SIZE_BITS		28
558c2ecf20Sopenharmony_ci
568c2ecf20Sopenharmony_ci#define NASID_BITS		9
578c2ecf20Sopenharmony_ci#define NASID_BITMASK		(0x1ffLL)
588c2ecf20Sopenharmony_ci#define NASID_SHFT		31
598c2ecf20Sopenharmony_ci#define NASID_META_BITS		5
608c2ecf20Sopenharmony_ci#define NASID_LOCAL_BITS	4
618c2ecf20Sopenharmony_ci
628c2ecf20Sopenharmony_ci#define BDDIR_UPPER_MASK	(UINT64_CAST 0x7ffff << 10)
638c2ecf20Sopenharmony_ci#define BDECC_UPPER_MASK	(UINT64_CAST 0x3ffffff << 3)
648c2ecf20Sopenharmony_ci
658c2ecf20Sopenharmony_ci#else /* !defined(CONFIG_SGI_SN_N_MODE), assume that M-mode is desired */
668c2ecf20Sopenharmony_ci
678c2ecf20Sopenharmony_ci#define NODE_SIZE_BITS		32
688c2ecf20Sopenharmony_ci#define BWIN_SIZE_BITS		29
698c2ecf20Sopenharmony_ci
708c2ecf20Sopenharmony_ci#define NASID_BITMASK		(0xffLL)
718c2ecf20Sopenharmony_ci#define NASID_BITS		8
728c2ecf20Sopenharmony_ci#define NASID_SHFT		32
738c2ecf20Sopenharmony_ci#define NASID_META_BITS		4
748c2ecf20Sopenharmony_ci#define NASID_LOCAL_BITS	4
758c2ecf20Sopenharmony_ci
768c2ecf20Sopenharmony_ci#define BDDIR_UPPER_MASK	(UINT64_CAST 0xfffff << 10)
778c2ecf20Sopenharmony_ci#define BDECC_UPPER_MASK	(UINT64_CAST 0x7ffffff << 3)
788c2ecf20Sopenharmony_ci
798c2ecf20Sopenharmony_ci#endif /* !defined(CONFIG_SGI_SN_N_MODE) */
808c2ecf20Sopenharmony_ci
818c2ecf20Sopenharmony_ci#define NODE_ADDRSPACE_SIZE	(UINT64_CAST 1 << NODE_SIZE_BITS)
828c2ecf20Sopenharmony_ci
838c2ecf20Sopenharmony_ci#define NASID_MASK		(UINT64_CAST NASID_BITMASK << NASID_SHFT)
848c2ecf20Sopenharmony_ci#define NASID_GET(_pa)		(int) ((UINT64_CAST (_pa) >>		\
858c2ecf20Sopenharmony_ci					NASID_SHFT) & NASID_BITMASK)
868c2ecf20Sopenharmony_ci
878c2ecf20Sopenharmony_ci#if !defined(__ASSEMBLY__)
888c2ecf20Sopenharmony_ci
898c2ecf20Sopenharmony_ci#define NODE_SWIN_BASE(nasid, widget)					\
908c2ecf20Sopenharmony_ci	((widget == 0) ? NODE_BWIN_BASE((nasid), SWIN0_BIGWIN)		\
918c2ecf20Sopenharmony_ci	: RAW_NODE_SWIN_BASE(nasid, widget))
928c2ecf20Sopenharmony_ci#else /* __ASSEMBLY__ */
938c2ecf20Sopenharmony_ci#define NODE_SWIN_BASE(nasid, widget) \
948c2ecf20Sopenharmony_ci     (NODE_IO_BASE(nasid) + (UINT64_CAST(widget) << SWIN_SIZE_BITS))
958c2ecf20Sopenharmony_ci#endif /* __ASSEMBLY__ */
968c2ecf20Sopenharmony_ci
978c2ecf20Sopenharmony_ci/*
988c2ecf20Sopenharmony_ci * The following definitions pertain to the IO special address
998c2ecf20Sopenharmony_ci * space.  They define the location of the big and little windows
1008c2ecf20Sopenharmony_ci * of any given node.
1018c2ecf20Sopenharmony_ci */
1028c2ecf20Sopenharmony_ci
1038c2ecf20Sopenharmony_ci#define BWIN_INDEX_BITS		3
1048c2ecf20Sopenharmony_ci#define BWIN_SIZE		(UINT64_CAST 1 << BWIN_SIZE_BITS)
1058c2ecf20Sopenharmony_ci#define BWIN_SIZEMASK		(BWIN_SIZE - 1)
1068c2ecf20Sopenharmony_ci#define BWIN_WIDGET_MASK	0x7
1078c2ecf20Sopenharmony_ci#define NODE_BWIN_BASE0(nasid)	(NODE_IO_BASE(nasid) + BWIN_SIZE)
1088c2ecf20Sopenharmony_ci#define NODE_BWIN_BASE(nasid, bigwin)	(NODE_BWIN_BASE0(nasid) +	\
1098c2ecf20Sopenharmony_ci			(UINT64_CAST(bigwin) << BWIN_SIZE_BITS))
1108c2ecf20Sopenharmony_ci
1118c2ecf20Sopenharmony_ci#define BWIN_WIDGETADDR(addr)	((addr) & BWIN_SIZEMASK)
1128c2ecf20Sopenharmony_ci#define BWIN_WINDOWNUM(addr)	(((addr) >> BWIN_SIZE_BITS) & BWIN_WIDGET_MASK)
1138c2ecf20Sopenharmony_ci/*
1148c2ecf20Sopenharmony_ci * Verify if addr belongs to large window address of node with "nasid"
1158c2ecf20Sopenharmony_ci *
1168c2ecf20Sopenharmony_ci *
1178c2ecf20Sopenharmony_ci * NOTE: "addr" is expected to be XKPHYS address, and NOT physical
1188c2ecf20Sopenharmony_ci * address
1198c2ecf20Sopenharmony_ci *
1208c2ecf20Sopenharmony_ci *
1218c2ecf20Sopenharmony_ci */
1228c2ecf20Sopenharmony_ci
1238c2ecf20Sopenharmony_ci#define NODE_BWIN_ADDR(nasid, addr)	\
1248c2ecf20Sopenharmony_ci		(((addr) >= NODE_BWIN_BASE0(nasid)) && \
1258c2ecf20Sopenharmony_ci		 ((addr) < (NODE_BWIN_BASE(nasid, HUB_NUM_BIG_WINDOW) + \
1268c2ecf20Sopenharmony_ci				BWIN_SIZE)))
1278c2ecf20Sopenharmony_ci
1288c2ecf20Sopenharmony_ci/*
1298c2ecf20Sopenharmony_ci * The following define the major position-independent aliases used
1308c2ecf20Sopenharmony_ci * in SN0.
1318c2ecf20Sopenharmony_ci *	CALIAS -- Varies in size, points to the first n bytes of memory
1328c2ecf20Sopenharmony_ci *			on the reader's node.
1338c2ecf20Sopenharmony_ci */
1348c2ecf20Sopenharmony_ci
1358c2ecf20Sopenharmony_ci#define CALIAS_BASE		CAC_BASE
1368c2ecf20Sopenharmony_ci
1378c2ecf20Sopenharmony_ci#define SN0_WIDGET_BASE(_nasid, _wid)	(NODE_SWIN_BASE((_nasid), (_wid)))
1388c2ecf20Sopenharmony_ci
1398c2ecf20Sopenharmony_ci/* Turn on sable logging for the processors whose bits are set. */
1408c2ecf20Sopenharmony_ci#define SABLE_LOG_TRIGGER(_map)
1418c2ecf20Sopenharmony_ci
1428c2ecf20Sopenharmony_ci#ifndef __ASSEMBLY__
1438c2ecf20Sopenharmony_ci#define KERN_NMI_ADDR(nasid, slice)					\
1448c2ecf20Sopenharmony_ci		    TO_NODE_UNCAC((nasid), IP27_NMI_KREGS_OFFSET +	\
1458c2ecf20Sopenharmony_ci				  (IP27_NMI_KREGS_CPU_SIZE * (slice)))
1468c2ecf20Sopenharmony_ci#endif /* !__ASSEMBLY__ */
1478c2ecf20Sopenharmony_ci
1488c2ecf20Sopenharmony_ci#ifdef PROM
1498c2ecf20Sopenharmony_ci
1508c2ecf20Sopenharmony_ci#define MISC_PROM_BASE		PHYS_TO_K0(0x01300000)
1518c2ecf20Sopenharmony_ci#define MISC_PROM_SIZE		0x200000
1528c2ecf20Sopenharmony_ci
1538c2ecf20Sopenharmony_ci#define DIAG_BASE		PHYS_TO_K0(0x01500000)
1548c2ecf20Sopenharmony_ci#define DIAG_SIZE		0x300000
1558c2ecf20Sopenharmony_ci
1568c2ecf20Sopenharmony_ci#define ROUTE_BASE		PHYS_TO_K0(0x01800000)
1578c2ecf20Sopenharmony_ci#define ROUTE_SIZE		0x200000
1588c2ecf20Sopenharmony_ci
1598c2ecf20Sopenharmony_ci#define IP27PROM_FLASH_HDR	PHYS_TO_K0(0x01300000)
1608c2ecf20Sopenharmony_ci#define IP27PROM_FLASH_DATA	PHYS_TO_K0(0x01301000)
1618c2ecf20Sopenharmony_ci#define IP27PROM_CORP_MAX	32
1628c2ecf20Sopenharmony_ci#define IP27PROM_CORP		PHYS_TO_K0(0x01800000)
1638c2ecf20Sopenharmony_ci#define IP27PROM_CORP_SIZE	0x10000
1648c2ecf20Sopenharmony_ci#define IP27PROM_CORP_STK	PHYS_TO_K0(0x01810000)
1658c2ecf20Sopenharmony_ci#define IP27PROM_CORP_STKSIZE	0x2000
1668c2ecf20Sopenharmony_ci#define IP27PROM_DECOMP_BUF	PHYS_TO_K0(0x01900000)
1678c2ecf20Sopenharmony_ci#define IP27PROM_DECOMP_SIZE	0xfff00
1688c2ecf20Sopenharmony_ci
1698c2ecf20Sopenharmony_ci#define IP27PROM_BASE		PHYS_TO_K0(0x01a00000)
1708c2ecf20Sopenharmony_ci#define IP27PROM_BASE_MAPPED	(UNCAC_BASE | 0x1fc00000)
1718c2ecf20Sopenharmony_ci#define IP27PROM_SIZE_MAX	0x100000
1728c2ecf20Sopenharmony_ci
1738c2ecf20Sopenharmony_ci#define IP27PROM_PCFG		PHYS_TO_K0(0x01b00000)
1748c2ecf20Sopenharmony_ci#define IP27PROM_PCFG_SIZE	0xd0000
1758c2ecf20Sopenharmony_ci#define IP27PROM_ERRDMP		PHYS_TO_K1(0x01bd0000)
1768c2ecf20Sopenharmony_ci#define IP27PROM_ERRDMP_SIZE	0xf000
1778c2ecf20Sopenharmony_ci
1788c2ecf20Sopenharmony_ci#define IP27PROM_INIT_START	PHYS_TO_K1(0x01bd0000)
1798c2ecf20Sopenharmony_ci#define IP27PROM_CONSOLE	PHYS_TO_K1(0x01bdf000)
1808c2ecf20Sopenharmony_ci#define IP27PROM_CONSOLE_SIZE	0x200
1818c2ecf20Sopenharmony_ci#define IP27PROM_NETUART	PHYS_TO_K1(0x01bdf200)
1828c2ecf20Sopenharmony_ci#define IP27PROM_NETUART_SIZE	0x100
1838c2ecf20Sopenharmony_ci#define IP27PROM_UNUSED1	PHYS_TO_K1(0x01bdf300)
1848c2ecf20Sopenharmony_ci#define IP27PROM_UNUSED1_SIZE	0x500
1858c2ecf20Sopenharmony_ci#define IP27PROM_ELSC_BASE_A	PHYS_TO_K0(0x01bdf800)
1868c2ecf20Sopenharmony_ci#define IP27PROM_ELSC_BASE_B	PHYS_TO_K0(0x01bdfc00)
1878c2ecf20Sopenharmony_ci#define IP27PROM_STACK_A	PHYS_TO_K0(0x01be0000)
1888c2ecf20Sopenharmony_ci#define IP27PROM_STACK_B	PHYS_TO_K0(0x01bf0000)
1898c2ecf20Sopenharmony_ci#define IP27PROM_STACK_SHFT	16
1908c2ecf20Sopenharmony_ci#define IP27PROM_STACK_SIZE	(1 << IP27PROM_STACK_SHFT)
1918c2ecf20Sopenharmony_ci#define IP27PROM_INIT_END	PHYS_TO_K0(0x01c00000)
1928c2ecf20Sopenharmony_ci
1938c2ecf20Sopenharmony_ci#define SLAVESTACK_BASE		PHYS_TO_K0(0x01580000)
1948c2ecf20Sopenharmony_ci#define SLAVESTACK_SIZE		0x40000
1958c2ecf20Sopenharmony_ci
1968c2ecf20Sopenharmony_ci#define ENETBUFS_BASE		PHYS_TO_K0(0x01f80000)
1978c2ecf20Sopenharmony_ci#define ENETBUFS_SIZE		0x20000
1988c2ecf20Sopenharmony_ci
1998c2ecf20Sopenharmony_ci#define IO6PROM_BASE		PHYS_TO_K0(0x01c00000)
2008c2ecf20Sopenharmony_ci#define IO6PROM_SIZE		0x400000
2018c2ecf20Sopenharmony_ci#define IO6PROM_BASE_MAPPED	(UNCAC_BASE | 0x11c00000)
2028c2ecf20Sopenharmony_ci#define IO6DPROM_BASE		PHYS_TO_K0(0x01c00000)
2038c2ecf20Sopenharmony_ci#define IO6DPROM_SIZE		0x200000
2048c2ecf20Sopenharmony_ci
2058c2ecf20Sopenharmony_ci#define NODEBUGUNIX_ADDR	PHYS_TO_K0(0x00019000)
2068c2ecf20Sopenharmony_ci#define DEBUGUNIX_ADDR		PHYS_TO_K0(0x00100000)
2078c2ecf20Sopenharmony_ci
2088c2ecf20Sopenharmony_ci#define IP27PROM_INT_LAUNCH	10	/* and 11 */
2098c2ecf20Sopenharmony_ci#define IP27PROM_INT_NETUART	12	/* through 17 */
2108c2ecf20Sopenharmony_ci
2118c2ecf20Sopenharmony_ci#endif /* PROM */
2128c2ecf20Sopenharmony_ci
2138c2ecf20Sopenharmony_ci/*
2148c2ecf20Sopenharmony_ci * needed by symmon so it needs to be outside #if PROM
2158c2ecf20Sopenharmony_ci */
2168c2ecf20Sopenharmony_ci#define IP27PROM_ELSC_SHFT	10
2178c2ecf20Sopenharmony_ci#define IP27PROM_ELSC_SIZE	(1 << IP27PROM_ELSC_SHFT)
2188c2ecf20Sopenharmony_ci
2198c2ecf20Sopenharmony_ci/*
2208c2ecf20Sopenharmony_ci * This address is used by IO6PROM to build MemoryDescriptors of
2218c2ecf20Sopenharmony_ci * free memory. This address is important since unix gets loaded
2228c2ecf20Sopenharmony_ci * at this address, and this memory has to be FREE if unix is to
2238c2ecf20Sopenharmony_ci * be loaded.
2248c2ecf20Sopenharmony_ci */
2258c2ecf20Sopenharmony_ci
2268c2ecf20Sopenharmony_ci#define FREEMEM_BASE		PHYS_TO_K0(0x2000000)
2278c2ecf20Sopenharmony_ci
2288c2ecf20Sopenharmony_ci#define IO6PROM_STACK_SHFT	14	/* stack per cpu */
2298c2ecf20Sopenharmony_ci#define IO6PROM_STACK_SIZE	(1 << IO6PROM_STACK_SHFT)
2308c2ecf20Sopenharmony_ci
2318c2ecf20Sopenharmony_ci/*
2328c2ecf20Sopenharmony_ci * IP27 PROM vectors
2338c2ecf20Sopenharmony_ci */
2348c2ecf20Sopenharmony_ci
2358c2ecf20Sopenharmony_ci#define IP27PROM_ENTRY		PHYS_TO_COMPATK1(0x1fc00000)
2368c2ecf20Sopenharmony_ci#define IP27PROM_RESTART	PHYS_TO_COMPATK1(0x1fc00008)
2378c2ecf20Sopenharmony_ci#define IP27PROM_SLAVELOOP	PHYS_TO_COMPATK1(0x1fc00010)
2388c2ecf20Sopenharmony_ci#define IP27PROM_PODMODE	PHYS_TO_COMPATK1(0x1fc00018)
2398c2ecf20Sopenharmony_ci#define IP27PROM_IOC3UARTPOD	PHYS_TO_COMPATK1(0x1fc00020)
2408c2ecf20Sopenharmony_ci#define IP27PROM_FLASHLEDS	PHYS_TO_COMPATK1(0x1fc00028)
2418c2ecf20Sopenharmony_ci#define IP27PROM_REPOD		PHYS_TO_COMPATK1(0x1fc00030)
2428c2ecf20Sopenharmony_ci#define IP27PROM_LAUNCHSLAVE	PHYS_TO_COMPATK1(0x1fc00038)
2438c2ecf20Sopenharmony_ci#define IP27PROM_WAITSLAVE	PHYS_TO_COMPATK1(0x1fc00040)
2448c2ecf20Sopenharmony_ci#define IP27PROM_POLLSLAVE	PHYS_TO_COMPATK1(0x1fc00048)
2458c2ecf20Sopenharmony_ci
2468c2ecf20Sopenharmony_ci#define KL_UART_BASE	LOCAL_HUB_ADDR(MD_UREG0_0)	/* base of UART regs */
2478c2ecf20Sopenharmony_ci#define KL_UART_CMD	LOCAL_HUB_ADDR(MD_UREG0_0)	/* UART command reg */
2488c2ecf20Sopenharmony_ci#define KL_UART_DATA	LOCAL_HUB_ADDR(MD_UREG0_1)	/* UART data reg */
2498c2ecf20Sopenharmony_ci#define KL_I2C_REG	MD_UREG0_0			/* I2C reg */
2508c2ecf20Sopenharmony_ci
2518c2ecf20Sopenharmony_ci#ifndef __ASSEMBLY__
2528c2ecf20Sopenharmony_ci
2538c2ecf20Sopenharmony_ci/* Address 0x400 to 0x1000 ualias points to cache error eframe + misc
2548c2ecf20Sopenharmony_ci * CACHE_ERR_SP_PTR could either contain an address to the stack, or
2558c2ecf20Sopenharmony_ci * the stack could start at CACHE_ERR_SP_PTR
2568c2ecf20Sopenharmony_ci */
2578c2ecf20Sopenharmony_ci#if defined(HUB_ERR_STS_WAR)
2588c2ecf20Sopenharmony_ci#define CACHE_ERR_EFRAME	0x480
2598c2ecf20Sopenharmony_ci#else /* HUB_ERR_STS_WAR */
2608c2ecf20Sopenharmony_ci#define CACHE_ERR_EFRAME	0x400
2618c2ecf20Sopenharmony_ci#endif /* HUB_ERR_STS_WAR */
2628c2ecf20Sopenharmony_ci
2638c2ecf20Sopenharmony_ci#define CACHE_ERR_ECCFRAME	(CACHE_ERR_EFRAME + EF_SIZE)
2648c2ecf20Sopenharmony_ci#define CACHE_ERR_SP_PTR	(0x1000 - 32)	/* why -32? TBD */
2658c2ecf20Sopenharmony_ci#define CACHE_ERR_IBASE_PTR	(0x1000 - 40)
2668c2ecf20Sopenharmony_ci#define CACHE_ERR_SP		(CACHE_ERR_SP_PTR - 16)
2678c2ecf20Sopenharmony_ci#define CACHE_ERR_AREA_SIZE	(ARCS_SPB_OFFSET - CACHE_ERR_EFRAME)
2688c2ecf20Sopenharmony_ci
2698c2ecf20Sopenharmony_ci#endif	/* !__ASSEMBLY__ */
2708c2ecf20Sopenharmony_ci
2718c2ecf20Sopenharmony_ci#define _ARCSPROM
2728c2ecf20Sopenharmony_ci
2738c2ecf20Sopenharmony_ci#if defined(HUB_ERR_STS_WAR)
2748c2ecf20Sopenharmony_ci
2758c2ecf20Sopenharmony_ci#define ERR_STS_WAR_REGISTER	IIO_IIBUSERR
2768c2ecf20Sopenharmony_ci#define ERR_STS_WAR_ADDR	LOCAL_HUB_ADDR(IIO_IIBUSERR)
2778c2ecf20Sopenharmony_ci#define ERR_STS_WAR_PHYSADDR	TO_PHYS((__psunsigned_t)ERR_STS_WAR_ADDR)
2788c2ecf20Sopenharmony_ci				/* Used to match addr in error reg. */
2798c2ecf20Sopenharmony_ci#define OLD_ERR_STS_WAR_OFFSET	((MD_MEM_BANKS * MD_BANK_SIZE) - 0x100)
2808c2ecf20Sopenharmony_ci
2818c2ecf20Sopenharmony_ci#endif /* HUB_ERR_STS_WAR */
2828c2ecf20Sopenharmony_ci
2838c2ecf20Sopenharmony_ci#endif /* _ASM_SN_SN0_ADDRS_H */
284