1 | /* |
---|
2 | * Done by Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com> |
---|
3 | * The code is mostly taken from FreeBSD. |
---|
4 | * |
---|
5 | **************************************************************************** |
---|
6 | * |
---|
7 | * Redistribution and use in source and binary forms, with or without |
---|
8 | * modification, are permitted provided that the following conditions |
---|
9 | * are met: |
---|
10 | * 1. Redistributions of source code must retain the above copyright |
---|
11 | * notice, this list of conditions and the following disclaimer. |
---|
12 | * 2. Redistributions in binary form must reproduce the above copyright |
---|
13 | * notice, this list of conditions and the following disclaimer in the |
---|
14 | * documentation and/or other materials provided with the distribution. |
---|
15 | * |
---|
16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND |
---|
17 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
---|
18 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
---|
19 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE |
---|
20 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
---|
21 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
---|
22 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
---|
23 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
---|
24 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
---|
25 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
---|
26 | * SUCH DAMAGE. |
---|
27 | * |
---|
28 | */ |
---|
29 | |
---|
30 | #ifndef _PAL_H_ |
---|
31 | #define _PAL_H_ |
---|
32 | |
---|
33 | /* |
---|
34 | * Architected static calling convention procedures. |
---|
35 | */ |
---|
36 | #define PAL_CACHE_FLUSH 1 |
---|
37 | #define PAL_CACHE_INFO 2 |
---|
38 | #define PAL_CACHE_INIT 3 |
---|
39 | #define PAL_CACHE_SUMMARY 4 |
---|
40 | #define PAL_MEM_ATTRIB 5 |
---|
41 | #define PAL_PTCE_INFO 6 |
---|
42 | #define PAL_VM_INFO 7 |
---|
43 | #define PAL_VM_SUMMARY 8 |
---|
44 | #define PAL_BUS_GET_FEATURES 9 |
---|
45 | #define PAL_BUS_SET_FEATURES 10 |
---|
46 | #define PAL_DEBUG_INFO 11 |
---|
47 | #define PAL_FIXED_ADDR 12 |
---|
48 | #define PAL_FREQ_BASE 13 |
---|
49 | #define PAL_FREQ_RATIOS 14 |
---|
50 | #define PAL_PERF_MON_INFO 15 |
---|
51 | #define PAL_PLATFORM_ADDR 16 |
---|
52 | #define PAL_PROC_GET_FEATURE 17 |
---|
53 | #define PAL_PROC_SET_FEATURE 18 |
---|
54 | #define PAL_RSE_INFO 19 |
---|
55 | #define PAL_VERSION 20 |
---|
56 | #define PAL_MC_CLEAR_LOG 21 |
---|
57 | #define PAL_MC_DRAIN 22 |
---|
58 | #define PAL_MC_DYNAMIC_STATE 24 |
---|
59 | #define PAL_MC_ERROR_INFO 25 |
---|
60 | #define PAL_MC_EXPECTED 23 |
---|
61 | #define PAL_MC_REGISTER_MEM 27 |
---|
62 | #define PAL_MC_RESUME 26 |
---|
63 | #define PAL_HALT 28 |
---|
64 | #define PAL_HALT_LIGHT 29 |
---|
65 | #define PAL_COPY_INFO 30 |
---|
66 | #define PAL_CACHE_LINE_INIT 31 |
---|
67 | #define PAL_PMI_ENTRYPOINT 32 |
---|
68 | #define PAL_ENTER_IA_32_ENV 33 |
---|
69 | #define PAL_VM_PAGE_SIZE 34 |
---|
70 | #define PAL_MEM_FOR_TEST 37 |
---|
71 | #define PAL_CACHE_PROT_INFO 38 |
---|
72 | #define PAL_REGISTER_INFO 39 |
---|
73 | #define PAL_SHUTDOWN 40 |
---|
74 | #define PAL_PREFETCH_VISIBILITY 41 |
---|
75 | |
---|
76 | |
---|
77 | struct ia64_pal_result |
---|
78 | { |
---|
79 | int64_t pal_status; |
---|
80 | uint64_t pal_result[3]; |
---|
81 | }; |
---|
82 | |
---|
83 | extern struct ia64_pal_result |
---|
84 | ia64_call_pal_static(uint64_t proc, uint64_t arg1, |
---|
85 | uint64_t arg2, uint64_t arg3); |
---|
86 | |
---|
87 | #endif /* _PAL_H_ */ |
---|