aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/hvcall.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/include/asm/hvcall.h')
-rw-r--r--arch/powerpc/include/asm/hvcall.h23
1 files changed, 22 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/hvcall.h b/arch/powerpc/include/asm/hvcall.h
index 7a867065db79..0975e5c0bb19 100644
--- a/arch/powerpc/include/asm/hvcall.h
+++ b/arch/powerpc/include/asm/hvcall.h
@@ -267,7 +267,8 @@
267#define H_RANDOM 0x300 267#define H_RANDOM 0x300
268#define H_COP 0x304 268#define H_COP 0x304
269#define H_GET_MPP_X 0x314 269#define H_GET_MPP_X 0x314
270#define MAX_HCALL_OPCODE H_GET_MPP_X 270#define H_SET_MODE 0x31C
271#define MAX_HCALL_OPCODE H_SET_MODE
271 272
272#ifndef __ASSEMBLY__ 273#ifndef __ASSEMBLY__
273 274
@@ -355,6 +356,26 @@ struct hvcall_mpp_x_data {
355 356
356int h_get_mpp_x(struct hvcall_mpp_x_data *mpp_x_data); 357int h_get_mpp_x(struct hvcall_mpp_x_data *mpp_x_data);
357 358
359static inline unsigned int get_longbusy_msecs(int longbusy_rc)
360{
361 switch (longbusy_rc) {
362 case H_LONG_BUSY_ORDER_1_MSEC:
363 return 1;
364 case H_LONG_BUSY_ORDER_10_MSEC:
365 return 10;
366 case H_LONG_BUSY_ORDER_100_MSEC:
367 return 100;
368 case H_LONG_BUSY_ORDER_1_SEC:
369 return 1000;
370 case H_LONG_BUSY_ORDER_10_SEC:
371 return 10000;
372 case H_LONG_BUSY_ORDER_100_SEC:
373 return 100000;
374 default:
375 return 1;
376 }
377}
378
358#ifdef CONFIG_PPC_PSERIES 379#ifdef CONFIG_PPC_PSERIES
359extern int CMO_PrPSP; 380extern int CMO_PrPSP;
360extern int CMO_SecPSP; 381extern int CMO_SecPSP;