acresrc.h
上传用户:lgb322
上传日期:2013-02-24
资源大小:30529k
文件大小:9k
源码类别:

嵌入式Linux

开发平台:

Unix_Linux

  1. /******************************************************************************
  2.  *
  3.  * Name: acresrc.h - Resource Manager function prototypes
  4.  *       $Revision: 25 $
  5.  *
  6.  *****************************************************************************/
  7. /*
  8.  *  Copyright (C) 2000, 2001 R. Byron Moore
  9.  *
  10.  *  This program is free software; you can redistribute it and/or modify
  11.  *  it under the terms of the GNU General Public License as published by
  12.  *  the Free Software Foundation; either version 2 of the License, or
  13.  *  (at your option) any later version.
  14.  *
  15.  *  This program is distributed in the hope that it will be useful,
  16.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  17.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  18.  *  GNU General Public License for more details.
  19.  *
  20.  *  You should have received a copy of the GNU General Public License
  21.  *  along with this program; if not, write to the Free Software
  22.  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  23.  */
  24. #ifndef __ACRESRC_H__
  25. #define __ACRESRC_H__
  26. /*
  27.  *  Function prototypes called from Acpi* APIs
  28.  */
  29. acpi_status
  30. acpi_rs_get_prt_method_data (
  31. acpi_handle             handle,
  32. acpi_buffer             *ret_buffer);
  33. acpi_status
  34. acpi_rs_get_crs_method_data (
  35. acpi_handle             handle,
  36. acpi_buffer             *ret_buffer);
  37. acpi_status
  38. acpi_rs_get_prs_method_data (
  39. acpi_handle             handle,
  40. acpi_buffer             *ret_buffer);
  41. acpi_status
  42. acpi_rs_set_srs_method_data (
  43. acpi_handle             handle,
  44. acpi_buffer             *ret_buffer);
  45. acpi_status
  46. acpi_rs_create_resource_list (
  47. acpi_operand_object     *byte_stream_buffer,
  48. u8                      *output_buffer,
  49. u32                     *output_buffer_length);
  50. acpi_status
  51. acpi_rs_create_byte_stream (
  52. acpi_resource           *linked_list_buffer,
  53. u8                      *output_buffer,
  54. u32                     *output_buffer_length);
  55. acpi_status
  56. acpi_rs_create_pci_routing_table (
  57. acpi_operand_object     *method_return_object,
  58. u8                      *output_buffer,
  59. u32                     *output_buffer_length);
  60. /*
  61.  *Function prototypes called from Acpi_rs_create*APIs
  62.  */
  63. void
  64. acpi_rs_dump_resource_list (
  65. acpi_resource           *resource);
  66. void
  67. acpi_rs_dump_irq_list (
  68. u8                      *route_table);
  69. acpi_status
  70. acpi_rs_get_byte_stream_start (
  71. u8                      *byte_stream_buffer,
  72. u8                      **byte_stream_start,
  73. u32                     *size);
  74. acpi_status
  75. acpi_rs_calculate_list_length (
  76. u8                      *byte_stream_buffer,
  77. u32                     byte_stream_buffer_length,
  78. u32                     *size_needed);
  79. acpi_status
  80. acpi_rs_calculate_byte_stream_length (
  81. acpi_resource           *linked_list_buffer,
  82. u32                     *size_needed);
  83. acpi_status
  84. acpi_rs_calculate_pci_routing_table_length (
  85. acpi_operand_object     *package_object,
  86. u32                     *buffer_size_needed);
  87. acpi_status
  88. acpi_rs_byte_stream_to_list (
  89. u8                      *byte_stream_buffer,
  90. u32                     byte_stream_buffer_length,
  91. u8                      **output_buffer);
  92. acpi_status
  93. acpi_rs_list_to_byte_stream (
  94. acpi_resource           *linked_list,
  95. u32                     byte_stream_size_needed,
  96. u8                      **output_buffer);
  97. acpi_status
  98. acpi_rs_io_resource (
  99. u8                      *byte_stream_buffer,
  100. u32                     *bytes_consumed,
  101. u8                      **output_buffer,
  102. u32                     *structure_size);
  103. acpi_status
  104. acpi_rs_fixed_io_resource (
  105. u8                      *byte_stream_buffer,
  106. u32                     *bytes_consumed,
  107. u8                      **output_buffer,
  108. u32                     *structure_size);
  109. acpi_status
  110. acpi_rs_io_stream (
  111. acpi_resource           *linked_list,
  112. u8                      **output_buffer,
  113. u32                     *bytes_consumed);
  114. acpi_status
  115. acpi_rs_fixed_io_stream (
  116. acpi_resource           *linked_list,
  117. u8                      **output_buffer,
  118. u32                     *bytes_consumed);
  119. acpi_status
  120. acpi_rs_irq_resource (
  121. u8                      *byte_stream_buffer,
  122. u32                     *bytes_consumed,
  123. u8                      **output_buffer,
  124. u32                     *structure_size);
  125. acpi_status
  126. acpi_rs_irq_stream (
  127. acpi_resource           *linked_list,
  128. u8                      **output_buffer,
  129. u32                     *bytes_consumed);
  130. acpi_status
  131. acpi_rs_dma_resource (
  132. u8                      *byte_stream_buffer,
  133. u32                     *bytes_consumed,
  134. u8                      **output_buffer,
  135. u32                     *structure_size);
  136. acpi_status
  137. acpi_rs_dma_stream (
  138. acpi_resource           *linked_list,
  139. u8                      **output_buffer,
  140. u32                     *bytes_consumed);
  141. acpi_status
  142. acpi_rs_address16_resource (
  143. u8                      *byte_stream_buffer,
  144. u32                     *bytes_consumed,
  145. u8                      **output_buffer,
  146. u32                     *structure_size);
  147. acpi_status
  148. acpi_rs_address16_stream (
  149. acpi_resource           *linked_list,
  150. u8                      **output_buffer,
  151. u32                     *bytes_consumed);
  152. acpi_status
  153. acpi_rs_address32_resource (
  154. u8                      *byte_stream_buffer,
  155. u32                     *bytes_consumed,
  156. u8                      **output_buffer,
  157. u32                     *structure_size);
  158. acpi_status
  159. acpi_rs_address32_stream (
  160. acpi_resource           *linked_list,
  161. u8                      **output_buffer,
  162. u32                     *bytes_consumed);
  163. acpi_status
  164. acpi_rs_address64_resource (
  165. u8                      *byte_stream_buffer,
  166. u32                     *bytes_consumed,
  167. u8                      **output_buffer,
  168. u32                     *structure_size);
  169. acpi_status
  170. acpi_rs_address64_stream (
  171. acpi_resource           *linked_list,
  172. u8                      **output_buffer,
  173. u32                     *bytes_consumed);
  174. acpi_status
  175. acpi_rs_start_dependent_functions_resource (
  176. u8                      *byte_stream_buffer,
  177. u32                     *bytes_consumed,
  178. u8                      **output_buffer,
  179. u32                     *structure_size);
  180. acpi_status
  181. acpi_rs_end_dependent_functions_resource (
  182. u8                      *byte_stream_buffer,
  183. u32                     *bytes_consumed,
  184. u8                      **output_buffer,
  185. u32                     *structure_size);
  186. acpi_status
  187. acpi_rs_start_dependent_functions_stream (
  188. acpi_resource           *linked_list,
  189. u8                      **output_buffer,
  190. u32                     *bytes_consumed);
  191. acpi_status
  192. acpi_rs_end_dependent_functions_stream (
  193. acpi_resource           *linked_list,
  194. u8                      **output_buffer,
  195. u32                     *bytes_consumed);
  196. acpi_status
  197. acpi_rs_memory24_resource (
  198. u8                      *byte_stream_buffer,
  199. u32                     *bytes_consumed,
  200. u8                      **output_buffer,
  201. u32                     *structure_size);
  202. acpi_status
  203. acpi_rs_memory24_stream (
  204. acpi_resource           *linked_list,
  205. u8                      **output_buffer,
  206. u32                     *bytes_consumed);
  207. acpi_status
  208. acpi_rs_memory32_range_resource (
  209. u8                      *byte_stream_buffer,
  210. u32                     *bytes_consumed,
  211. u8                      **output_buffer,
  212. u32                     *structure_size
  213. );
  214. acpi_status
  215. acpi_rs_fixed_memory32_resource (
  216. u8                      *byte_stream_buffer,
  217. u32                     *bytes_consumed,
  218. u8                      **output_buffer,
  219. u32                     *structure_size);
  220. acpi_status
  221. acpi_rs_memory32_range_stream (
  222. acpi_resource           *linked_list,
  223. u8                      **output_buffer,
  224. u32                     *bytes_consumed);
  225. acpi_status
  226. acpi_rs_fixed_memory32_stream (
  227. acpi_resource           *linked_list,
  228. u8                      **output_buffer,
  229. u32                     *bytes_consumed);
  230. acpi_status
  231. acpi_rs_extended_irq_resource (
  232. u8                      *byte_stream_buffer,
  233. u32                     *bytes_consumed,
  234. u8                      **output_buffer,
  235. u32                     *structure_size);
  236. acpi_status
  237. acpi_rs_extended_irq_stream (
  238. acpi_resource           *linked_list,
  239. u8                      **output_buffer,
  240. u32                     *bytes_consumed);
  241. acpi_status
  242. acpi_rs_end_tag_resource (
  243. u8                      *byte_stream_buffer,
  244. u32                     *bytes_consumed,
  245. u8                      **output_buffer,
  246. u32                     *structure_size);
  247. acpi_status
  248. acpi_rs_end_tag_stream (
  249. acpi_resource           *linked_list,
  250. u8                      **output_buffer,
  251. u32                     *bytes_consumed);
  252. acpi_status
  253. acpi_rs_vendor_resource (
  254. u8                      *byte_stream_buffer,
  255. u32                     *bytes_consumed,
  256. u8                      **output_buffer,
  257. u32                     *structure_size);
  258. acpi_status
  259. acpi_rs_vendor_stream (
  260. acpi_resource           *linked_list,
  261. u8                      **output_buffer,
  262. u32                     *bytes_consumed);
  263. u8
  264. acpi_rs_get_resource_type (
  265. u8                      resource_start_byte);
  266. #endif  /* __ACRESRC_H__ */