diff options
Diffstat (limited to 'include/asm-ppc64/iSeries/HvCallCfg.h')
-rw-r--r-- | include/asm-ppc64/iSeries/HvCallCfg.h | 53 |
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 | ||
70 | static inline HvLpIndex HvCallCfg_getLps(void) | ||
71 | { | ||
72 | return HvCall0(HvCallCfgGetLps); | ||
73 | } | ||
74 | |||
75 | static inline int HvCallCfg_isBusDedicated(u64 busIndex) | ||
76 | { | ||
77 | return HvCall1(HvCallCfgIsBusDedicated, busIndex); | ||
78 | } | ||
79 | |||
80 | static inline HvLpIndex HvCallCfg_getBusOwner(u64 busIndex) | 70 | static inline HvLpIndex HvCallCfg_getBusOwner(u64 busIndex) |
81 | { | 71 | { |
82 | return HvCall1(HvCallCfgGetBusOwner, busIndex); | 72 | return HvCall1(HvCallCfgGetBusOwner, busIndex); |
83 | } | 73 | } |
84 | 74 | ||
85 | static inline HvLpIndexMap HvCallCfg_getBusAllocation(u64 busIndex) | ||
86 | { | ||
87 | return HvCall1(HvCallCfgGetBusAllocation, busIndex); | ||
88 | } | ||
89 | |||
90 | static inline HvLpIndexMap HvCallCfg_getActiveLpMap(void) | ||
91 | { | ||
92 | return HvCall0(HvCallCfgGetActiveLpMap); | ||
93 | } | ||
94 | |||
95 | static inline HvLpVirtualLanIndexMap HvCallCfg_getVirtualLanIndexMap( | 75 | static 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 | ||
108 | static inline u64 HvCallCfg_getSystemMsChunks(void) | ||
109 | { | ||
110 | return HvCall0(HvCallCfgGetSystemMsChunks); | ||
111 | } | ||
112 | |||
113 | static inline u64 HvCallCfg_getMsChunks(HvLpIndex lp, | 88 | static 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 | ||
119 | static 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 | |||
128 | static inline u64 HvCallCfg_setMinRuntimeMsChunks(u64 chunks) | ||
129 | { | ||
130 | return HvCall1(HvCallCfgSetMinRuntimeMsChunks, chunks); | ||
131 | } | ||
132 | |||
133 | static inline u64 HvCallCfg_getSystemPhysicalProcessors(void) | 94 | static 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 | ||
144 | static inline u64 HvCallCfg_getConfiguredBusUnitsForInterruptProc(HvLpIndex lp, | ||
145 | u16 hvLogicalProcIndex) | ||
146 | { | ||
147 | return HvCall2(HvCallCfgGetConfiguredBusUnitsForIntProc, lp, | ||
148 | hvLogicalProcIndex); | ||
149 | |||
150 | } | ||
151 | |||
152 | static inline HvLpSharedPoolIndex HvCallCfg_getSharedPoolIndex(HvLpIndex lp) | 105 | static 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 | ||
165 | static inline u64 HvCallCfg_getNumProcsInSharedPool(HvLpSharedPoolIndex sPI) | 118 | static 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 | ||
172 | static inline HvLpIndex HvCallCfg_getHostingLpIndex(HvLpIndex lp) | 124 | static 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 */ |