aboutsummaryrefslogtreecommitdiffstats
path: root/include/acpi/acresrc.h
diff options
context:
space:
mode:
authorRobert Moore <Robert.Moore@intel.com>2005-09-16 16:51:15 -0400
committerLen Brown <len.brown@intel.com>2005-09-21 23:51:39 -0400
commitbda663d36b94c723153246a4231bbc0f1cd1836e (patch)
treecc9f75c1d010d1b99d29f13acd600b21eda5eec5 /include/acpi/acresrc.h
parentefb0372bbaf5b829ff8c39db372779928af542a7 (diff)
[ACPI] ACPICA 20050916
Fixed a problem within the Resource Manager where support for the Generic Register descriptor was not fully implemented. This descriptor is now fully recognized, parsed, disassembled, and displayed. Restructured the Resource Manager code to utilize table-driven dispatch and lookup, eliminating many of the large switch() statements. This reduces overall subsystem code size and code complexity. Affects the resource parsing and construction, disassembly, and debug dump output. Cleaned up and restructured the debug dump output for all resource descriptors. Improved readability of the output and reduced code size. Fixed a problem where changes to internal data structures caused the optional ACPI_MUTEX_DEBUG code to fail compilation if specified. Signed-off-by: Robert Moore <Robert.Moore@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include/acpi/acresrc.h')
-rw-r--r--include/acpi/acresrc.h46
1 files changed, 30 insertions, 16 deletions
diff --git a/include/acpi/acresrc.h b/include/acpi/acresrc.h
index 38e798b05d08..ce2cf72fd4c8 100644
--- a/include/acpi/acresrc.h
+++ b/include/acpi/acresrc.h
@@ -110,7 +110,7 @@ acpi_rs_byte_stream_to_list(u8 * byte_stream_buffer,
110 u32 byte_stream_buffer_length, u8 * output_buffer); 110 u32 byte_stream_buffer_length, u8 * output_buffer);
111 111
112acpi_status 112acpi_status
113acpi_rs_list_to_byte_stream(struct acpi_resource *linked_list, 113acpi_rs_list_to_byte_stream(struct acpi_resource *resource,
114 acpi_size byte_stream_size_needed, 114 acpi_size byte_stream_size_needed,
115 u8 * output_buffer); 115 u8 * output_buffer);
116 116
@@ -125,11 +125,11 @@ acpi_rs_fixed_io_resource(u8 * byte_stream_buffer,
125 u8 ** output_buffer, acpi_size * structure_size); 125 u8 ** output_buffer, acpi_size * structure_size);
126 126
127acpi_status 127acpi_status
128acpi_rs_io_stream(struct acpi_resource *linked_list, 128acpi_rs_io_stream(struct acpi_resource *resource,
129 u8 ** output_buffer, acpi_size * bytes_consumed); 129 u8 ** output_buffer, acpi_size * bytes_consumed);
130 130
131acpi_status 131acpi_status
132acpi_rs_fixed_io_stream(struct acpi_resource *linked_list, 132acpi_rs_fixed_io_stream(struct acpi_resource *resource,
133 u8 ** output_buffer, acpi_size * bytes_consumed); 133 u8 ** output_buffer, acpi_size * bytes_consumed);
134 134
135acpi_status 135acpi_status
@@ -138,7 +138,7 @@ acpi_rs_irq_resource(u8 * byte_stream_buffer,
138 u8 ** output_buffer, acpi_size * structure_size); 138 u8 ** output_buffer, acpi_size * structure_size);
139 139
140acpi_status 140acpi_status
141acpi_rs_irq_stream(struct acpi_resource *linked_list, 141acpi_rs_irq_stream(struct acpi_resource *resource,
142 u8 ** output_buffer, acpi_size * bytes_consumed); 142 u8 ** output_buffer, acpi_size * bytes_consumed);
143 143
144acpi_status 144acpi_status
@@ -147,7 +147,7 @@ acpi_rs_dma_resource(u8 * byte_stream_buffer,
147 u8 ** output_buffer, acpi_size * structure_size); 147 u8 ** output_buffer, acpi_size * structure_size);
148 148
149acpi_status 149acpi_status
150acpi_rs_dma_stream(struct acpi_resource *linked_list, 150acpi_rs_dma_stream(struct acpi_resource *resource,
151 u8 ** output_buffer, acpi_size * bytes_consumed); 151 u8 ** output_buffer, acpi_size * bytes_consumed);
152 152
153acpi_status 153acpi_status
@@ -156,7 +156,7 @@ acpi_rs_address16_resource(u8 * byte_stream_buffer,
156 u8 ** output_buffer, acpi_size * structure_size); 156 u8 ** output_buffer, acpi_size * structure_size);
157 157
158acpi_status 158acpi_status
159acpi_rs_address16_stream(struct acpi_resource *linked_list, 159acpi_rs_address16_stream(struct acpi_resource *resource,
160 u8 ** output_buffer, acpi_size * bytes_consumed); 160 u8 ** output_buffer, acpi_size * bytes_consumed);
161 161
162acpi_status 162acpi_status
@@ -165,7 +165,7 @@ acpi_rs_address32_resource(u8 * byte_stream_buffer,
165 u8 ** output_buffer, acpi_size * structure_size); 165 u8 ** output_buffer, acpi_size * structure_size);
166 166
167acpi_status 167acpi_status
168acpi_rs_address32_stream(struct acpi_resource *linked_list, 168acpi_rs_address32_stream(struct acpi_resource *resource,
169 u8 ** output_buffer, acpi_size * bytes_consumed); 169 u8 ** output_buffer, acpi_size * bytes_consumed);
170 170
171acpi_status 171acpi_status
@@ -174,7 +174,7 @@ acpi_rs_address64_resource(u8 * byte_stream_buffer,
174 u8 ** output_buffer, acpi_size * structure_size); 174 u8 ** output_buffer, acpi_size * structure_size);
175 175
176acpi_status 176acpi_status
177acpi_rs_address64_stream(struct acpi_resource *linked_list, 177acpi_rs_address64_stream(struct acpi_resource *resource,
178 u8 ** output_buffer, acpi_size * bytes_consumed); 178 u8 ** output_buffer, acpi_size * bytes_consumed);
179 179
180acpi_status 180acpi_status
@@ -190,12 +190,12 @@ acpi_rs_end_depend_fns_resource(u8 * byte_stream_buffer,
190 acpi_size * structure_size); 190 acpi_size * structure_size);
191 191
192acpi_status 192acpi_status
193acpi_rs_start_depend_fns_stream(struct acpi_resource *linked_list, 193acpi_rs_start_depend_fns_stream(struct acpi_resource *resource,
194 u8 ** output_buffer, 194 u8 ** output_buffer,
195 acpi_size * bytes_consumed); 195 acpi_size * bytes_consumed);
196 196
197acpi_status 197acpi_status
198acpi_rs_end_depend_fns_stream(struct acpi_resource *linked_list, 198acpi_rs_end_depend_fns_stream(struct acpi_resource *resource,
199 u8 ** output_buffer, acpi_size * bytes_consumed); 199 u8 ** output_buffer, acpi_size * bytes_consumed);
200 200
201acpi_status 201acpi_status
@@ -204,7 +204,7 @@ acpi_rs_memory24_resource(u8 * byte_stream_buffer,
204 u8 ** output_buffer, acpi_size * structure_size); 204 u8 ** output_buffer, acpi_size * structure_size);
205 205
206acpi_status 206acpi_status
207acpi_rs_memory24_stream(struct acpi_resource *linked_list, 207acpi_rs_memory24_stream(struct acpi_resource *resource,
208 u8 ** output_buffer, acpi_size * bytes_consumed); 208 u8 ** output_buffer, acpi_size * bytes_consumed);
209 209
210acpi_status 210acpi_status
@@ -220,11 +220,11 @@ acpi_rs_fixed_memory32_resource(u8 * byte_stream_buffer,
220 acpi_size * structure_size); 220 acpi_size * structure_size);
221 221
222acpi_status 222acpi_status
223acpi_rs_memory32_range_stream(struct acpi_resource *linked_list, 223acpi_rs_memory32_range_stream(struct acpi_resource *resource,
224 u8 ** output_buffer, acpi_size * bytes_consumed); 224 u8 ** output_buffer, acpi_size * bytes_consumed);
225 225
226acpi_status 226acpi_status
227acpi_rs_fixed_memory32_stream(struct acpi_resource *linked_list, 227acpi_rs_fixed_memory32_stream(struct acpi_resource *resource,
228 u8 ** output_buffer, acpi_size * bytes_consumed); 228 u8 ** output_buffer, acpi_size * bytes_consumed);
229 229
230acpi_status 230acpi_status
@@ -233,7 +233,7 @@ acpi_rs_extended_irq_resource(u8 * byte_stream_buffer,
233 u8 ** output_buffer, acpi_size * structure_size); 233 u8 ** output_buffer, acpi_size * structure_size);
234 234
235acpi_status 235acpi_status
236acpi_rs_extended_irq_stream(struct acpi_resource *linked_list, 236acpi_rs_extended_irq_stream(struct acpi_resource *resource,
237 u8 ** output_buffer, acpi_size * bytes_consumed); 237 u8 ** output_buffer, acpi_size * bytes_consumed);
238 238
239acpi_status 239acpi_status
@@ -242,7 +242,7 @@ acpi_rs_end_tag_resource(u8 * byte_stream_buffer,
242 u8 ** output_buffer, acpi_size * structure_size); 242 u8 ** output_buffer, acpi_size * structure_size);
243 243
244acpi_status 244acpi_status
245acpi_rs_end_tag_stream(struct acpi_resource *linked_list, 245acpi_rs_end_tag_stream(struct acpi_resource *resource,
246 u8 ** output_buffer, acpi_size * bytes_consumed); 246 u8 ** output_buffer, acpi_size * bytes_consumed);
247 247
248acpi_status 248acpi_status
@@ -251,9 +251,23 @@ acpi_rs_vendor_resource(u8 * byte_stream_buffer,
251 u8 ** output_buffer, acpi_size * structure_size); 251 u8 ** output_buffer, acpi_size * structure_size);
252 252
253acpi_status 253acpi_status
254acpi_rs_vendor_stream(struct acpi_resource *linked_list, 254acpi_rs_vendor_stream(struct acpi_resource *resource,
255 u8 ** output_buffer, acpi_size * bytes_consumed); 255 u8 ** output_buffer, acpi_size * bytes_consumed);
256 256
257u8 acpi_rs_get_resource_type(u8 resource_start_byte); 257u8 acpi_rs_get_resource_type(u8 resource_start_byte);
258 258
259/*
260 * rsmisc
261 */
262acpi_status
263acpi_rs_generic_register_resource(u8 * byte_stream_buffer,
264 acpi_size * bytes_consumed,
265 u8 ** output_buffer,
266 acpi_size * structure_size);
267
268acpi_status
269acpi_rs_generic_register_stream(struct acpi_resource *resource,
270 u8 ** output_buffer,
271 acpi_size * bytes_consumed);
272
259#endif /* __ACRESRC_H__ */ 273#endif /* __ACRESRC_H__ */