aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-sparc64/hypervisor.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2007-05-25 03:37:12 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-05-29 05:49:29 -0400
commit22d6a1cba3e9ec9baf8ce4d8dd1d088e112a64f1 (patch)
treeb16a912edb689cba40395f778acb3d5dd9426fd8 /include/asm-sparc64/hypervisor.h
parent36b48973b8f1818d0ae6d16e548081d00162ae39 (diff)
[SPARC64]: Report proper system soft state to the hypervisor.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/asm-sparc64/hypervisor.h')
-rw-r--r--include/asm-sparc64/hypervisor.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/asm-sparc64/hypervisor.h b/include/asm-sparc64/hypervisor.h
index a5558c87556d..17b233b64aff 100644
--- a/include/asm-sparc64/hypervisor.h
+++ b/include/asm-sparc64/hypervisor.h
@@ -162,10 +162,15 @@
162 * terminated 7-bit ASCII string of up to 31 characters not including the 162 * terminated 7-bit ASCII string of up to 31 characters not including the
163 * NULL termination. 163 * NULL termination.
164 */ 164 */
165#define HV_FAST_MACH_SET_SOFT_STATE 0x03 165#define HV_FAST_MACH_SET_SOFT_STATE 0x70
166#define HV_SOFT_STATE_NORMAL 0x01 166#define HV_SOFT_STATE_NORMAL 0x01
167#define HV_SOFT_STATE_TRANSITION 0x02 167#define HV_SOFT_STATE_TRANSITION 0x02
168 168
169#ifndef __ASSEMBLY__
170extern unsigned long sun4v_mach_set_soft_state(unsigned long soft_state,
171 unsigned long msg_string_ra);
172#endif
173
169/* mach_get_soft_state() 174/* mach_get_soft_state()
170 * TRAP: HV_FAST_TRAP 175 * TRAP: HV_FAST_TRAP
171 * FUNCTION: HV_FAST_MACH_GET_SOFT_STATE 176 * FUNCTION: HV_FAST_MACH_GET_SOFT_STATE
@@ -181,7 +186,7 @@
181 * for the software state pointer are the same as for mach_set_soft_state() 186 * for the software state pointer are the same as for mach_set_soft_state()
182 * above. 187 * above.
183 */ 188 */
184#define HV_FAST_MACH_GET_SOFT_STATE 0x04 189#define HV_FAST_MACH_GET_SOFT_STATE 0x71
185 190
186/* CPU services. 191/* CPU services.
187 * 192 *
@@ -2204,6 +2209,7 @@ extern void sun4v_hvapi_unregister(unsigned long group);
2204extern int sun4v_hvapi_get(unsigned long group, 2209extern int sun4v_hvapi_get(unsigned long group,
2205 unsigned long *major, 2210 unsigned long *major,
2206 unsigned long *minor); 2211 unsigned long *minor);
2212extern void sun4v_hvapi_init(void);
2207#endif 2213#endif
2208 2214
2209#endif /* !(_SPARC64_HYPERVISOR_H) */ 2215#endif /* !(_SPARC64_HYPERVISOR_H) */