aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/asm-powerpc/hvcall.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/include/asm-powerpc/hvcall.h b/include/asm-powerpc/hvcall.h
index bf6cd7cb996c..46e76456cbbd 100644
--- a/include/asm-powerpc/hvcall.h
+++ b/include/asm-powerpc/hvcall.h
@@ -210,7 +210,9 @@
210#define H_JOIN 0x298 210#define H_JOIN 0x298
211#define H_VASI_STATE 0x2A4 211#define H_VASI_STATE 0x2A4
212#define H_ENABLE_CRQ 0x2B0 212#define H_ENABLE_CRQ 0x2B0
213#define MAX_HCALL_OPCODE H_ENABLE_CRQ 213#define H_SET_MPP 0x2D0
214#define H_GET_MPP 0x2D4
215#define MAX_HCALL_OPCODE H_GET_MPP
214 216
215#ifndef __ASSEMBLY__ 217#ifndef __ASSEMBLY__
216 218
@@ -270,6 +272,20 @@ struct hcall_stats {
270}; 272};
271#define HCALL_STAT_ARRAY_SIZE ((MAX_HCALL_OPCODE >> 2) + 1) 273#define HCALL_STAT_ARRAY_SIZE ((MAX_HCALL_OPCODE >> 2) + 1)
272 274
275struct hvcall_mpp_data {
276 unsigned long entitled_mem;
277 unsigned long mapped_mem;
278 unsigned short group_num;
279 unsigned short pool_num;
280 unsigned char mem_weight;
281 unsigned char unallocated_mem_weight;
282 unsigned long unallocated_entitlement; /* value in bytes */
283 unsigned long pool_size;
284 signed long loan_request;
285 unsigned long backing_mem;
286};
287
288int h_get_mpp(struct hvcall_mpp_data *);
273#endif /* __ASSEMBLY__ */ 289#endif /* __ASSEMBLY__ */
274#endif /* __KERNEL__ */ 290#endif /* __KERNEL__ */
275#endif /* _ASM_POWERPC_HVCALL_H */ 291#endif /* _ASM_POWERPC_HVCALL_H */