diff options
Diffstat (limited to 'arch/powerpc/include/asm')
-rw-r--r-- | arch/powerpc/include/asm/opal.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/opal.h b/arch/powerpc/include/asm/opal.h new file mode 100644 index 00000000000..ecdb283f8b7 --- /dev/null +++ b/arch/powerpc/include/asm/opal.h | |||
@@ -0,0 +1,50 @@ | |||
1 | /* | ||
2 | * PowerNV OPAL definitions. | ||
3 | * | ||
4 | * Copyright 2011 IBM Corp. | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or | ||
7 | * modify it under the terms of the GNU General Public License | ||
8 | * as published by the Free Software Foundation; either version | ||
9 | * 2 of the License, or (at your option) any later version. | ||
10 | */ | ||
11 | |||
12 | #ifndef __OPAL_H | ||
13 | #define __OPAL_H | ||
14 | |||
15 | /****** Takeover interface ********/ | ||
16 | |||
17 | /* PAPR H-Call used to querty the HAL existence and/or instanciate | ||
18 | * it from within pHyp (tech preview only). | ||
19 | * | ||
20 | * This is exclusively used in prom_init.c | ||
21 | */ | ||
22 | |||
23 | #ifndef __ASSEMBLY__ | ||
24 | |||
25 | struct opal_takeover_args { | ||
26 | u64 k_image; /* r4 */ | ||
27 | u64 k_size; /* r5 */ | ||
28 | u64 k_entry; /* r6 */ | ||
29 | u64 k_entry2; /* r7 */ | ||
30 | u64 hal_addr; /* r8 */ | ||
31 | u64 rd_image; /* r9 */ | ||
32 | u64 rd_size; /* r10 */ | ||
33 | u64 rd_loc; /* r11 */ | ||
34 | }; | ||
35 | |||
36 | extern long opal_query_takeover(u64 *hal_size, u64 *hal_align); | ||
37 | |||
38 | extern long opal_do_takeover(struct opal_takeover_args *args); | ||
39 | |||
40 | extern int opal_enter_rtas(struct rtas_args *args, | ||
41 | unsigned long data, | ||
42 | unsigned long entry); | ||
43 | |||
44 | |||
45 | #endif /* __ASSEMBLY__ */ | ||
46 | |||
47 | /****** OPAL APIs ******/ | ||
48 | |||
49 | |||
50 | #endif /* __OPAL_H */ | ||