aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-ppc64/iSeries/HvCallXm.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-ppc64/iSeries/HvCallXm.h')
-rw-r--r--include/asm-ppc64/iSeries/HvCallXm.h63
1 files changed, 22 insertions, 41 deletions
diff --git a/include/asm-ppc64/iSeries/HvCallXm.h b/include/asm-ppc64/iSeries/HvCallXm.h
index bfb898f4db8d..a99f29b93611 100644
--- a/include/asm-ppc64/iSeries/HvCallXm.h
+++ b/include/asm-ppc64/iSeries/HvCallXm.h
@@ -1,30 +1,13 @@
1//============================================================================ 1/*
2// Header File Id 2 * This file contains the "hypervisor call" interface which is used to
3// Name______________: HvCallXm.H 3 * drive the hypervisor from SLIC.
4// 4 */
5// Description_______:
6//
7// This file contains the "hypervisor call" interface which is used to
8// drive the hypervisor from SLIC.
9//
10//============================================================================
11#ifndef _HVCALLXM_H 5#ifndef _HVCALLXM_H
12#define _HVCALLXM_H 6#define _HVCALLXM_H
13 7
14//-------------------------------------------------------------------
15// Forward declarations
16//-------------------------------------------------------------------
17
18//-------------------------------------------------------------------
19// Standard Includes
20//-------------------------------------------------------------------
21#include <asm/iSeries/HvCallSc.h> 8#include <asm/iSeries/HvCallSc.h>
22#include <asm/iSeries/HvTypes.h> 9#include <asm/iSeries/HvTypes.h>
23 10
24//-----------------------------------------------------------------------------
25// Constants
26//-----------------------------------------------------------------------------
27
28#define HvCallXmGetTceTableParms HvCallXm + 0 11#define HvCallXmGetTceTableParms HvCallXm + 0
29#define HvCallXmTestBus HvCallXm + 1 12#define HvCallXmTestBus HvCallXm + 1
30#define HvCallXmConnectBusUnit HvCallXm + 2 13#define HvCallXmConnectBusUnit HvCallXm + 2
@@ -33,47 +16,46 @@
33#define HvCallXmSetTce HvCallXm + 11 16#define HvCallXmSetTce HvCallXm + 11
34#define HvCallXmSetTces HvCallXm + 13 17#define HvCallXmSetTces HvCallXm + 13
35 18
36 19static inline void HvCallXm_getTceTableParms(u64 cb)
37
38//============================================================================
39static inline void HvCallXm_getTceTableParms(u64 cb)
40{ 20{
41 HvCall1(HvCallXmGetTceTableParms, cb); 21 HvCall1(HvCallXmGetTceTableParms, cb);
42 // getPaca()->adjustHmtForNoOfSpinLocksHeld(); 22 // getPaca()->adjustHmtForNoOfSpinLocksHeld();
43} 23}
44//============================================================================ 24
45static inline u64 HvCallXm_setTce(u64 tceTableToken, u64 tceOffset, u64 tce) 25static inline u64 HvCallXm_setTce(u64 tceTableToken, u64 tceOffset, u64 tce)
46{ 26{
47 u64 retval = HvCall3(HvCallXmSetTce, tceTableToken, tceOffset, tce ); 27 u64 retval = HvCall3(HvCallXmSetTce, tceTableToken, tceOffset, tce );
48 // getPaca()->adjustHmtForNoOfSpinLocksHeld(); 28 // getPaca()->adjustHmtForNoOfSpinLocksHeld();
49 return retval; 29 return retval;
50} 30}
51//============================================================================ 31
52static inline u64 HvCallXm_setTces(u64 tceTableToken, u64 tceOffset, u64 numTces, u64 tce1, u64 tce2, u64 tce3, u64 tce4) 32static inline u64 HvCallXm_setTces(u64 tceTableToken, u64 tceOffset,
53{ 33 u64 numTces, u64 tce1, u64 tce2, u64 tce3, u64 tce4)
34{
54 u64 retval = HvCall7(HvCallXmSetTces, tceTableToken, tceOffset, numTces, 35 u64 retval = HvCall7(HvCallXmSetTces, tceTableToken, tceOffset, numTces,
55 tce1, tce2, tce3, tce4 ); 36 tce1, tce2, tce3, tce4 );
56 // getPaca()->adjustHmtForNoOfSpinLocksHeld(); 37 // getPaca()->adjustHmtForNoOfSpinLocksHeld();
57 return retval; 38 return retval;
58} 39}
59//============================================================================= 40
60static inline u64 HvCallXm_testBus(u16 busNumber) 41static inline u64 HvCallXm_testBus(u16 busNumber)
61{ 42{
62 u64 retVal = HvCall1(HvCallXmTestBus, busNumber); 43 u64 retVal = HvCall1(HvCallXmTestBus, busNumber);
63 // getPaca()->adjustHmtForNoOfSpinLocksHeld(); 44 // getPaca()->adjustHmtForNoOfSpinLocksHeld();
64 return retVal; 45 return retVal;
65} 46}
66//===================================================================================== 47
67static inline u64 HvCallXm_testBusUnit(u16 busNumber, u8 subBusNumber, u8 deviceId) 48static inline u64 HvCallXm_testBusUnit(u16 busNumber, u8 subBusNumber,
49 u8 deviceId)
68{ 50{
69 u64 busUnitNumber = (subBusNumber << 8) | deviceId; 51 u64 busUnitNumber = (subBusNumber << 8) | deviceId;
70 u64 retVal = HvCall2(HvCallXmTestBusUnit, busNumber, busUnitNumber); 52 u64 retVal = HvCall2(HvCallXmTestBusUnit, busNumber, busUnitNumber);
71 // getPaca()->adjustHmtForNoOfSpinLocksHeld(); 53 // getPaca()->adjustHmtForNoOfSpinLocksHeld();
72 return retVal; 54 return retVal;
73} 55}
74//===================================================================================== 56
75static inline u64 HvCallXm_connectBusUnit(u16 busNumber, u8 subBusNumber, u8 deviceId, 57static inline u64 HvCallXm_connectBusUnit(u16 busNumber, u8 subBusNumber,
76 u64 interruptToken) 58 u8 deviceId, u64 interruptToken)
77{ 59{
78 u64 busUnitNumber = (subBusNumber << 8) | deviceId; 60 u64 busUnitNumber = (subBusNumber << 8) | deviceId;
79 u64 queueIndex = 0; // HvLpConfig::mapDsaToQueueIndex(HvLpDSA(busNumber, xBoard, xCard)); 61 u64 queueIndex = 0; // HvLpConfig::mapDsaToQueueIndex(HvLpDSA(busNumber, xBoard, xCard));
@@ -83,13 +65,12 @@ static inline u64 HvCallXm_connectBusUnit(u16 busNumber, u8 subBusNumber, u8 dev
83 // getPaca()->adjustHmtForNoOfSpinLocksHeld(); 65 // getPaca()->adjustHmtForNoOfSpinLocksHeld();
84 return retVal; 66 return retVal;
85} 67}
86//===================================================================================== 68
87static inline u64 HvCallXm_loadTod(void) 69static inline u64 HvCallXm_loadTod(void)
88{ 70{
89 u64 retVal = HvCall0(HvCallXmLoadTod); 71 u64 retVal = HvCall0(HvCallXmLoadTod);
90 // getPaca()->adjustHmtForNoOfSpinLocksHeld(); 72 // getPaca()->adjustHmtForNoOfSpinLocksHeld();
91 return retVal; 73 return retVal;
92} 74}
93//=====================================================================================
94 75
95#endif /* _HVCALLXM_H */ 76#endif /* _HVCALLXM_H */