diff options
Diffstat (limited to 'include/asm-powerpc/hvcall.h')
-rw-r--r-- | include/asm-powerpc/hvcall.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/asm-powerpc/hvcall.h b/include/asm-powerpc/hvcall.h index d36da61dbc53..38ca9ad6110d 100644 --- a/include/asm-powerpc/hvcall.h +++ b/include/asm-powerpc/hvcall.h | |||
@@ -1,11 +1,15 @@ | |||
1 | #ifndef _ASM_POWERPC_HVCALL_H | 1 | #ifndef _ASM_POWERPC_HVCALL_H |
2 | #define _ASM_POWERPC_HVCALL_H | 2 | #define _ASM_POWERPC_HVCALL_H |
3 | #ifdef __KERNEL__ | ||
3 | 4 | ||
4 | #define HVSC .long 0x44000022 | 5 | #define HVSC .long 0x44000022 |
5 | 6 | ||
6 | #define H_Success 0 | 7 | #define H_Success 0 |
7 | #define H_Busy 1 /* Hardware busy -- retry later */ | 8 | #define H_Busy 1 /* Hardware busy -- retry later */ |
9 | #define H_Closed 2 /* Resource closed */ | ||
8 | #define H_Constrained 4 /* Resource request constrained to max allowed */ | 10 | #define H_Constrained 4 /* Resource request constrained to max allowed */ |
11 | #define H_InProgress 14 /* Kind of like busy */ | ||
12 | #define H_Continue 18 /* Returned from H_Join on success */ | ||
9 | #define H_LongBusyStartRange 9900 /* Start of long busy range */ | 13 | #define H_LongBusyStartRange 9900 /* Start of long busy range */ |
10 | #define H_LongBusyOrder1msec 9900 /* Long busy, hint that 1msec is a good time to retry */ | 14 | #define H_LongBusyOrder1msec 9900 /* Long busy, hint that 1msec is a good time to retry */ |
11 | #define H_LongBusyOrder10msec 9901 /* Long busy, hint that 10msec is a good time to retry */ | 15 | #define H_LongBusyOrder10msec 9901 /* Long busy, hint that 10msec is a good time to retry */ |
@@ -113,6 +117,8 @@ | |||
113 | #define H_REGISTER_VTERM 0x154 | 117 | #define H_REGISTER_VTERM 0x154 |
114 | #define H_FREE_VTERM 0x158 | 118 | #define H_FREE_VTERM 0x158 |
115 | #define H_POLL_PENDING 0x1D8 | 119 | #define H_POLL_PENDING 0x1D8 |
120 | #define H_JOIN 0x298 | ||
121 | #define H_ENABLE_CRQ 0x2B0 | ||
116 | 122 | ||
117 | #ifndef __ASSEMBLY__ | 123 | #ifndef __ASSEMBLY__ |
118 | 124 | ||
@@ -170,4 +176,5 @@ long plpar_hcall_4out(unsigned long opcode, | |||
170 | unsigned long *out4); | 176 | unsigned long *out4); |
171 | 177 | ||
172 | #endif /* __ASSEMBLY__ */ | 178 | #endif /* __ASSEMBLY__ */ |
179 | #endif /* __KERNEL__ */ | ||
173 | #endif /* _ASM_POWERPC_HVCALL_H */ | 180 | #endif /* _ASM_POWERPC_HVCALL_H */ |