* updated kollision (21.12.1 -> 21.12.2), untested
[t2-trunk.git] / architecture / powerpc64 / package / linux / 0180-lv1call-add-undocumented-spe-hvcalls.patch
blob3775ff5e98bfeed7bd62c960146d111759755b91
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: architecture/powerpc64/package/.../0180-lv1call-add-undocumented-spe-hvcalls.patch
5 # Copyright (C) 2019 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 --- a/arch/powerpc/include/asm/lv1call.h
18 +++ b/arch/powerpc/include/asm/lv1call.h
19 @@ -41,6 +41,7 @@
20 #define LV1_5_IN_0_OUT_ARG_DECL LV1_5_IN_ARG_DECL
21 #define LV1_6_IN_0_OUT_ARG_DECL LV1_6_IN_ARG_DECL
22 #define LV1_7_IN_0_OUT_ARG_DECL LV1_7_IN_ARG_DECL
23 +#define LV1_8_IN_0_OUT_ARG_DECL LV1_8_IN_ARG_DECL
25 #define LV1_0_IN_1_OUT_ARG_DECL LV1_1_OUT_ARG_DECL
26 #define LV1_1_IN_1_OUT_ARG_DECL LV1_1_IN_ARG_DECL, LV1_1_OUT_ARG_DECL
27 @@ -131,6 +132,7 @@
28 #define LV1_5_IN_0_OUT_ARGS LV1_5_IN_ARGS
29 #define LV1_6_IN_0_OUT_ARGS LV1_6_IN_ARGS
30 #define LV1_7_IN_0_OUT_ARGS LV1_7_IN_ARGS
31 +#define LV1_8_IN_0_OUT_ARGS LV1_8_IN_ARGS
33 #define LV1_0_IN_1_OUT_ARGS LV1_1_OUT_ARGS
34 #define LV1_1_IN_1_OUT_ARGS LV1_1_IN_ARGS, LV1_1_OUT_ARGS
35 @@ -241,6 +243,7 @@ LV1_CALL(shutdown_logical_partition, 1, 0, 44 )
36 LV1_CALL(destruct_logical_spe, 1, 0, 54 )
37 LV1_CALL(construct_logical_spe, 7, 6, 57 )
38 LV1_CALL(set_spe_interrupt_mask, 3, 0, 61 )
39 +LV1_CALL(undocumented_function_62, 5, 0, 62 )
40 LV1_CALL(set_spe_transition_notifier, 3, 0, 64 )
41 LV1_CALL(disable_logical_spe, 2, 0, 65 )
42 LV1_CALL(clear_spe_interrupt_status, 4, 0, 66 )
43 @@ -257,6 +260,7 @@ LV1_CALL(write_repository_node, 7, 0, 92 )
44 LV1_CALL(delete_repository_node, 5, 0, 93 )
45 LV1_CALL(read_htab_entries, 2, 5, 95 )
46 LV1_CALL(set_dabr, 2, 0, 96 )
47 +LV1_CALL(undocumented_function_99, 2, 0, 99 )
48 LV1_CALL(get_total_execution_time, 2, 1, 103 )
49 LV1_CALL(undocumented_function_114, 3, 1, 114 )
50 LV1_CALL(undocumented_function_115, 1, 0, 115 )
51 @@ -267,12 +271,15 @@ LV1_CALL(destruct_io_irq_outlet, 1, 0, 121 )
52 LV1_CALL(map_htab, 1, 1, 122 )
53 LV1_CALL(unmap_htab, 1, 0, 123 )
54 LV1_CALL(get_version_info, 0, 2, 127 )
55 +LV1_CALL(undocumented_function_138, 2, 0, 138 )
56 LV1_CALL(insert_htab_entry, 6, 3, 158 )
57 LV1_CALL(read_virtual_uart, 3, 1, 162 )
58 LV1_CALL(write_virtual_uart, 3, 1, 163 )
59 LV1_CALL(set_virtual_uart_param, 3, 0, 164 )
60 LV1_CALL(get_virtual_uart_param, 2, 1, 165 )
61 LV1_CALL(configure_virtual_uart_irq, 1, 1, 166 )
62 +LV1_CALL(undocumented_function_167, 2, 1, 167 )
63 +LV1_CALL(undocumented_function_168, 3, 0, 168 )
64 LV1_CALL(open_device, 3, 0, 170 )
65 LV1_CALL(close_device, 2, 0, 171 )
66 LV1_CALL(map_device_mmio_region, 5, 1, 172 )
67 @@ -293,8 +300,11 @@ LV1_CALL(net_control, 6, 2, 194 )
68 LV1_CALL(connect_interrupt_event_receive_port, 4, 0, 197 )
69 LV1_CALL(disconnect_interrupt_event_receive_port, 4, 0, 198 )
70 LV1_CALL(get_spe_all_interrupt_statuses, 1, 1, 199 )
71 +LV1_CALL(undocumented_function_200, 1, 0, 200 )
72 +LV1_CALL(undocumented_function_201, 1, 0, 201 )
73 LV1_CALL(deconfigure_virtual_uart_irq, 0, 0, 202 )
74 LV1_CALL(enable_logical_spe, 2, 0, 207 )
75 +LV1_CALL(undocumented_function_209, 8, 0, 209 )
76 LV1_CALL(gpu_open, 1, 0, 210 )
77 LV1_CALL(gpu_close, 0, 0, 211 )
78 LV1_CALL(gpu_device_map, 1, 2, 212 )
79 --- a/arch/powerpc/platforms/ps3/hvcall.S
80 +++ b/arch/powerpc/platforms/ps3/hvcall.S
81 @@ -33,6 +33,7 @@ _GLOBAL(_##API_NAME) \
82 #define LV1_5_IN_0_OUT LV1_N_IN_0_OUT
83 #define LV1_6_IN_0_OUT LV1_N_IN_0_OUT
84 #define LV1_7_IN_0_OUT LV1_N_IN_0_OUT
85 +#define LV1_8_IN_0_OUT LV1_N_IN_0_OUT
87 #define LV1_0_IN_1_OUT(API_NAME, API_NUMBER) \
88 _GLOBAL(_##API_NAME) \