aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-ppc64/iSeries/HvCallCfg.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-ppc64/iSeries/HvCallCfg.h')
-rw-r--r--include/asm-ppc64/iSeries/HvCallCfg.h53
1 files changed, 2 insertions, 51 deletions
diff --git a/include/asm-ppc64/iSeries/HvCallCfg.h b/include/asm-ppc64/iSeries/HvCallCfg.h
index aa491c3ad0a2..ddf2bb59d73c 100644
--- a/include/asm-ppc64/iSeries/HvCallCfg.h
+++ b/include/asm-ppc64/iSeries/HvCallCfg.h
@@ -67,31 +67,11 @@ enum HvCallCfg_ReqQual {
67#define HvCallCfgGetLpExecutionMode HvCallCfg + 31 67#define HvCallCfgGetLpExecutionMode HvCallCfg + 31
68#define HvCallCfgGetHostingLpIndex HvCallCfg + 32 68#define HvCallCfgGetHostingLpIndex HvCallCfg + 32
69 69
70static inline HvLpIndex HvCallCfg_getLps(void)
71{
72 return HvCall0(HvCallCfgGetLps);
73}
74
75static inline int HvCallCfg_isBusDedicated(u64 busIndex)
76{
77 return HvCall1(HvCallCfgIsBusDedicated, busIndex);
78}
79
80static inline HvLpIndex HvCallCfg_getBusOwner(u64 busIndex) 70static inline HvLpIndex HvCallCfg_getBusOwner(u64 busIndex)
81{ 71{
82 return HvCall1(HvCallCfgGetBusOwner, busIndex); 72 return HvCall1(HvCallCfgGetBusOwner, busIndex);
83} 73}
84 74
85static inline HvLpIndexMap HvCallCfg_getBusAllocation(u64 busIndex)
86{
87 return HvCall1(HvCallCfgGetBusAllocation, busIndex);
88}
89
90static inline HvLpIndexMap HvCallCfg_getActiveLpMap(void)
91{
92 return HvCall0(HvCallCfgGetActiveLpMap);
93}
94
95static inline HvLpVirtualLanIndexMap HvCallCfg_getVirtualLanIndexMap( 75static inline HvLpVirtualLanIndexMap HvCallCfg_getVirtualLanIndexMap(
96 HvLpIndex lp) 76 HvLpIndex lp)
97{ 77{
@@ -105,31 +85,12 @@ static inline HvLpVirtualLanIndexMap HvCallCfg_getVirtualLanIndexMap(
105 return retVal; 85 return retVal;
106} 86}
107 87
108static inline u64 HvCallCfg_getSystemMsChunks(void)
109{
110 return HvCall0(HvCallCfgGetSystemMsChunks);
111}
112
113static inline u64 HvCallCfg_getMsChunks(HvLpIndex lp, 88static inline u64 HvCallCfg_getMsChunks(HvLpIndex lp,
114 enum HvCallCfg_ReqQual qual) 89 enum HvCallCfg_ReqQual qual)
115{ 90{
116 return HvCall2(HvCallCfgGetMsChunks, lp, qual); 91 return HvCall2(HvCallCfgGetMsChunks, lp, qual);
117} 92}
118 93
119static inline u64 HvCallCfg_getMinRuntimeMsChunks(HvLpIndex lp)
120{
121 /*
122 * NOTE: This function was added in v5r1 so older hypervisors
123 * will return a -1 value
124 */
125 return HvCall1(HvCallCfgGetMinRuntimeMsChunks, lp);
126}
127
128static inline u64 HvCallCfg_setMinRuntimeMsChunks(u64 chunks)
129{
130 return HvCall1(HvCallCfgSetMinRuntimeMsChunks, chunks);
131}
132
133static inline u64 HvCallCfg_getSystemPhysicalProcessors(void) 94static inline u64 HvCallCfg_getSystemPhysicalProcessors(void)
134{ 95{
135 return HvCall0(HvCallCfgGetSystemPhysicalProcessors); 96 return HvCall0(HvCallCfgGetSystemPhysicalProcessors);
@@ -141,14 +102,6 @@ static inline u64 HvCallCfg_getPhysicalProcessors(HvLpIndex lp,
141 return HvCall2(HvCallCfgGetPhysicalProcessors, lp, qual); 102 return HvCall2(HvCallCfgGetPhysicalProcessors, lp, qual);
142} 103}
143 104
144static inline u64 HvCallCfg_getConfiguredBusUnitsForInterruptProc(HvLpIndex lp,
145 u16 hvLogicalProcIndex)
146{
147 return HvCall2(HvCallCfgGetConfiguredBusUnitsForIntProc, lp,
148 hvLogicalProcIndex);
149
150}
151
152static inline HvLpSharedPoolIndex HvCallCfg_getSharedPoolIndex(HvLpIndex lp) 105static inline HvLpSharedPoolIndex HvCallCfg_getSharedPoolIndex(HvLpIndex lp)
153{ 106{
154 return HvCall1(HvCallCfgGetSharedPoolIndex, lp); 107 return HvCall1(HvCallCfgGetSharedPoolIndex, lp);
@@ -164,15 +117,13 @@ static inline u64 HvCallCfg_getSharedProcUnits(HvLpIndex lp,
164 117
165static inline u64 HvCallCfg_getNumProcsInSharedPool(HvLpSharedPoolIndex sPI) 118static inline u64 HvCallCfg_getNumProcsInSharedPool(HvLpSharedPoolIndex sPI)
166{ 119{
167 u16 retVal = HvCall1(HvCallCfgGetNumProcsInSharedPool, sPI); 120 return (u16)HvCall1(HvCallCfgGetNumProcsInSharedPool, sPI);
168 return retVal;
169 121
170} 122}
171 123
172static inline HvLpIndex HvCallCfg_getHostingLpIndex(HvLpIndex lp) 124static inline HvLpIndex HvCallCfg_getHostingLpIndex(HvLpIndex lp)
173{ 125{
174 u64 retVal = HvCall1(HvCallCfgGetHostingLpIndex, lp); 126 return HvCall1(HvCallCfgGetHostingLpIndex, lp);
175 return retVal;
176} 127}
177 128
178#endif /* _HVCALLCFG_H */ 129#endif /* _HVCALLCFG_H */