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.h35
1 files changed, 10 insertions, 25 deletions
diff --git a/include/asm-ppc64/iSeries/HvCallXm.h b/include/asm-ppc64/iSeries/HvCallXm.h
index a99f29b93611..1362a425913f 100644
--- a/include/asm-ppc64/iSeries/HvCallXm.h
+++ b/include/asm-ppc64/iSeries/HvCallXm.h
@@ -19,58 +19,43 @@
19static inline void HvCallXm_getTceTableParms(u64 cb) 19static inline void HvCallXm_getTceTableParms(u64 cb)
20{ 20{
21 HvCall1(HvCallXmGetTceTableParms, cb); 21 HvCall1(HvCallXmGetTceTableParms, cb);
22 // getPaca()->adjustHmtForNoOfSpinLocksHeld();
23} 22}
24 23
25static inline u64 HvCallXm_setTce(u64 tceTableToken, u64 tceOffset, u64 tce) 24static inline u64 HvCallXm_setTce(u64 tceTableToken, u64 tceOffset, u64 tce)
26{ 25{
27 u64 retval = HvCall3(HvCallXmSetTce, tceTableToken, tceOffset, tce ); 26 return HvCall3(HvCallXmSetTce, tceTableToken, tceOffset, tce);
28 // getPaca()->adjustHmtForNoOfSpinLocksHeld();
29 return retval;
30} 27}
31 28
32static inline u64 HvCallXm_setTces(u64 tceTableToken, u64 tceOffset, 29static inline u64 HvCallXm_setTces(u64 tceTableToken, u64 tceOffset,
33 u64 numTces, u64 tce1, u64 tce2, u64 tce3, u64 tce4) 30 u64 numTces, u64 tce1, u64 tce2, u64 tce3, u64 tce4)
34{ 31{
35 u64 retval = HvCall7(HvCallXmSetTces, tceTableToken, tceOffset, numTces, 32 return HvCall7(HvCallXmSetTces, tceTableToken, tceOffset, numTces,
36 tce1, tce2, tce3, tce4 ); 33 tce1, tce2, tce3, tce4);
37 // getPaca()->adjustHmtForNoOfSpinLocksHeld();
38 return retval;
39} 34}
40 35
41static inline u64 HvCallXm_testBus(u16 busNumber) 36static inline u64 HvCallXm_testBus(u16 busNumber)
42{ 37{
43 u64 retVal = HvCall1(HvCallXmTestBus, busNumber); 38 return HvCall1(HvCallXmTestBus, busNumber);
44 // getPaca()->adjustHmtForNoOfSpinLocksHeld();
45 return retVal;
46} 39}
47 40
48static inline u64 HvCallXm_testBusUnit(u16 busNumber, u8 subBusNumber, 41static inline u64 HvCallXm_testBusUnit(u16 busNumber, u8 subBusNumber,
49 u8 deviceId) 42 u8 deviceId)
50{ 43{
51 u64 busUnitNumber = (subBusNumber << 8) | deviceId; 44 return HvCall2(HvCallXmTestBusUnit, busNumber,
52 u64 retVal = HvCall2(HvCallXmTestBusUnit, busNumber, busUnitNumber); 45 (subBusNumber << 8) | deviceId);
53 // getPaca()->adjustHmtForNoOfSpinLocksHeld();
54 return retVal;
55} 46}
56 47
57static inline u64 HvCallXm_connectBusUnit(u16 busNumber, u8 subBusNumber, 48static inline u64 HvCallXm_connectBusUnit(u16 busNumber, u8 subBusNumber,
58 u8 deviceId, u64 interruptToken) 49 u8 deviceId, u64 interruptToken)
59{ 50{
60 u64 busUnitNumber = (subBusNumber << 8) | deviceId; 51 return HvCall5(HvCallXmConnectBusUnit, busNumber,
61 u64 queueIndex = 0; // HvLpConfig::mapDsaToQueueIndex(HvLpDSA(busNumber, xBoard, xCard)); 52 (subBusNumber << 8) | deviceId, interruptToken, 0,
62 53 0 /* HvLpConfig::mapDsaToQueueIndex(HvLpDSA(busNumber, xBoard, xCard)) */);
63 u64 retVal = HvCall5(HvCallXmConnectBusUnit, busNumber, busUnitNumber,
64 interruptToken, 0, queueIndex);
65 // getPaca()->adjustHmtForNoOfSpinLocksHeld();
66 return retVal;
67} 54}
68 55
69static inline u64 HvCallXm_loadTod(void) 56static inline u64 HvCallXm_loadTod(void)
70{ 57{
71 u64 retVal = HvCall0(HvCallXmLoadTod); 58 return HvCall0(HvCallXmLoadTod);
72 // getPaca()->adjustHmtForNoOfSpinLocksHeld();
73 return retVal;
74} 59}
75 60
76#endif /* _HVCALLXM_H */ 61#endif /* _HVCALLXM_H */