void acpi_rs_dump_resource_list ( acpi_resource *resource) { u8 count = 0; u8 done = FALSE; FUNCTION_ENTRY (); if (acpi_dbg_level & ACPI_LV_RESOURCES && _COMPONENT & acpi_dbg_layer) { while (!done) { acpi_os_printf ("Resource structure %x.\n", count++); switch (resource->id) { case ACPI_RSTYPE_IRQ: acpi_rs_dump_irq (&resource->data); break; case ACPI_RSTYPE_DMA: acpi_rs_dump_dma (&resource->data); break; case ACPI_RSTYPE_START_DPF: acpi_rs_dump_start_dependent_functions (&resource->data); break; case ACPI_RSTYPE_END_DPF: acpi_os_printf ("End_dependent_functions Resource\n"); /* Acpi_rs_dump_end_dependent_functions (Resource->Data);*/ break; case ACPI_RSTYPE_IO: acpi_rs_dump_io (&resource->data); break; case ACPI_RSTYPE_FIXED_IO: acpi_rs_dump_fixed_io (&resource->data); break; case ACPI_RSTYPE_VENDOR: acpi_rs_dump_vendor_specific (&resource->data); break; case ACPI_RSTYPE_END_TAG: /*Rs_dump_end_tag (Resource->Data);*/ acpi_os_printf ("End_tag Resource\n"); done = TRUE; break; case ACPI_RSTYPE_MEM24: acpi_rs_dump_memory24 (&resource->data); break; case ACPI_RSTYPE_MEM32: acpi_rs_dump_memory32 (&resource->data); break; case ACPI_RSTYPE_FIXED_MEM32: acpi_rs_dump_fixed_memory32 (&resource->data); break; case ACPI_RSTYPE_ADDRESS16: acpi_rs_dump_address16 (&resource->data); break; case ACPI_RSTYPE_ADDRESS32: acpi_rs_dump_address32 (&resource->data); break; case ACPI_RSTYPE_ADDRESS64: acpi_rs_dump_address64 (&resource->data); break; case ACPI_RSTYPE_EXT_IRQ: acpi_rs_dump_extended_irq (&resource->data); break; default: acpi_os_printf ("Invalid resource type\n"); break; } resource = POINTER_ADD (acpi_resource, resource, resource->length); } } return; }
void acpi_rs_dump_resource_list ( RESOURCE *resource) { u8 count = 0; u8 done = FALSE; if (acpi_dbg_level & TRACE_RESOURCES && _COMPONENT & acpi_dbg_layer) { while (!done) { acpi_os_printf ("\t_resource structure %x.\n", count++); switch (resource->id) { case irq: acpi_rs_dump_irq (&resource->data); break; case dma: acpi_rs_dump_dma (&resource->data); break; case start_dependent_functions: acpi_rs_dump_start_dependent_functions (&resource->data); break; case end_dependent_functions: acpi_os_printf ("\t_end_dependent_functions Resource\n"); /* Acpi_rs_dump_end_dependent_functions (Resource->Data);*/ break; case io: acpi_rs_dump_io (&resource->data); break; case fixed_io: acpi_rs_dump_fixed_io (&resource->data); break; case vendor_specific: acpi_rs_dump_vendor_specific (&resource->data); break; case end_tag: /*Rs_dump_end_tag (Resource->Data);*/ acpi_os_printf ("\t_end_tag Resource\n"); done = TRUE; break; case memory24: acpi_rs_dump_memory24 (&resource->data); break; case memory32: acpi_rs_dump_memory32 (&resource->data); break; case fixed_memory32: acpi_rs_dump_fixed_memory32 (&resource->data); break; case address16: acpi_rs_dump_address16 (&resource->data); break; case address32: acpi_rs_dump_address32 (&resource->data); break; case extended_irq: acpi_rs_dump_extended_irq (&resource->data); break; default: acpi_os_printf ("Invalid resource type\n"); break; } resource = (RESOURCE *) ((NATIVE_UINT) resource + (NATIVE_UINT) resource->length); } } return; }