hvcall.h (ba67cf5cf2ce10ad86a212b70f8c7c75d93a5016) hvcall.h (9ee820fa005254dfc816330f6654f14dcb2beee1)
1#ifndef _ASM_POWERPC_HVCALL_H
2#define _ASM_POWERPC_HVCALL_H
3#ifdef __KERNEL__
4
5#define HVSC .long 0x44000022
6
7#define H_SUCCESS 0
8#define H_BUSY 1 /* Hardware busy -- retry later */

--- 88 unchanged lines hidden (view full) ---

97#define H_PAGE_UNUSED ((1UL<<(63-29)) | (1UL<<(63-30)))
98#define H_PAGE_SET_UNUSED (H_PAGE_STATE_CHANGE | H_PAGE_UNUSED)
99#define H_PAGE_SET_LOANED (H_PAGE_SET_UNUSED | (1UL<<(63-31)))
100#define H_PAGE_SET_ACTIVE H_PAGE_STATE_CHANGE
101#define H_AVPN (1UL<<(63-32)) /* An avpn is provided as a sanity test */
102#define H_ANDCOND (1UL<<(63-33))
103#define H_ICACHE_INVALIDATE (1UL<<(63-40)) /* icbi, etc. (ignored for IO pages) */
104#define H_ICACHE_SYNCHRONIZE (1UL<<(63-41)) /* dcbst, icbi, etc (ignored for IO pages */
1#ifndef _ASM_POWERPC_HVCALL_H
2#define _ASM_POWERPC_HVCALL_H
3#ifdef __KERNEL__
4
5#define HVSC .long 0x44000022
6
7#define H_SUCCESS 0
8#define H_BUSY 1 /* Hardware busy -- retry later */

--- 88 unchanged lines hidden (view full) ---

97#define H_PAGE_UNUSED ((1UL<<(63-29)) | (1UL<<(63-30)))
98#define H_PAGE_SET_UNUSED (H_PAGE_STATE_CHANGE | H_PAGE_UNUSED)
99#define H_PAGE_SET_LOANED (H_PAGE_SET_UNUSED | (1UL<<(63-31)))
100#define H_PAGE_SET_ACTIVE H_PAGE_STATE_CHANGE
101#define H_AVPN (1UL<<(63-32)) /* An avpn is provided as a sanity test */
102#define H_ANDCOND (1UL<<(63-33))
103#define H_ICACHE_INVALIDATE (1UL<<(63-40)) /* icbi, etc. (ignored for IO pages) */
104#define H_ICACHE_SYNCHRONIZE (1UL<<(63-41)) /* dcbst, icbi, etc (ignored for IO pages */
105#define H_COALESCE_CAND (1UL<<(63-42)) /* page is a good candidate for coalescing */
105#define H_ZERO_PAGE (1UL<<(63-48)) /* zero the page before mapping (ignored for IO pages) */
106#define H_COPY_PAGE (1UL<<(63-49))
107#define H_N (1UL<<(63-61))
108#define H_PP1 (1UL<<(63-62))
109#define H_PP2 (1UL<<(63-63))
110
111/* VASI States */
112#define H_VASI_INVALID 0

--- 116 unchanged lines hidden (view full) ---

229#define H_JOIN 0x298
230#define H_VASI_STATE 0x2A4
231#define H_ENABLE_CRQ 0x2B0
232#define H_GET_EM_PARMS 0x2B8
233#define H_SET_MPP 0x2D0
234#define H_GET_MPP 0x2D4
235#define H_HOME_NODE_ASSOCIATIVITY 0x2EC
236#define H_BEST_ENERGY 0x2F4
106#define H_ZERO_PAGE (1UL<<(63-48)) /* zero the page before mapping (ignored for IO pages) */
107#define H_COPY_PAGE (1UL<<(63-49))
108#define H_N (1UL<<(63-61))
109#define H_PP1 (1UL<<(63-62))
110#define H_PP2 (1UL<<(63-63))
111
112/* VASI States */
113#define H_VASI_INVALID 0

--- 116 unchanged lines hidden (view full) ---

230#define H_JOIN 0x298
231#define H_VASI_STATE 0x2A4
232#define H_ENABLE_CRQ 0x2B0
233#define H_GET_EM_PARMS 0x2B8
234#define H_SET_MPP 0x2D0
235#define H_GET_MPP 0x2D4
236#define H_HOME_NODE_ASSOCIATIVITY 0x2EC
237#define H_BEST_ENERGY 0x2F4
238#define H_GET_MPP_X 0x314
237#define MAX_HCALL_OPCODE H_BEST_ENERGY
238
239#ifndef __ASSEMBLY__
240
241/**
242 * plpar_hcall_norets: - Make a pseries hypervisor call with no return arguments
243 * @opcode: The hypervisor call to make.
244 *

--- 62 unchanged lines hidden (view full) ---

307 unsigned long unallocated_entitlement; /* value in bytes */
308 unsigned long pool_size;
309 signed long loan_request;
310 unsigned long backing_mem;
311};
312
313int h_get_mpp(struct hvcall_mpp_data *);
314
239#define MAX_HCALL_OPCODE H_BEST_ENERGY
240
241#ifndef __ASSEMBLY__
242
243/**
244 * plpar_hcall_norets: - Make a pseries hypervisor call with no return arguments
245 * @opcode: The hypervisor call to make.
246 *

--- 62 unchanged lines hidden (view full) ---

309 unsigned long unallocated_entitlement; /* value in bytes */
310 unsigned long pool_size;
311 signed long loan_request;
312 unsigned long backing_mem;
313};
314
315int h_get_mpp(struct hvcall_mpp_data *);
316
317struct hvcall_mpp_x_data {
318 unsigned long coalesced_bytes;
319 unsigned long pool_coalesced_bytes;
320 unsigned long pool_purr_cycles;
321 unsigned long pool_spurr_cycles;
322 unsigned long reserved[3];
323};
324
325int h_get_mpp_x(struct hvcall_mpp_x_data *mpp_x_data);
326
315#ifdef CONFIG_PPC_PSERIES
316extern int CMO_PrPSP;
317extern int CMO_SecPSP;
318extern unsigned long CMO_PageSize;
319
320static inline int cmo_get_primary_psp(void)
321{
322 return CMO_PrPSP;

--- 16 unchanged lines hidden ---
327#ifdef CONFIG_PPC_PSERIES
328extern int CMO_PrPSP;
329extern int CMO_SecPSP;
330extern unsigned long CMO_PageSize;
331
332static inline int cmo_get_primary_psp(void)
333{
334 return CMO_PrPSP;

--- 16 unchanged lines hidden ---