49 #define _COMPONENT ACPI_RESOURCES
67 u16 aml_buffer_length,
71 acpi_size list_size_needed;
73 void *current_resource_ptr;
103 ¤t_resource_ptr);
141 acpi_size list_size_needed = 0;
142 u32 aml_buffer_length;
151 aml_buffer_length = aml_buffer->
buffer.length;
152 aml_start = aml_buffer->
buffer.pointer;
162 status, (
u32) list_size_needed));
176 resource = output_buffer->
pointer;
218 acpi_size buffer_size_needed = 0;
219 u32 number_of_elements;
233 &buffer_size_needed);
239 (
u32) buffer_size_needed));
253 top_object_list = package_object->
package.elements;
254 number_of_elements = package_object->
package.count;
255 buffer = output_buffer->
pointer;
258 for (index = 0; index < number_of_elements; index++) {
266 buffer += user_prt->
length;
280 "(PRT[%u]) Need sub-package, found %s",
283 (*top_object_list)));
289 if ((*top_object_list)->package.count != 4) {
291 "(PRT[%u]) Need package of length 4, found length %u",
292 index, (*top_object_list)->package.count));
301 sub_object_list = (*top_object_list)->
package.elements;
305 obj_desc = sub_object_list[0];
308 "(PRT[%u].Address) Need Integer, found %s",
318 obj_desc = sub_object_list[1];
321 "(PRT[%u].Pin) Need Integer, found %s",
335 obj_desc = sub_object_list[3];
337 sub_object_list[3] = sub_object_list[2];
338 sub_object_list[2] = obj_desc;
341 "(PRT[%X].Source) SourceName and SourceIndex are reversed, fixed",
349 obj_desc = sub_object_list[2];
351 switch (obj_desc->
common.type) {
357 "(PRT[%u].Source) Need name, found Reference Class 0x%X",
386 obj_desc->
string.pointer);
408 "(PRT[%u].Source) Need Ref/String/Integer, found %s",
423 obj_desc = sub_object_list[3];
426 "(PRT[%u].SourceIndex) Need Integer, found %s",
467 acpi_size aml_size_needed = 0;
472 linked_list_buffer));
483 (
u32) aml_size_needed,