aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc
diff options
context:
space:
mode:
authorSegher Boessenkool <segher@kernel.crashing.org>2006-03-30 07:49:40 -0500
committerPaul Mackerras <paulus@samba.org>2006-04-01 06:36:57 -0500
commit706c8c93ba4865a19e981b9770151a7a63c15794 (patch)
tree63cbae3a74bfe40adcb1efa9ea5a6e7f6898b8ca /include/asm-powerpc
parent8df83028cf52e3bf68dfd35a4b1a044b326a4a99 (diff)
[PATCH] powerpc/pseries: Change H_StudlyCaps to H_SHOUTING_CAPS
Also cleans up some nearby whitespace problems. Signed-off-by: Segher Boessenkool <segher@kernel.crashing.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc')
-rw-r--r--include/asm-powerpc/hvcall.h85
1 files changed, 46 insertions, 39 deletions
diff --git a/include/asm-powerpc/hvcall.h b/include/asm-powerpc/hvcall.h
index b72c04f3f551..029afaef1e66 100644
--- a/include/asm-powerpc/hvcall.h
+++ b/include/asm-powerpc/hvcall.h
@@ -4,47 +4,54 @@
4 4
5#define HVSC .long 0x44000022 5#define HVSC .long 0x44000022
6 6
7#define H_Success 0 7#define H_SUCCESS 0
8#define H_Busy 1 /* Hardware busy -- retry later */ 8#define H_BUSY 1 /* Hardware busy -- retry later */
9#define H_Closed 2 /* Resource closed */ 9#define H_CLOSED 2 /* Resource closed */
10#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 */ 11#define H_IN_PROGRESS 14 /* Kind of like busy */
12#define H_Pending 17 /* returned from H_POLL_PENDING */ 12#define H_PENDING 17 /* returned from H_POLL_PENDING */
13#define H_Continue 18 /* Returned from H_Join on success */ 13#define H_CONTINUE 18 /* Returned from H_Join on success */
14#define H_LongBusyStartRange 9900 /* Start of long busy range */ 14#define H_LONG_BUSY_START_RANGE 9900 /* Start of long busy range */
15#define H_LongBusyOrder1msec 9900 /* Long busy, hint that 1msec is a good time to retry */ 15#define H_LONG_BUSY_ORDER_1_MSEC 9900 /* Long busy, hint that 1msec \
16#define H_LongBusyOrder10msec 9901 /* Long busy, hint that 10msec is a good time to retry */ 16 is a good time to retry */
17#define H_LongBusyOrder100msec 9902 /* Long busy, hint that 100msec is a good time to retry */ 17#define H_LONG_BUSY_ORDER_10_MSEC 9901 /* Long busy, hint that 10msec \
18#define H_LongBusyOrder1sec 9903 /* Long busy, hint that 1sec is a good time to retry */ 18 is a good time to retry */
19#define H_LongBusyOrder10sec 9904 /* Long busy, hint that 10sec is a good time to retry */ 19#define H_LONG_BUSY_ORDER_100_MSEC 9902 /* Long busy, hint that 100msec \
20#define H_LongBusyOrder100sec 9905 /* Long busy, hint that 100sec is a good time to retry */ 20 is a good time to retry */
21#define H_LongBusyEndRange 9905 /* End of long busy range */ 21#define H_LONG_BUSY_ORDER_1_SEC 9903 /* Long busy, hint that 1sec \
22#define H_Hardware -1 /* Hardware error */ 22 is a good time to retry */
23#define H_Function -2 /* Function not supported */ 23#define H_LONG_BUSY_ORDER_10_SEC 9904 /* Long busy, hint that 10sec \
24#define H_Privilege -3 /* Caller not privileged */ 24 is a good time to retry */
25#define H_Parameter -4 /* Parameter invalid, out-of-range or conflicting */ 25#define H_LONG_BUSY_ORDER_100_SEC 9905 /* Long busy, hint that 100sec \
26#define H_Bad_Mode -5 /* Illegal msr value */ 26 is a good time to retry */
27#define H_PTEG_Full -6 /* PTEG is full */ 27#define H_LONG_BUSY_END_RANGE 9905 /* End of long busy range */
28#define H_Not_Found -7 /* PTE was not found" */ 28#define H_HARDWARE -1 /* Hardware error */
29#define H_Reserved_DABR -8 /* DABR address is reserved by the hypervisor on this processor" */ 29#define H_FUNCTION -2 /* Function not supported */
30#define H_NoMem -9 30#define H_PRIVILEGE -3 /* Caller not privileged */
31#define H_Authority -10 31#define H_PARAMETER -4 /* Parameter invalid, out-of-range or conflicting */
32#define H_Permission -11 32#define H_BAD_MODE -5 /* Illegal msr value */
33#define H_Dropped -12 33#define H_PTEG_FULL -6 /* PTEG is full */
34#define H_SourceParm -13 34#define H_NOT_FOUND -7 /* PTE was not found" */
35#define H_DestParm -14 35#define H_RESERVED_DABR -8 /* DABR address is reserved by the hypervisor on this processor" */
36#define H_RemoteParm -15 36#define H_NO_MEM -9
37#define H_Resource -16 37#define H_AUTHORITY -10
38#define H_PERMISSION -11
39#define H_DROPPED -12
40#define H_SOURCE_PARM -13
41#define H_DEST_PARM -14
42#define H_REMOTE_PARM -15
43#define H_RESOURCE -16
38 44
39/* Long Busy is a condition that can be returned by the firmware 45/* Long Busy is a condition that can be returned by the firmware
40 * when a call cannot be completed now, but the identical call 46 * when a call cannot be completed now, but the identical call
41 * should be retried later. This prevents calls blocking in the 47 * should be retried later. This prevents calls blocking in the
42 * firmware for long periods of time. Annoyingly the firmware can return 48 * firmware for long periods of time. Annoyingly the firmware can return
43 * a range of return codes, hinting at how long we should wait before 49 * a range of return codes, hinting at how long we should wait before
44 * retrying. If you don't care for the hint, the macro below is a good 50 * retrying. If you don't care for the hint, the macro below is a good
45 * way to check for the long_busy return codes 51 * way to check for the long_busy return codes
46 */ 52 */
47#define H_isLongBusy(x) ((x >= H_LongBusyStartRange) && (x <= H_LongBusyEndRange)) 53#define H_IS_LONG_BUSY(x) ((x >= H_LONG_BUSY_START_RANGE) \
54 && (x <= H_LONG_BUSY_END_RANGE))
48 55
49/* Flags */ 56/* Flags */
50#define H_LARGE_PAGE (1UL<<(63-16)) 57#define H_LARGE_PAGE (1UL<<(63-16))
@@ -99,25 +106,25 @@
99#define H_PERFMON 0x7c 106#define H_PERFMON 0x7c
100#define H_MIGRATE_DMA 0x78 107#define H_MIGRATE_DMA 0x78
101#define H_REGISTER_VPA 0xDC 108#define H_REGISTER_VPA 0xDC
102#define H_CEDE 0xE0 109#define H_CEDE 0xE0
103#define H_CONFER 0xE4 110#define H_CONFER 0xE4
104#define H_PROD 0xE8 111#define H_PROD 0xE8
105#define H_GET_PPP 0xEC 112#define H_GET_PPP 0xEC
106#define H_SET_PPP 0xF0 113#define H_SET_PPP 0xF0
107#define H_PURR 0xF4 114#define H_PURR 0xF4
108#define H_PIC 0xF8 115#define H_PIC 0xF8
109#define H_REG_CRQ 0xFC 116#define H_REG_CRQ 0xFC
110#define H_FREE_CRQ 0x100 117#define H_FREE_CRQ 0x100
111#define H_VIO_SIGNAL 0x104 118#define H_VIO_SIGNAL 0x104
112#define H_SEND_CRQ 0x108 119#define H_SEND_CRQ 0x108
113#define H_COPY_RDMA 0x110 120#define H_COPY_RDMA 0x110
114#define H_SET_XDABR 0x134 121#define H_SET_XDABR 0x134
115#define H_STUFF_TCE 0x138 122#define H_STUFF_TCE 0x138
116#define H_PUT_TCE_INDIRECT 0x13C 123#define H_PUT_TCE_INDIRECT 0x13C
117#define H_VTERM_PARTNER_INFO 0x150 124#define H_VTERM_PARTNER_INFO 0x150
118#define H_REGISTER_VTERM 0x154 125#define H_REGISTER_VTERM 0x154
119#define H_FREE_VTERM 0x158 126#define H_FREE_VTERM 0x158
120#define H_POLL_PENDING 0x1D8 127#define H_POLL_PENDING 0x1D8
121#define H_JOIN 0x298 128#define H_JOIN 0x298
122#define H_ENABLE_CRQ 0x2B0 129#define H_ENABLE_CRQ 0x2B0
123 130
@@ -152,7 +159,7 @@ long plpar_hcall_norets(unsigned long opcode, ...);
152 */ 159 */
153long plpar_hcall_8arg_2ret(unsigned long opcode, 160long plpar_hcall_8arg_2ret(unsigned long opcode,
154 unsigned long arg1, 161 unsigned long arg1,
155 unsigned long arg2, 162 unsigned long arg2,
156 unsigned long arg3, 163 unsigned long arg3,
157 unsigned long arg4, 164 unsigned long arg4,
158 unsigned long arg5, 165 unsigned long arg5,