18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#ifndef _SPARC64_SCRATCHPAD_H
38c2ecf20Sopenharmony_ci#define _SPARC64_SCRATCHPAD_H
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci/* Sun4v scratchpad registers, accessed via ASI_SCRATCHPAD.  */
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci#define SCRATCHPAD_MMU_MISS	0x00 /* Shared with OBP - set by OBP	    */
88c2ecf20Sopenharmony_ci#define SCRATCHPAD_CPUID	0x08 /* Shared with OBP - set by hypervisor */
98c2ecf20Sopenharmony_ci#define SCRATCHPAD_UTSBREG1	0x10
108c2ecf20Sopenharmony_ci#define SCRATCHPAD_UTSBREG2	0x18
118c2ecf20Sopenharmony_ci	/* 0x20 and 0x28, hypervisor only... */
128c2ecf20Sopenharmony_ci#define SCRATCHPAD_UNUSED1	0x30
138c2ecf20Sopenharmony_ci#define SCRATCHPAD_UNUSED2	0x38 /* Reserved for OBP		    */
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci#endif /* !(_SPARC64_SCRATCHPAD_H) */
16