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/HvCallEvent.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/HvCallEvent.h')
-rw-r--r-- | include/asm-ppc64/iSeries/HvCallEvent.h | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/include/asm-ppc64/iSeries/HvCallEvent.h b/include/asm-ppc64/iSeries/HvCallEvent.h index 191ddce0c2c6..a5954785512d 100644 --- a/include/asm-ppc64/iSeries/HvCallEvent.h +++ b/include/asm-ppc64/iSeries/HvCallEvent.h | |||
@@ -1,32 +1,28 @@ | |||
1 | /* | 1 | /* |
2 | * HvCallEvent.h | 2 | * HvCallEvent.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 | |||
20 | /* | 19 | /* |
21 | * This file contains the "hypervisor call" interface which is used to | 20 | * This file contains the "hypervisor call" interface which is used to |
22 | * drive the hypervisor from the OS. | 21 | * drive the hypervisor from the OS. |
23 | */ | 22 | */ |
24 | #ifndef _HVCALLEVENT_H | 23 | #ifndef _HVCALLEVENT_H |
25 | #define _HVCALLEVENT_H | 24 | #define _HVCALLEVENT_H |
26 | 25 | ||
27 | /* | ||
28 | * Standard Includes | ||
29 | */ | ||
30 | #include <asm/iSeries/HvCallSc.h> | 26 | #include <asm/iSeries/HvCallSc.h> |
31 | #include <asm/iSeries/HvTypes.h> | 27 | #include <asm/iSeries/HvTypes.h> |
32 | #include <asm/abs_addr.h> | 28 | #include <asm/abs_addr.h> |
@@ -71,7 +67,7 @@ typedef u64 HvLpDma_Rc; | |||
71 | #define HvCallEventCloseLpEventPath HvCallEvent + 2 | 67 | #define HvCallEventCloseLpEventPath HvCallEvent + 2 |
72 | #define HvCallEventDmaBufList HvCallEvent + 3 | 68 | #define HvCallEventDmaBufList HvCallEvent + 3 |
73 | #define HvCallEventDmaSingle HvCallEvent + 4 | 69 | #define HvCallEventDmaSingle HvCallEvent + 4 |
74 | #define HvCallEventDmaToSp HvCallEvent + 5 | 70 | #define HvCallEventDmaToSp HvCallEvent + 5 |
75 | #define HvCallEventGetOverflowLpEvents HvCallEvent + 6 | 71 | #define HvCallEventGetOverflowLpEvents HvCallEvent + 6 |
76 | #define HvCallEventGetSourceLpInstanceId HvCallEvent + 7 | 72 | #define HvCallEventGetSourceLpInstanceId HvCallEvent + 7 |
77 | #define HvCallEventGetTargetLpInstanceId HvCallEvent + 8 | 73 | #define HvCallEventGetTargetLpInstanceId HvCallEvent + 8 |
@@ -85,13 +81,13 @@ typedef u64 HvLpDma_Rc; | |||
85 | 81 | ||
86 | static inline void HvCallEvent_getOverflowLpEvents(u8 queueIndex) | 82 | static inline void HvCallEvent_getOverflowLpEvents(u8 queueIndex) |
87 | { | 83 | { |
88 | HvCall1(HvCallEventGetOverflowLpEvents,queueIndex); | 84 | HvCall1(HvCallEventGetOverflowLpEvents, queueIndex); |
89 | // getPaca()->adjustHmtForNoOfSpinLocksHeld(); | 85 | // getPaca()->adjustHmtForNoOfSpinLocksHeld(); |
90 | } | 86 | } |
91 | 87 | ||
92 | static inline void HvCallEvent_setInterLpQueueIndex(u8 queueIndex) | 88 | static inline void HvCallEvent_setInterLpQueueIndex(u8 queueIndex) |
93 | { | 89 | { |
94 | HvCall1(HvCallEventSetInterLpQueueIndex,queueIndex); | 90 | HvCall1(HvCallEventSetInterLpQueueIndex, queueIndex); |
95 | // getPaca()->adjustHmtForNoOfSpinLocksHeld(); | 91 | // getPaca()->adjustHmtForNoOfSpinLocksHeld(); |
96 | } | 92 | } |
97 | 93 | ||
@@ -138,7 +134,7 @@ static inline HvLpEvent_Rc HvCallEvent_signalLpEventFast(HvLpIndex targetLp, | |||
138 | { | 134 | { |
139 | HvLpEvent_Rc retVal; | 135 | HvLpEvent_Rc retVal; |
140 | 136 | ||
141 | // Pack the misc bits into a single Dword to pass to PLIC | 137 | /* Pack the misc bits into a single Dword to pass to PLIC */ |
142 | union { | 138 | union { |
143 | struct HvCallEvent_PackedParms parms; | 139 | struct HvCallEvent_PackedParms parms; |
144 | u64 dword; | 140 | u64 dword; |
@@ -225,7 +221,7 @@ static inline HvLpDma_Rc HvCallEvent_dmaBufList(HvLpEvent_Type type, | |||
225 | u64 localBufList, u64 remoteBufList, u32 transferLength) | 221 | u64 localBufList, u64 remoteBufList, u32 transferLength) |
226 | { | 222 | { |
227 | HvLpDma_Rc retVal; | 223 | HvLpDma_Rc retVal; |
228 | // Pack the misc bits into a single Dword to pass to PLIC | 224 | /* Pack the misc bits into a single Dword to pass to PLIC */ |
229 | union { | 225 | union { |
230 | struct HvCallEvent_PackedDmaParms parms; | 226 | struct HvCallEvent_PackedDmaParms parms; |
231 | u64 dword; | 227 | u64 dword; |
@@ -257,7 +253,7 @@ static inline HvLpDma_Rc HvCallEvent_dmaSingle(HvLpEvent_Type type, | |||
257 | u64 localAddrOrTce, u64 remoteAddrOrTce, u32 transferLength) | 253 | u64 localAddrOrTce, u64 remoteAddrOrTce, u32 transferLength) |
258 | { | 254 | { |
259 | HvLpDma_Rc retVal; | 255 | HvLpDma_Rc retVal; |
260 | // Pack the misc bits into a single Dword to pass to PLIC | 256 | /* Pack the misc bits into a single Dword to pass to PLIC */ |
261 | union { | 257 | union { |
262 | struct HvCallEvent_PackedDmaParms parms; | 258 | struct HvCallEvent_PackedDmaParms parms; |
263 | u64 dword; | 259 | u64 dword; |
@@ -280,7 +276,7 @@ static inline HvLpDma_Rc HvCallEvent_dmaSingle(HvLpEvent_Type type, | |||
280 | return retVal; | 276 | return retVal; |
281 | } | 277 | } |
282 | 278 | ||
283 | static inline HvLpDma_Rc HvCallEvent_dmaToSp(void* local, u32 remote, | 279 | static inline HvLpDma_Rc HvCallEvent_dmaToSp(void *local, u32 remote, |
284 | u32 length, HvLpDma_Direction dir) | 280 | u32 length, HvLpDma_Direction dir) |
285 | { | 281 | { |
286 | u64 abs_addr; | 282 | u64 abs_addr; |
@@ -293,5 +289,4 @@ static inline HvLpDma_Rc HvCallEvent_dmaToSp(void* local, u32 remote, | |||
293 | return retVal; | 289 | return retVal; |
294 | } | 290 | } |
295 | 291 | ||
296 | |||
297 | #endif /* _HVCALLEVENT_H */ | 292 | #endif /* _HVCALLEVENT_H */ |