lv1call.h 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349
  1. /*
  2. * PS3 hvcall interface.
  3. *
  4. * Copyright (C) 2006 Sony Computer Entertainment Inc.
  5. * Copyright 2006 Sony Corp.
  6. * Copyright 2003, 2004 (c) MontaVista Software, Inc.
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation; version 2 of the License.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  20. */
  21. #if !defined(_ASM_POWERPC_LV1CALL_H)
  22. #define _ASM_POWERPC_LV1CALL_H
  23. #if !defined(__ASSEMBLY__)
  24. #include <linux/types.h>
  25. #include <linux/export.h>
  26. /* lv1 call declaration macros */
  27. #define LV1_1_IN_ARG_DECL u64 in_1
  28. #define LV1_2_IN_ARG_DECL LV1_1_IN_ARG_DECL, u64 in_2
  29. #define LV1_3_IN_ARG_DECL LV1_2_IN_ARG_DECL, u64 in_3
  30. #define LV1_4_IN_ARG_DECL LV1_3_IN_ARG_DECL, u64 in_4
  31. #define LV1_5_IN_ARG_DECL LV1_4_IN_ARG_DECL, u64 in_5
  32. #define LV1_6_IN_ARG_DECL LV1_5_IN_ARG_DECL, u64 in_6
  33. #define LV1_7_IN_ARG_DECL LV1_6_IN_ARG_DECL, u64 in_7
  34. #define LV1_8_IN_ARG_DECL LV1_7_IN_ARG_DECL, u64 in_8
  35. #define LV1_1_OUT_ARG_DECL u64 *out_1
  36. #define LV1_2_OUT_ARG_DECL LV1_1_OUT_ARG_DECL, u64 *out_2
  37. #define LV1_3_OUT_ARG_DECL LV1_2_OUT_ARG_DECL, u64 *out_3
  38. #define LV1_4_OUT_ARG_DECL LV1_3_OUT_ARG_DECL, u64 *out_4
  39. #define LV1_5_OUT_ARG_DECL LV1_4_OUT_ARG_DECL, u64 *out_5
  40. #define LV1_6_OUT_ARG_DECL LV1_5_OUT_ARG_DECL, u64 *out_6
  41. #define LV1_7_OUT_ARG_DECL LV1_6_OUT_ARG_DECL, u64 *out_7
  42. #define LV1_0_IN_0_OUT_ARG_DECL void
  43. #define LV1_1_IN_0_OUT_ARG_DECL LV1_1_IN_ARG_DECL
  44. #define LV1_2_IN_0_OUT_ARG_DECL LV1_2_IN_ARG_DECL
  45. #define LV1_3_IN_0_OUT_ARG_DECL LV1_3_IN_ARG_DECL
  46. #define LV1_4_IN_0_OUT_ARG_DECL LV1_4_IN_ARG_DECL
  47. #define LV1_5_IN_0_OUT_ARG_DECL LV1_5_IN_ARG_DECL
  48. #define LV1_6_IN_0_OUT_ARG_DECL LV1_6_IN_ARG_DECL
  49. #define LV1_7_IN_0_OUT_ARG_DECL LV1_7_IN_ARG_DECL
  50. #define LV1_0_IN_1_OUT_ARG_DECL LV1_1_OUT_ARG_DECL
  51. #define LV1_1_IN_1_OUT_ARG_DECL LV1_1_IN_ARG_DECL, LV1_1_OUT_ARG_DECL
  52. #define LV1_2_IN_1_OUT_ARG_DECL LV1_2_IN_ARG_DECL, LV1_1_OUT_ARG_DECL
  53. #define LV1_3_IN_1_OUT_ARG_DECL LV1_3_IN_ARG_DECL, LV1_1_OUT_ARG_DECL
  54. #define LV1_4_IN_1_OUT_ARG_DECL LV1_4_IN_ARG_DECL, LV1_1_OUT_ARG_DECL
  55. #define LV1_5_IN_1_OUT_ARG_DECL LV1_5_IN_ARG_DECL, LV1_1_OUT_ARG_DECL
  56. #define LV1_6_IN_1_OUT_ARG_DECL LV1_6_IN_ARG_DECL, LV1_1_OUT_ARG_DECL
  57. #define LV1_7_IN_1_OUT_ARG_DECL LV1_7_IN_ARG_DECL, LV1_1_OUT_ARG_DECL
  58. #define LV1_8_IN_1_OUT_ARG_DECL LV1_8_IN_ARG_DECL, LV1_1_OUT_ARG_DECL
  59. #define LV1_0_IN_2_OUT_ARG_DECL LV1_2_OUT_ARG_DECL
  60. #define LV1_1_IN_2_OUT_ARG_DECL LV1_1_IN_ARG_DECL, LV1_2_OUT_ARG_DECL
  61. #define LV1_2_IN_2_OUT_ARG_DECL LV1_2_IN_ARG_DECL, LV1_2_OUT_ARG_DECL
  62. #define LV1_3_IN_2_OUT_ARG_DECL LV1_3_IN_ARG_DECL, LV1_2_OUT_ARG_DECL
  63. #define LV1_4_IN_2_OUT_ARG_DECL LV1_4_IN_ARG_DECL, LV1_2_OUT_ARG_DECL
  64. #define LV1_5_IN_2_OUT_ARG_DECL LV1_5_IN_ARG_DECL, LV1_2_OUT_ARG_DECL
  65. #define LV1_6_IN_2_OUT_ARG_DECL LV1_6_IN_ARG_DECL, LV1_2_OUT_ARG_DECL
  66. #define LV1_7_IN_2_OUT_ARG_DECL LV1_7_IN_ARG_DECL, LV1_2_OUT_ARG_DECL
  67. #define LV1_0_IN_3_OUT_ARG_DECL LV1_3_OUT_ARG_DECL
  68. #define LV1_1_IN_3_OUT_ARG_DECL LV1_1_IN_ARG_DECL, LV1_3_OUT_ARG_DECL
  69. #define LV1_2_IN_3_OUT_ARG_DECL LV1_2_IN_ARG_DECL, LV1_3_OUT_ARG_DECL
  70. #define LV1_3_IN_3_OUT_ARG_DECL LV1_3_IN_ARG_DECL, LV1_3_OUT_ARG_DECL
  71. #define LV1_4_IN_3_OUT_ARG_DECL LV1_4_IN_ARG_DECL, LV1_3_OUT_ARG_DECL
  72. #define LV1_5_IN_3_OUT_ARG_DECL LV1_5_IN_ARG_DECL, LV1_3_OUT_ARG_DECL
  73. #define LV1_6_IN_3_OUT_ARG_DECL LV1_6_IN_ARG_DECL, LV1_3_OUT_ARG_DECL
  74. #define LV1_7_IN_3_OUT_ARG_DECL LV1_7_IN_ARG_DECL, LV1_3_OUT_ARG_DECL
  75. #define LV1_0_IN_4_OUT_ARG_DECL LV1_4_OUT_ARG_DECL
  76. #define LV1_1_IN_4_OUT_ARG_DECL LV1_1_IN_ARG_DECL, LV1_4_OUT_ARG_DECL
  77. #define LV1_2_IN_4_OUT_ARG_DECL LV1_2_IN_ARG_DECL, LV1_4_OUT_ARG_DECL
  78. #define LV1_3_IN_4_OUT_ARG_DECL LV1_3_IN_ARG_DECL, LV1_4_OUT_ARG_DECL
  79. #define LV1_4_IN_4_OUT_ARG_DECL LV1_4_IN_ARG_DECL, LV1_4_OUT_ARG_DECL
  80. #define LV1_5_IN_4_OUT_ARG_DECL LV1_5_IN_ARG_DECL, LV1_4_OUT_ARG_DECL
  81. #define LV1_6_IN_4_OUT_ARG_DECL LV1_6_IN_ARG_DECL, LV1_4_OUT_ARG_DECL
  82. #define LV1_7_IN_4_OUT_ARG_DECL LV1_7_IN_ARG_DECL, LV1_4_OUT_ARG_DECL
  83. #define LV1_0_IN_5_OUT_ARG_DECL LV1_5_OUT_ARG_DECL
  84. #define LV1_1_IN_5_OUT_ARG_DECL LV1_1_IN_ARG_DECL, LV1_5_OUT_ARG_DECL
  85. #define LV1_2_IN_5_OUT_ARG_DECL LV1_2_IN_ARG_DECL, LV1_5_OUT_ARG_DECL
  86. #define LV1_3_IN_5_OUT_ARG_DECL LV1_3_IN_ARG_DECL, LV1_5_OUT_ARG_DECL
  87. #define LV1_4_IN_5_OUT_ARG_DECL LV1_4_IN_ARG_DECL, LV1_5_OUT_ARG_DECL
  88. #define LV1_5_IN_5_OUT_ARG_DECL LV1_5_IN_ARG_DECL, LV1_5_OUT_ARG_DECL
  89. #define LV1_6_IN_5_OUT_ARG_DECL LV1_6_IN_ARG_DECL, LV1_5_OUT_ARG_DECL
  90. #define LV1_7_IN_5_OUT_ARG_DECL LV1_7_IN_ARG_DECL, LV1_5_OUT_ARG_DECL
  91. #define LV1_0_IN_6_OUT_ARG_DECL LV1_6_OUT_ARG_DECL
  92. #define LV1_1_IN_6_OUT_ARG_DECL LV1_1_IN_ARG_DECL, LV1_6_OUT_ARG_DECL
  93. #define LV1_2_IN_6_OUT_ARG_DECL LV1_2_IN_ARG_DECL, LV1_6_OUT_ARG_DECL
  94. #define LV1_3_IN_6_OUT_ARG_DECL LV1_3_IN_ARG_DECL, LV1_6_OUT_ARG_DECL
  95. #define LV1_4_IN_6_OUT_ARG_DECL LV1_4_IN_ARG_DECL, LV1_6_OUT_ARG_DECL
  96. #define LV1_5_IN_6_OUT_ARG_DECL LV1_5_IN_ARG_DECL, LV1_6_OUT_ARG_DECL
  97. #define LV1_6_IN_6_OUT_ARG_DECL LV1_6_IN_ARG_DECL, LV1_6_OUT_ARG_DECL
  98. #define LV1_7_IN_6_OUT_ARG_DECL LV1_7_IN_ARG_DECL, LV1_6_OUT_ARG_DECL
  99. #define LV1_0_IN_7_OUT_ARG_DECL LV1_7_OUT_ARG_DECL
  100. #define LV1_1_IN_7_OUT_ARG_DECL LV1_1_IN_ARG_DECL, LV1_7_OUT_ARG_DECL
  101. #define LV1_2_IN_7_OUT_ARG_DECL LV1_2_IN_ARG_DECL, LV1_7_OUT_ARG_DECL
  102. #define LV1_3_IN_7_OUT_ARG_DECL LV1_3_IN_ARG_DECL, LV1_7_OUT_ARG_DECL
  103. #define LV1_4_IN_7_OUT_ARG_DECL LV1_4_IN_ARG_DECL, LV1_7_OUT_ARG_DECL
  104. #define LV1_5_IN_7_OUT_ARG_DECL LV1_5_IN_ARG_DECL, LV1_7_OUT_ARG_DECL
  105. #define LV1_6_IN_7_OUT_ARG_DECL LV1_6_IN_ARG_DECL, LV1_7_OUT_ARG_DECL
  106. #define LV1_7_IN_7_OUT_ARG_DECL LV1_7_IN_ARG_DECL, LV1_7_OUT_ARG_DECL
  107. #define LV1_1_IN_ARGS in_1
  108. #define LV1_2_IN_ARGS LV1_1_IN_ARGS, in_2
  109. #define LV1_3_IN_ARGS LV1_2_IN_ARGS, in_3
  110. #define LV1_4_IN_ARGS LV1_3_IN_ARGS, in_4
  111. #define LV1_5_IN_ARGS LV1_4_IN_ARGS, in_5
  112. #define LV1_6_IN_ARGS LV1_5_IN_ARGS, in_6
  113. #define LV1_7_IN_ARGS LV1_6_IN_ARGS, in_7
  114. #define LV1_8_IN_ARGS LV1_7_IN_ARGS, in_8
  115. #define LV1_1_OUT_ARGS out_1
  116. #define LV1_2_OUT_ARGS LV1_1_OUT_ARGS, out_2
  117. #define LV1_3_OUT_ARGS LV1_2_OUT_ARGS, out_3
  118. #define LV1_4_OUT_ARGS LV1_3_OUT_ARGS, out_4
  119. #define LV1_5_OUT_ARGS LV1_4_OUT_ARGS, out_5
  120. #define LV1_6_OUT_ARGS LV1_5_OUT_ARGS, out_6
  121. #define LV1_7_OUT_ARGS LV1_6_OUT_ARGS, out_7
  122. #define LV1_0_IN_0_OUT_ARGS
  123. #define LV1_1_IN_0_OUT_ARGS LV1_1_IN_ARGS
  124. #define LV1_2_IN_0_OUT_ARGS LV1_2_IN_ARGS
  125. #define LV1_3_IN_0_OUT_ARGS LV1_3_IN_ARGS
  126. #define LV1_4_IN_0_OUT_ARGS LV1_4_IN_ARGS
  127. #define LV1_5_IN_0_OUT_ARGS LV1_5_IN_ARGS
  128. #define LV1_6_IN_0_OUT_ARGS LV1_6_IN_ARGS
  129. #define LV1_7_IN_0_OUT_ARGS LV1_7_IN_ARGS
  130. #define LV1_0_IN_1_OUT_ARGS LV1_1_OUT_ARGS
  131. #define LV1_1_IN_1_OUT_ARGS LV1_1_IN_ARGS, LV1_1_OUT_ARGS
  132. #define LV1_2_IN_1_OUT_ARGS LV1_2_IN_ARGS, LV1_1_OUT_ARGS
  133. #define LV1_3_IN_1_OUT_ARGS LV1_3_IN_ARGS, LV1_1_OUT_ARGS
  134. #define LV1_4_IN_1_OUT_ARGS LV1_4_IN_ARGS, LV1_1_OUT_ARGS
  135. #define LV1_5_IN_1_OUT_ARGS LV1_5_IN_ARGS, LV1_1_OUT_ARGS
  136. #define LV1_6_IN_1_OUT_ARGS LV1_6_IN_ARGS, LV1_1_OUT_ARGS
  137. #define LV1_7_IN_1_OUT_ARGS LV1_7_IN_ARGS, LV1_1_OUT_ARGS
  138. #define LV1_8_IN_1_OUT_ARGS LV1_8_IN_ARGS, LV1_1_OUT_ARGS
  139. #define LV1_0_IN_2_OUT_ARGS LV1_2_OUT_ARGS
  140. #define LV1_1_IN_2_OUT_ARGS LV1_1_IN_ARGS, LV1_2_OUT_ARGS
  141. #define LV1_2_IN_2_OUT_ARGS LV1_2_IN_ARGS, LV1_2_OUT_ARGS
  142. #define LV1_3_IN_2_OUT_ARGS LV1_3_IN_ARGS, LV1_2_OUT_ARGS
  143. #define LV1_4_IN_2_OUT_ARGS LV1_4_IN_ARGS, LV1_2_OUT_ARGS
  144. #define LV1_5_IN_2_OUT_ARGS LV1_5_IN_ARGS, LV1_2_OUT_ARGS
  145. #define LV1_6_IN_2_OUT_ARGS LV1_6_IN_ARGS, LV1_2_OUT_ARGS
  146. #define LV1_7_IN_2_OUT_ARGS LV1_7_IN_ARGS, LV1_2_OUT_ARGS
  147. #define LV1_0_IN_3_OUT_ARGS LV1_3_OUT_ARGS
  148. #define LV1_1_IN_3_OUT_ARGS LV1_1_IN_ARGS, LV1_3_OUT_ARGS
  149. #define LV1_2_IN_3_OUT_ARGS LV1_2_IN_ARGS, LV1_3_OUT_ARGS
  150. #define LV1_3_IN_3_OUT_ARGS LV1_3_IN_ARGS, LV1_3_OUT_ARGS
  151. #define LV1_4_IN_3_OUT_ARGS LV1_4_IN_ARGS, LV1_3_OUT_ARGS
  152. #define LV1_5_IN_3_OUT_ARGS LV1_5_IN_ARGS, LV1_3_OUT_ARGS
  153. #define LV1_6_IN_3_OUT_ARGS LV1_6_IN_ARGS, LV1_3_OUT_ARGS
  154. #define LV1_7_IN_3_OUT_ARGS LV1_7_IN_ARGS, LV1_3_OUT_ARGS
  155. #define LV1_0_IN_4_OUT_ARGS LV1_4_OUT_ARGS
  156. #define LV1_1_IN_4_OUT_ARGS LV1_1_IN_ARGS, LV1_4_OUT_ARGS
  157. #define LV1_2_IN_4_OUT_ARGS LV1_2_IN_ARGS, LV1_4_OUT_ARGS
  158. #define LV1_3_IN_4_OUT_ARGS LV1_3_IN_ARGS, LV1_4_OUT_ARGS
  159. #define LV1_4_IN_4_OUT_ARGS LV1_4_IN_ARGS, LV1_4_OUT_ARGS
  160. #define LV1_5_IN_4_OUT_ARGS LV1_5_IN_ARGS, LV1_4_OUT_ARGS
  161. #define LV1_6_IN_4_OUT_ARGS LV1_6_IN_ARGS, LV1_4_OUT_ARGS
  162. #define LV1_7_IN_4_OUT_ARGS LV1_7_IN_ARGS, LV1_4_OUT_ARGS
  163. #define LV1_0_IN_5_OUT_ARGS LV1_5_OUT_ARGS
  164. #define LV1_1_IN_5_OUT_ARGS LV1_1_IN_ARGS, LV1_5_OUT_ARGS
  165. #define LV1_2_IN_5_OUT_ARGS LV1_2_IN_ARGS, LV1_5_OUT_ARGS
  166. #define LV1_3_IN_5_OUT_ARGS LV1_3_IN_ARGS, LV1_5_OUT_ARGS
  167. #define LV1_4_IN_5_OUT_ARGS LV1_4_IN_ARGS, LV1_5_OUT_ARGS
  168. #define LV1_5_IN_5_OUT_ARGS LV1_5_IN_ARGS, LV1_5_OUT_ARGS
  169. #define LV1_6_IN_5_OUT_ARGS LV1_6_IN_ARGS, LV1_5_OUT_ARGS
  170. #define LV1_7_IN_5_OUT_ARGS LV1_7_IN_ARGS, LV1_5_OUT_ARGS
  171. #define LV1_0_IN_6_OUT_ARGS LV1_6_OUT_ARGS
  172. #define LV1_1_IN_6_OUT_ARGS LV1_1_IN_ARGS, LV1_6_OUT_ARGS
  173. #define LV1_2_IN_6_OUT_ARGS LV1_2_IN_ARGS, LV1_6_OUT_ARGS
  174. #define LV1_3_IN_6_OUT_ARGS LV1_3_IN_ARGS, LV1_6_OUT_ARGS
  175. #define LV1_4_IN_6_OUT_ARGS LV1_4_IN_ARGS, LV1_6_OUT_ARGS
  176. #define LV1_5_IN_6_OUT_ARGS LV1_5_IN_ARGS, LV1_6_OUT_ARGS
  177. #define LV1_6_IN_6_OUT_ARGS LV1_6_IN_ARGS, LV1_6_OUT_ARGS
  178. #define LV1_7_IN_6_OUT_ARGS LV1_7_IN_ARGS, LV1_6_OUT_ARGS
  179. #define LV1_0_IN_7_OUT_ARGS LV1_7_OUT_ARGS
  180. #define LV1_1_IN_7_OUT_ARGS LV1_1_IN_ARGS, LV1_7_OUT_ARGS
  181. #define LV1_2_IN_7_OUT_ARGS LV1_2_IN_ARGS, LV1_7_OUT_ARGS
  182. #define LV1_3_IN_7_OUT_ARGS LV1_3_IN_ARGS, LV1_7_OUT_ARGS
  183. #define LV1_4_IN_7_OUT_ARGS LV1_4_IN_ARGS, LV1_7_OUT_ARGS
  184. #define LV1_5_IN_7_OUT_ARGS LV1_5_IN_ARGS, LV1_7_OUT_ARGS
  185. #define LV1_6_IN_7_OUT_ARGS LV1_6_IN_ARGS, LV1_7_OUT_ARGS
  186. #define LV1_7_IN_7_OUT_ARGS LV1_7_IN_ARGS, LV1_7_OUT_ARGS
  187. /*
  188. * This LV1_CALL() macro is for use by callers. It expands into an
  189. * inline call wrapper and an underscored HV call declaration. The
  190. * wrapper can be used to instrument the lv1 call interface. The
  191. * file lv1call.S defines its own LV1_CALL() macro to expand into
  192. * the actual underscored call definition.
  193. */
  194. #if !defined(LV1_CALL)
  195. #define LV1_CALL(name, in, out, num) \
  196. extern s64 _lv1_##name(LV1_##in##_IN_##out##_OUT_ARG_DECL); \
  197. static inline int lv1_##name(LV1_##in##_IN_##out##_OUT_ARG_DECL) \
  198. {return _lv1_##name(LV1_##in##_IN_##out##_OUT_ARGS);}
  199. #endif
  200. #endif /* !defined(__ASSEMBLY__) */
  201. /* lv1 call table */
  202. LV1_CALL(allocate_memory, 4, 2, 0 )
  203. LV1_CALL(write_htab_entry, 4, 0, 1 )
  204. LV1_CALL(construct_virtual_address_space, 3, 2, 2 )
  205. LV1_CALL(invalidate_htab_entries, 5, 0, 3 )
  206. LV1_CALL(get_virtual_address_space_id_of_ppe, 0, 1, 4 )
  207. LV1_CALL(query_logical_partition_address_region_info, 1, 5, 6 )
  208. LV1_CALL(select_virtual_address_space, 1, 0, 7 )
  209. LV1_CALL(pause, 1, 0, 9 )
  210. LV1_CALL(destruct_virtual_address_space, 1, 0, 10 )
  211. LV1_CALL(configure_irq_state_bitmap, 3, 0, 11 )
  212. LV1_CALL(connect_irq_plug_ext, 5, 0, 12 )
  213. LV1_CALL(release_memory, 1, 0, 13 )
  214. LV1_CALL(put_iopte, 5, 0, 15 )
  215. LV1_CALL(disconnect_irq_plug_ext, 3, 0, 17 )
  216. LV1_CALL(construct_event_receive_port, 0, 1, 18 )
  217. LV1_CALL(destruct_event_receive_port, 1, 0, 19 )
  218. LV1_CALL(send_event_locally, 1, 0, 24 )
  219. LV1_CALL(end_of_interrupt, 1, 0, 27 )
  220. LV1_CALL(connect_irq_plug, 2, 0, 28 )
  221. LV1_CALL(disconnect_irq_plug, 1, 0, 29 )
  222. LV1_CALL(end_of_interrupt_ext, 3, 0, 30 )
  223. LV1_CALL(did_update_interrupt_mask, 2, 0, 31 )
  224. LV1_CALL(shutdown_logical_partition, 1, 0, 44 )
  225. LV1_CALL(destruct_logical_spe, 1, 0, 54 )
  226. LV1_CALL(construct_logical_spe, 7, 6, 57 )
  227. LV1_CALL(set_spe_interrupt_mask, 3, 0, 61 )
  228. LV1_CALL(set_spe_transition_notifier, 3, 0, 64 )
  229. LV1_CALL(disable_logical_spe, 2, 0, 65 )
  230. LV1_CALL(clear_spe_interrupt_status, 4, 0, 66 )
  231. LV1_CALL(get_spe_interrupt_status, 2, 1, 67 )
  232. LV1_CALL(get_logical_ppe_id, 0, 1, 69 )
  233. LV1_CALL(set_interrupt_mask, 5, 0, 73 )
  234. LV1_CALL(get_logical_partition_id, 0, 1, 74 )
  235. LV1_CALL(configure_execution_time_variable, 1, 0, 77 )
  236. LV1_CALL(get_spe_irq_outlet, 2, 1, 78 )
  237. LV1_CALL(set_spe_privilege_state_area_1_register, 3, 0, 79 )
  238. LV1_CALL(create_repository_node, 6, 0, 90 )
  239. LV1_CALL(read_repository_node, 5, 2, 91 )
  240. LV1_CALL(write_repository_node, 6, 0, 92 )
  241. LV1_CALL(delete_repository_node, 4, 0, 93 )
  242. LV1_CALL(read_htab_entries, 2, 5, 95 )
  243. LV1_CALL(set_dabr, 2, 0, 96 )
  244. LV1_CALL(get_total_execution_time, 2, 1, 103 )
  245. LV1_CALL(allocate_io_segment, 3, 1, 116 )
  246. LV1_CALL(release_io_segment, 2, 0, 117 )
  247. LV1_CALL(construct_io_irq_outlet, 1, 1, 120 )
  248. LV1_CALL(destruct_io_irq_outlet, 1, 0, 121 )
  249. LV1_CALL(map_htab, 1, 1, 122 )
  250. LV1_CALL(unmap_htab, 1, 0, 123 )
  251. LV1_CALL(get_version_info, 0, 2, 127 )
  252. LV1_CALL(insert_htab_entry, 6, 3, 158 )
  253. LV1_CALL(read_virtual_uart, 3, 1, 162 )
  254. LV1_CALL(write_virtual_uart, 3, 1, 163 )
  255. LV1_CALL(set_virtual_uart_param, 3, 0, 164 )
  256. LV1_CALL(get_virtual_uart_param, 2, 1, 165 )
  257. LV1_CALL(configure_virtual_uart_irq, 1, 1, 166 )
  258. LV1_CALL(open_device, 3, 0, 170 )
  259. LV1_CALL(close_device, 2, 0, 171 )
  260. LV1_CALL(map_device_mmio_region, 5, 1, 172 )
  261. LV1_CALL(unmap_device_mmio_region, 3, 0, 173 )
  262. LV1_CALL(allocate_device_dma_region, 5, 1, 174 )
  263. LV1_CALL(free_device_dma_region, 3, 0, 175 )
  264. LV1_CALL(map_device_dma_region, 6, 0, 176 )
  265. LV1_CALL(unmap_device_dma_region, 4, 0, 177 )
  266. LV1_CALL(net_add_multicast_address, 4, 0, 185 )
  267. LV1_CALL(net_remove_multicast_address, 4, 0, 186 )
  268. LV1_CALL(net_start_tx_dma, 4, 0, 187 )
  269. LV1_CALL(net_stop_tx_dma, 2, 0, 188 )
  270. LV1_CALL(net_start_rx_dma, 4, 0, 189 )
  271. LV1_CALL(net_stop_rx_dma, 2, 0, 190 )
  272. LV1_CALL(net_set_interrupt_status_indicator, 4, 0, 191 )
  273. LV1_CALL(net_set_interrupt_mask, 4, 0, 193 )
  274. LV1_CALL(net_control, 6, 2, 194 )
  275. LV1_CALL(connect_interrupt_event_receive_port, 4, 0, 197 )
  276. LV1_CALL(disconnect_interrupt_event_receive_port, 4, 0, 198 )
  277. LV1_CALL(get_spe_all_interrupt_statuses, 1, 1, 199 )
  278. LV1_CALL(deconfigure_virtual_uart_irq, 0, 0, 202 )
  279. LV1_CALL(enable_logical_spe, 2, 0, 207 )
  280. LV1_CALL(gpu_open, 1, 0, 210 )
  281. LV1_CALL(gpu_close, 0, 0, 211 )
  282. LV1_CALL(gpu_device_map, 1, 2, 212 )
  283. LV1_CALL(gpu_device_unmap, 1, 0, 213 )
  284. LV1_CALL(gpu_memory_allocate, 5, 2, 214 )
  285. LV1_CALL(gpu_memory_free, 1, 0, 216 )
  286. LV1_CALL(gpu_context_allocate, 2, 5, 217 )
  287. LV1_CALL(gpu_context_free, 1, 0, 218 )
  288. LV1_CALL(gpu_context_iomap, 5, 0, 221 )
  289. LV1_CALL(gpu_context_attribute, 6, 0, 225 )
  290. LV1_CALL(gpu_context_intr, 1, 1, 227 )
  291. LV1_CALL(gpu_attribute, 3, 0, 228 )
  292. LV1_CALL(get_rtc, 0, 2, 232 )
  293. LV1_CALL(set_ppe_periodic_tracer_frequency, 1, 0, 240 )
  294. LV1_CALL(start_ppe_periodic_tracer, 5, 0, 241 )
  295. LV1_CALL(stop_ppe_periodic_tracer, 1, 1, 242 )
  296. LV1_CALL(storage_read, 6, 1, 245 )
  297. LV1_CALL(storage_write, 6, 1, 246 )
  298. LV1_CALL(storage_send_device_command, 6, 1, 248 )
  299. LV1_CALL(storage_get_async_status, 1, 2, 249 )
  300. LV1_CALL(storage_check_async_status, 2, 1, 254 )
  301. LV1_CALL(panic, 1, 0, 255 )
  302. LV1_CALL(construct_lpm, 6, 3, 140 )
  303. LV1_CALL(destruct_lpm, 1, 0, 141 )
  304. LV1_CALL(start_lpm, 1, 0, 142 )
  305. LV1_CALL(stop_lpm, 1, 1, 143 )
  306. LV1_CALL(copy_lpm_trace_buffer, 3, 1, 144 )
  307. LV1_CALL(add_lpm_event_bookmark, 5, 0, 145 )
  308. LV1_CALL(delete_lpm_event_bookmark, 3, 0, 146 )
  309. LV1_CALL(set_lpm_interrupt_mask, 3, 1, 147 )
  310. LV1_CALL(get_lpm_interrupt_status, 1, 1, 148 )
  311. LV1_CALL(set_lpm_general_control, 5, 2, 149 )
  312. LV1_CALL(set_lpm_interval, 3, 1, 150 )
  313. LV1_CALL(set_lpm_trigger_control, 3, 1, 151 )
  314. LV1_CALL(set_lpm_counter_control, 4, 1, 152 )
  315. LV1_CALL(set_lpm_group_control, 3, 1, 153 )
  316. LV1_CALL(set_lpm_debug_bus_control, 3, 1, 154 )
  317. LV1_CALL(set_lpm_counter, 5, 2, 155 )
  318. LV1_CALL(set_lpm_signal, 7, 0, 156 )
  319. LV1_CALL(set_lpm_spr_trigger, 2, 0, 157 )
  320. #endif