// SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /****************************************************************************** * * Module Name: tbxfload - Table load/unload external interfaces * * Copyright (C) 2000 - 2023, Intel Corp. * *****************************************************************************/ #define EXPORT_ACPI_INTERFACES #include <acpi/acpi.h> #include "accommon.h" #include "acnamesp.h" #include "actables.h" #include "acevents.h" #define _COMPONENT … ACPI_MODULE_NAME("tbxfload") /******************************************************************************* * * FUNCTION: acpi_load_tables * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Load the ACPI tables from the RSDT/XSDT * ******************************************************************************/ acpi_status ACPI_INIT_FUNCTION acpi_load_tables(void) { … } ACPI_EXPORT_SYMBOL_INIT(…) /******************************************************************************* * * FUNCTION: acpi_tb_load_namespace * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Load the namespace from the DSDT and all SSDTs/PSDTs found in * the RSDT/XSDT. * ******************************************************************************/ acpi_status acpi_tb_load_namespace(void) { … } /******************************************************************************* * * FUNCTION: acpi_install_table * * PARAMETERS: table - Pointer to the ACPI table to be installed. * * RETURN: Status * * DESCRIPTION: Dynamically install an ACPI table. * Note: This function should only be invoked after * acpi_initialize_tables() and before acpi_load_tables(). * ******************************************************************************/ acpi_status ACPI_INIT_FUNCTION acpi_install_table(struct acpi_table_header *table) { … } ACPI_EXPORT_SYMBOL_INIT(…) /******************************************************************************* * * FUNCTION: acpi_install_physical_table * * PARAMETERS: address - Address of the ACPI table to be installed. * * RETURN: Status * * DESCRIPTION: Dynamically install an ACPI table. * Note: This function should only be invoked after * acpi_initialize_tables() and before acpi_load_tables(). * ******************************************************************************/ acpi_status ACPI_INIT_FUNCTION acpi_install_physical_table(acpi_physical_address address) { … } ACPI_EXPORT_SYMBOL_INIT(…) /******************************************************************************* * * FUNCTION: acpi_load_table * * PARAMETERS: table - Pointer to a buffer containing the ACPI * table to be loaded. * table_idx - Pointer to a u32 for storing the table * index, might be NULL * * RETURN: Status * * DESCRIPTION: Dynamically load an ACPI table from the caller's buffer. Must * be a valid ACPI table with a valid ACPI table header. * Note1: Mainly intended to support hotplug addition of SSDTs. * Note2: Does not copy the incoming table. User is responsible * to ensure that the table is not deleted or unmapped. * ******************************************************************************/ acpi_status acpi_load_table(struct acpi_table_header *table, u32 *table_idx) { … } ACPI_EXPORT_SYMBOL(…) /******************************************************************************* * * FUNCTION: acpi_unload_parent_table * * PARAMETERS: object - Handle to any namespace object owned by * the table to be unloaded * * RETURN: Status * * DESCRIPTION: Via any namespace object within an SSDT or OEMx table, unloads * the table and deletes all namespace objects associated with * that table. Unloading of the DSDT is not allowed. * Note: Mainly intended to support hotplug removal of SSDTs. * ******************************************************************************/ acpi_status acpi_unload_parent_table(acpi_handle object) { … } ACPI_EXPORT_SYMBOL(…) /******************************************************************************* * * FUNCTION: acpi_unload_table * * PARAMETERS: table_index - Index as returned by acpi_load_table * * RETURN: Status * * DESCRIPTION: Via the table_index representing an SSDT or OEMx table, unloads * the table and deletes all namespace objects associated with * that table. Unloading of the DSDT is not allowed. * Note: Mainly intended to support hotplug removal of SSDTs. * ******************************************************************************/ acpi_status acpi_unload_table(u32 table_index) { … } ACPI_EXPORT_SYMBOL(…)