acpi_status acpi_get_irq_routing_table ( acpi_handle device_handle, struct acpi_buffer *ret_buffer) { acpi_status status; ACPI_FUNCTION_TRACE ("acpi_get_irq_routing_table "); /* * Must have a valid handle and buffer, So we have to have a handle * and a return buffer structure, and if there is a non-zero buffer length * we also need a valid pointer in the buffer. If it's a zero buffer length, * we'll be returning the needed buffer size, so keep going. */ if (!device_handle) { return_ACPI_STATUS (AE_BAD_PARAMETER); } status = acpi_ut_validate_buffer (ret_buffer); if (ACPI_FAILURE (status)) { return_ACPI_STATUS (status); } status = acpi_rs_get_prt_method_data (device_handle, ret_buffer); return_ACPI_STATUS (status); }
ACPI_STATUS acpi_get_irq_routing_table ( ACPI_HANDLE device_handle, ACPI_BUFFER *ret_buffer) { ACPI_STATUS status; /* * Must have a valid handle and buffer, So we have to have a handle * and a return buffer structure, and if there is a non-zero buffer length * we also need a valid pointer in the buffer. If it's a zero buffer length, * we'll be returning the needed buffer size, so keep going. */ if ((!device_handle) || (!ret_buffer) || ((!ret_buffer->pointer) && (ret_buffer->length))) { return (AE_BAD_PARAMETER); } status = acpi_rs_get_prt_method_data (device_handle, ret_buffer); return (status); }
acpi_status acpi_get_irq_routing_table(acpi_handle device_handle, struct acpi_buffer *ret_buffer) { acpi_status status; struct acpi_namespace_node *node; ACPI_FUNCTION_TRACE(acpi_get_irq_routing_table); /* Validate parameters then dispatch to internal routine */ status = acpi_rs_validate_parameters(device_handle, ret_buffer, &node); if (ACPI_FAILURE(status)) { return_ACPI_STATUS(status); } status = acpi_rs_get_prt_method_data(node, ret_buffer); return_ACPI_STATUS(status); }