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.h129
1 files changed, 0 insertions, 129 deletions
diff --git a/include/asm-ppc64/iSeries/HvCallCfg.h b/include/asm-ppc64/iSeries/HvCallCfg.h
deleted file mode 100644
index ddf2bb59d73c..000000000000
--- a/include/asm-ppc64/iSeries/HvCallCfg.h
+++ /dev/null
@@ -1,129 +0,0 @@
1/*
2 * HvCallCfg.h
3 * Copyright (C) 2001 Mike Corrigan IBM Corporation
4 *
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
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
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
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 */
19/*
20 * This file contains the "hypervisor call" interface which is used to
21 * drive the hypervisor from the OS.
22 */
23#ifndef _HVCALLCFG_H
24#define _HVCALLCFG_H
25
26#include <asm/iSeries/HvCallSc.h>
27#include <asm/iSeries/HvTypes.h>
28
29enum HvCallCfg_ReqQual {
30 HvCallCfg_Cur = 0,
31 HvCallCfg_Init = 1,
32 HvCallCfg_Max = 2,
33 HvCallCfg_Min = 3
34};
35
36#define HvCallCfgGetLps HvCallCfg + 0
37#define HvCallCfgGetActiveLpMap HvCallCfg + 1
38#define HvCallCfgGetLpVrmIndex HvCallCfg + 2
39#define HvCallCfgGetLpMinSupportedPlicVrmIndex HvCallCfg + 3
40#define HvCallCfgGetLpMinCompatablePlicVrmIndex HvCallCfg + 4
41#define HvCallCfgGetLpVrmName HvCallCfg + 5
42#define HvCallCfgGetSystemPhysicalProcessors HvCallCfg + 6
43#define HvCallCfgGetPhysicalProcessors HvCallCfg + 7
44#define HvCallCfgGetSystemMsChunks HvCallCfg + 8
45#define HvCallCfgGetMsChunks HvCallCfg + 9
46#define HvCallCfgGetInteractivePercentage HvCallCfg + 10
47#define HvCallCfgIsBusDedicated HvCallCfg + 11
48#define HvCallCfgGetBusOwner HvCallCfg + 12
49#define HvCallCfgGetBusAllocation HvCallCfg + 13
50#define HvCallCfgGetBusUnitOwner HvCallCfg + 14
51#define HvCallCfgGetBusUnitAllocation HvCallCfg + 15
52#define HvCallCfgGetVirtualBusPool HvCallCfg + 16
53#define HvCallCfgGetBusUnitInterruptProc HvCallCfg + 17
54#define HvCallCfgGetConfiguredBusUnitsForIntProc HvCallCfg + 18
55#define HvCallCfgGetRioSanBusPool HvCallCfg + 19
56#define HvCallCfgGetSharedPoolIndex HvCallCfg + 20
57#define HvCallCfgGetSharedProcUnits HvCallCfg + 21
58#define HvCallCfgGetNumProcsInSharedPool HvCallCfg + 22
59#define HvCallCfgRouter23 HvCallCfg + 23
60#define HvCallCfgRouter24 HvCallCfg + 24
61#define HvCallCfgRouter25 HvCallCfg + 25
62#define HvCallCfgRouter26 HvCallCfg + 26
63#define HvCallCfgRouter27 HvCallCfg + 27
64#define HvCallCfgGetMinRuntimeMsChunks HvCallCfg + 28
65#define HvCallCfgSetMinRuntimeMsChunks HvCallCfg + 29
66#define HvCallCfgGetVirtualLanIndexMap HvCallCfg + 30
67#define HvCallCfgGetLpExecutionMode HvCallCfg + 31
68#define HvCallCfgGetHostingLpIndex HvCallCfg + 32
69
70static inline HvLpIndex HvCallCfg_getBusOwner(u64 busIndex)
71{
72 return HvCall1(HvCallCfgGetBusOwner, busIndex);
73}
74
75static inline HvLpVirtualLanIndexMap HvCallCfg_getVirtualLanIndexMap(
76 HvLpIndex lp)
77{
78 /*
79 * This is a new function in V5R1 so calls to this on older
80 * hypervisors will return -1
81 */
82 u64 retVal = HvCall1(HvCallCfgGetVirtualLanIndexMap, lp);
83 if (retVal == -1)
84 retVal = 0;
85 return retVal;
86}
87
88static inline u64 HvCallCfg_getMsChunks(HvLpIndex lp,
89 enum HvCallCfg_ReqQual qual)
90{
91 return HvCall2(HvCallCfgGetMsChunks, lp, qual);
92}
93
94static inline u64 HvCallCfg_getSystemPhysicalProcessors(void)
95{
96 return HvCall0(HvCallCfgGetSystemPhysicalProcessors);
97}
98
99static inline u64 HvCallCfg_getPhysicalProcessors(HvLpIndex lp,
100 enum HvCallCfg_ReqQual qual)
101{
102 return HvCall2(HvCallCfgGetPhysicalProcessors, lp, qual);
103}
104
105static inline HvLpSharedPoolIndex HvCallCfg_getSharedPoolIndex(HvLpIndex lp)
106{
107 return HvCall1(HvCallCfgGetSharedPoolIndex, lp);
108
109}
110
111static inline u64 HvCallCfg_getSharedProcUnits(HvLpIndex lp,
112 enum HvCallCfg_ReqQual qual)
113{
114 return HvCall2(HvCallCfgGetSharedProcUnits, lp, qual);
115
116}
117
118static inline u64 HvCallCfg_getNumProcsInSharedPool(HvLpSharedPoolIndex sPI)
119{
120 return (u16)HvCall1(HvCallCfgGetNumProcsInSharedPool, sPI);
121
122}
123
124static inline HvLpIndex HvCallCfg_getHostingLpIndex(HvLpIndex lp)
125{
126 return HvCall1(HvCallCfgGetHostingLpIndex, lp);
127}
128
129#endif /* _HVCALLCFG_H */