// SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /******************************************************************************* * * Module Name: rsdump - AML debugger support for resource structures. *
******************************************************************************/
/* * All functions in this module are used by the AML Debugger only
*/ /* Local prototypes */ staticvoid acpi_rs_out_string(constchar *title, constchar *value);
case ACPI_RSD_SHORTLIST: /* * Short byte list (single line output) for DMA and IRQ resources * Note: The list length is obtained from the previous table entry
*/ if (previous_target) {
acpi_rs_out_title(name);
acpi_rs_dump_short_byte_list(*previous_target,
target);
} break;
case ACPI_RSD_SHORTLISTX: /* * Short byte list (single line output) for GPIO vendor data * Note: The list length is obtained from the previous table entry
*/ if (previous_target) {
acpi_rs_out_title(name);
acpi_rs_dump_short_byte_list(*previous_target,
*
(ACPI_CAST_INDIRECT_PTR
(u8, target)));
} break;
case ACPI_RSD_LONGLIST: /* * Long byte list for Vendor resource data * Note: The list length is obtained from the previous table entry
*/ if (previous_target) {
acpi_rs_dump_byte_list(ACPI_GET16
(previous_target),
target);
} break;
case ACPI_RSD_DWORDLIST: /* * Dword list for Extended Interrupt resources * Note: The list length is obtained from the previous table entry
*/ if (previous_target) {
acpi_rs_dump_dword_list(*previous_target,
ACPI_CAST_PTR(u32,
target));
} break;
case ACPI_RSD_WORDLIST: /* * Word list for GPIO Pin Table * Note: The list length is obtained from the previous table entry
*/ if (previous_target) {
acpi_rs_dump_word_list(*previous_target,
*(ACPI_CAST_INDIRECT_PTR
(u16, target)));
} break;
case ACPI_RSD_ADDRESS: /* * Common flags for all Address resources
*/
acpi_rs_dump_address_common(ACPI_CAST_PTR
(union acpi_resource_data,
target)); break;
case ACPI_RSD_SOURCE: /* * Optional resource_source for Address resources
*/
acpi_rs_dump_resource_source(ACPI_CAST_PTR
(struct
acpi_resource_source,
target)); break;
/******************************************************************************* * * FUNCTION: acpi_rs_dump_resource_label * * PARAMETERS: title - Title of the dumped resource field * resource_label - Pointer to a Resource Label struct * * RETURN: None * * DESCRIPTION: Common routine for dumping the resource_label *
******************************************************************************/
/******************************************************************************* * * FUNCTION: acpi_rs_dump_address_common * * PARAMETERS: resource - Pointer to an internal resource descriptor * * RETURN: None * * DESCRIPTION: Dump the fields that are common to all Address resource * descriptors *
******************************************************************************/
/******************************************************************************* * * FUNCTION: acpi_rs_out* * * PARAMETERS: title - Name of the resource field * value - Value of the resource field * * RETURN: None * * DESCRIPTION: Miscellaneous helper functions to consistently format the * output of the resource dump routines *
******************************************************************************/
/******************************************************************************* * * FUNCTION: acpi_rs_dump*List * * PARAMETERS: length - Number of elements in the list * data - Start of the list * * RETURN: None * * DESCRIPTION: Miscellaneous functions to dump lists of raw data *
******************************************************************************/
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.