diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2005-06-21 20:15:33 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-21 21:46:27 -0400 |
commit | 45dc76aaf63fc336527da80337d3e3684f50f387 (patch) | |
tree | e0a4db9c1b9e6cfa4437676d658370190b2d7fe9 /include/asm-ppc64/iSeries/HvCall.h | |
parent | 0e3e4a1c4dade7872fdb04a5e735ae26d8e2fbfb (diff) |
[PATCH] ppc64 iSeries: header file white space cleanups
This patch just contains white space and comment cleanups in the iSeries
headers files. There are no semantic changes.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-ppc64/iSeries/HvCall.h')
-rw-r--r-- | include/asm-ppc64/iSeries/HvCall.h | 100 |
1 files changed, 44 insertions, 56 deletions
diff --git a/include/asm-ppc64/iSeries/HvCall.h b/include/asm-ppc64/iSeries/HvCall.h index d9a2e74e2399..c903387e9128 100644 --- a/include/asm-ppc64/iSeries/HvCall.h +++ b/include/asm-ppc64/iSeries/HvCall.h | |||
@@ -1,34 +1,28 @@ | |||
1 | /* | 1 | /* |
2 | * HvCall.h | 2 | * HvCall.h |
3 | * Copyright (C) 2001 Mike Corrigan IBM Corporation | 3 | * Copyright (C) 2001 Mike Corrigan IBM Corporation |
4 | * | 4 | * |
5 | * This program is free software; you can redistribute it and/or modify | 5 | * This program is free software; you can redistribute it and/or modify |
6 | * it under the terms of the GNU General Public License as published by | 6 | * it under the terms of the GNU General Public License as published by |
7 | * the Free Software Foundation; either version 2 of the License, or | 7 | * the Free Software Foundation; either version 2 of the License, or |
8 | * (at your option) any later version. | 8 | * (at your option) any later version. |
9 | * | 9 | * |
10 | * This program is distributed in the hope that it will be useful, | 10 | * This program is distributed in the hope that it will be useful, |
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | * GNU General Public License for more details. | 13 | * GNU General Public License for more details. |
14 | * | 14 | * |
15 | * You should have received a copy of the GNU General Public License | 15 | * You should have received a copy of the GNU General Public License |
16 | * along with this program; if not, write to the Free Software | 16 | * along with this program; if not, write to the Free Software |
17 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 17 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
18 | */ | 18 | */ |
19 | 19 | /* | |
20 | //=========================================================================== | 20 | * This file contains the "hypervisor call" interface which is used to |
21 | // | 21 | * drive the hypervisor from the OS. |
22 | // This file contains the "hypervisor call" interface which is used to | 22 | */ |
23 | // drive the hypervisor from the OS. | ||
24 | // | ||
25 | //=========================================================================== | ||
26 | #ifndef _HVCALL_H | 23 | #ifndef _HVCALL_H |
27 | #define _HVCALL_H | 24 | #define _HVCALL_H |
28 | 25 | ||
29 | //------------------------------------------------------------------- | ||
30 | // Standard Includes | ||
31 | //------------------------------------------------------------------- | ||
32 | #include <asm/iSeries/HvCallSc.h> | 26 | #include <asm/iSeries/HvCallSc.h> |
33 | #include <asm/iSeries/HvTypes.h> | 27 | #include <asm/iSeries/HvTypes.h> |
34 | #include <asm/paca.h> | 28 | #include <asm/paca.h> |
@@ -76,9 +70,9 @@ enum HvCall_VaryOffChunkRc | |||
76 | */ | 70 | */ |
77 | 71 | ||
78 | /* Type of yield for HvCallBaseYieldProcessor */ | 72 | /* Type of yield for HvCallBaseYieldProcessor */ |
79 | #define HvCall_YieldTimed 0 // Yield until specified time (tb) | 73 | #define HvCall_YieldTimed 0 /* Yield until specified time (tb) */ |
80 | #define HvCall_YieldToActive 1 // Yield until all active procs have run | 74 | #define HvCall_YieldToActive 1 /* Yield until all active procs have run */ |
81 | #define HvCall_YieldToProc 2 // Yield until the specified processor has run | 75 | #define HvCall_YieldToProc 2 /* Yield until the specified processor has run */ |
82 | 76 | ||
83 | /* interrupt masks for setEnabledInterrupts */ | 77 | /* interrupt masks for setEnabledInterrupts */ |
84 | #define HvCall_MaskIPI 0x00000001 | 78 | #define HvCall_MaskIPI 0x00000001 |
@@ -86,7 +80,7 @@ enum HvCall_VaryOffChunkRc | |||
86 | #define HvCall_MaskLpProd 0x00000004 | 80 | #define HvCall_MaskLpProd 0x00000004 |
87 | #define HvCall_MaskTimeout 0x00000008 | 81 | #define HvCall_MaskTimeout 0x00000008 |
88 | 82 | ||
89 | /* Log buffer formats */ | 83 | /* Log buffer formats */ |
90 | #define HvCall_LogBuffer_ASCII 0 | 84 | #define HvCall_LogBuffer_ASCII 0 |
91 | #define HvCall_LogBuffer_EBCDIC 1 | 85 | #define HvCall_LogBuffer_EBCDIC 1 |
92 | 86 | ||
@@ -95,7 +89,7 @@ enum HvCall_VaryOffChunkRc | |||
95 | #define HvCallBaseGetHwPatch HvCallBase + 2 | 89 | #define HvCallBaseGetHwPatch HvCallBase + 2 |
96 | #define HvCallBaseReIplSpAttn HvCallBase + 3 | 90 | #define HvCallBaseReIplSpAttn HvCallBase + 3 |
97 | #define HvCallBaseSetASR HvCallBase + 4 | 91 | #define HvCallBaseSetASR HvCallBase + 4 |
98 | #define HvCallBaseSetASRAndRfi HvCallBase + 5 | 92 | #define HvCallBaseSetASRAndRfi HvCallBase + 5 |
99 | #define HvCallBaseSetIMR HvCallBase + 6 | 93 | #define HvCallBaseSetIMR HvCallBase + 6 |
100 | #define HvCallBaseSendIPI HvCallBase + 7 | 94 | #define HvCallBaseSendIPI HvCallBase + 7 |
101 | #define HvCallBaseTerminateMachine HvCallBase + 8 | 95 | #define HvCallBaseTerminateMachine HvCallBase + 8 |
@@ -115,81 +109,75 @@ enum HvCall_VaryOffChunkRc | |||
115 | #define HvCallBaseGetLogBufferCodePage HvCallBase + 22 | 109 | #define HvCallBaseGetLogBufferCodePage HvCallBase + 22 |
116 | #define HvCallBaseGetLogBufferFormat HvCallBase + 23 | 110 | #define HvCallBaseGetLogBufferFormat HvCallBase + 23 |
117 | #define HvCallBaseGetLogBufferLength HvCallBase + 24 | 111 | #define HvCallBaseGetLogBufferLength HvCallBase + 24 |
118 | #define HvCallBaseReadLogBuffer HvCallBase + 25 | 112 | #define HvCallBaseReadLogBuffer HvCallBase + 25 |
119 | #define HvCallBaseSetLogBufferFormatAndCodePage HvCallBase + 26 | 113 | #define HvCallBaseSetLogBufferFormatAndCodePage HvCallBase + 26 |
120 | #define HvCallBaseWriteLogBuffer HvCallBase + 27 | 114 | #define HvCallBaseWriteLogBuffer HvCallBase + 27 |
121 | #define HvCallBaseRouter28 HvCallBase + 28 | 115 | #define HvCallBaseRouter28 HvCallBase + 28 |
122 | #define HvCallBaseRouter29 HvCallBase + 29 | 116 | #define HvCallBaseRouter29 HvCallBase + 29 |
123 | #define HvCallBaseRouter30 HvCallBase + 30 | 117 | #define HvCallBaseRouter30 HvCallBase + 30 |
124 | #define HvCallBaseSetDebugBus HvCallBase + 31 | 118 | #define HvCallBaseSetDebugBus HvCallBase + 31 |
125 | 119 | ||
126 | #define HvCallCcSetDABR HvCallCc + 7 | 120 | #define HvCallCcSetDABR HvCallCc + 7 |
127 | 121 | ||
128 | //===================================================================================== | 122 | static inline void HvCall_setVirtualDecr(void) |
129 | static inline void HvCall_setVirtualDecr(void) | ||
130 | { | 123 | { |
131 | /* Ignore any error return codes - most likely means that the target value for the | 124 | /* |
132 | * LP has been increased and this vary off would bring us below the new target. */ | 125 | * Ignore any error return codes - most likely means that the |
126 | * target value for the LP has been increased and this vary off | ||
127 | * would bring us below the new target. | ||
128 | */ | ||
133 | HvCall0(HvCallBaseSetVirtualDecr); | 129 | HvCall0(HvCallBaseSetVirtualDecr); |
134 | } | 130 | } |
135 | //===================================================================== | 131 | |
136 | static inline void HvCall_yieldProcessor(unsigned typeOfYield, u64 yieldParm) | 132 | static inline void HvCall_yieldProcessor(unsigned typeOfYield, u64 yieldParm) |
137 | { | 133 | { |
138 | HvCall2( HvCallBaseYieldProcessor, typeOfYield, yieldParm ); | 134 | HvCall2(HvCallBaseYieldProcessor, typeOfYield, yieldParm); |
139 | } | 135 | } |
140 | //===================================================================== | 136 | |
141 | static inline void HvCall_setEnabledInterrupts(u64 enabledInterrupts) | 137 | static inline void HvCall_setEnabledInterrupts(u64 enabledInterrupts) |
142 | { | 138 | { |
143 | HvCall1(HvCallBaseSetEnabledInterrupts,enabledInterrupts); | 139 | HvCall1(HvCallBaseSetEnabledInterrupts, enabledInterrupts); |
144 | } | 140 | } |
145 | 141 | ||
146 | //===================================================================== | 142 | static inline void HvCall_clearLogBuffer(HvLpIndex lpindex) |
147 | static inline void HvCall_clearLogBuffer(HvLpIndex lpindex) | ||
148 | { | 143 | { |
149 | HvCall1(HvCallBaseClearLogBuffer,lpindex); | 144 | HvCall1(HvCallBaseClearLogBuffer, lpindex); |
150 | } | 145 | } |
151 | 146 | ||
152 | //===================================================================== | 147 | static inline u32 HvCall_getLogBufferCodePage(HvLpIndex lpindex) |
153 | static inline u32 HvCall_getLogBufferCodePage(HvLpIndex lpindex) | ||
154 | { | 148 | { |
155 | u32 retVal = HvCall1(HvCallBaseGetLogBufferCodePage,lpindex); | 149 | u32 retVal = HvCall1(HvCallBaseGetLogBufferCodePage, lpindex); |
156 | return retVal; | 150 | return retVal; |
157 | } | 151 | } |
158 | 152 | ||
159 | //===================================================================== | 153 | static inline int HvCall_getLogBufferFormat(HvLpIndex lpindex) |
160 | static inline int HvCall_getLogBufferFormat(HvLpIndex lpindex) | ||
161 | { | 154 | { |
162 | int retVal = HvCall1(HvCallBaseGetLogBufferFormat,lpindex); | 155 | int retVal = HvCall1(HvCallBaseGetLogBufferFormat, lpindex); |
163 | return retVal; | 156 | return retVal; |
164 | } | 157 | } |
165 | 158 | ||
166 | //===================================================================== | 159 | static inline u32 HvCall_getLogBufferLength(HvLpIndex lpindex) |
167 | static inline u32 HvCall_getLogBufferLength(HvLpIndex lpindex) | ||
168 | { | 160 | { |
169 | u32 retVal = HvCall1(HvCallBaseGetLogBufferLength,lpindex); | 161 | u32 retVal = HvCall1(HvCallBaseGetLogBufferLength, lpindex); |
170 | return retVal; | 162 | return retVal; |
171 | } | 163 | } |
172 | 164 | ||
173 | //===================================================================== | 165 | static inline void HvCall_setLogBufferFormatAndCodepage(int format, u32 codePage) |
174 | static inline void HvCall_setLogBufferFormatAndCodepage(int format, u32 codePage) | ||
175 | { | 166 | { |
176 | HvCall2(HvCallBaseSetLogBufferFormatAndCodePage,format, codePage); | 167 | HvCall2(HvCallBaseSetLogBufferFormatAndCodePage, format, codePage); |
177 | } | 168 | } |
178 | 169 | ||
179 | //===================================================================== | 170 | extern int HvCall_readLogBuffer(HvLpIndex lpindex, void *buffer, u64 bufLen); |
180 | int HvCall_readLogBuffer(HvLpIndex lpindex, void *buffer, u64 bufLen); | 171 | extern void HvCall_writeLogBuffer(const void *buffer, u64 bufLen); |
181 | void HvCall_writeLogBuffer(const void *buffer, u64 bufLen); | ||
182 | 172 | ||
183 | //===================================================================== | 173 | static inline void HvCall_sendIPI(struct paca_struct *targetPaca) |
184 | static inline void HvCall_sendIPI(struct paca_struct * targetPaca) | ||
185 | { | 174 | { |
186 | HvCall1( HvCallBaseSendIPI, targetPaca->paca_index ); | 175 | HvCall1(HvCallBaseSendIPI, targetPaca->paca_index); |
187 | } | 176 | } |
188 | 177 | ||
189 | //===================================================================== | 178 | static inline void HvCall_terminateMachineSrc(void) |
190 | static inline void HvCall_terminateMachineSrc(void) | ||
191 | { | 179 | { |
192 | HvCall0( HvCallBaseTerminateMachineSrc ); | 180 | HvCall0(HvCallBaseTerminateMachineSrc); |
193 | } | 181 | } |
194 | 182 | ||
195 | static inline void HvCall_setDABR(unsigned long val) | 183 | static inline void HvCall_setDABR(unsigned long val) |