// SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /****************************************************************************** * * Module Name: excreate - Named object creation * * Copyright (C) 2000 - 2023, Intel Corp. * *****************************************************************************/ #include <acpi/acpi.h> #include "accommon.h" #include "acinterp.h" #include "amlcode.h" #include "acnamesp.h" #define _COMPONENT … ACPI_MODULE_NAME("excreate") /******************************************************************************* * * FUNCTION: acpi_ex_create_alias * * PARAMETERS: walk_state - Current state, contains operands * * RETURN: Status * * DESCRIPTION: Create a new named alias * ******************************************************************************/ acpi_status acpi_ex_create_alias(struct acpi_walk_state *walk_state) { … } /******************************************************************************* * * FUNCTION: acpi_ex_create_event * * PARAMETERS: walk_state - Current state * * RETURN: Status * * DESCRIPTION: Create a new event object * ******************************************************************************/ acpi_status acpi_ex_create_event(struct acpi_walk_state *walk_state) { … } /******************************************************************************* * * FUNCTION: acpi_ex_create_mutex * * PARAMETERS: walk_state - Current state * * RETURN: Status * * DESCRIPTION: Create a new mutex object * * Mutex (Name[0], sync_level[1]) * ******************************************************************************/ acpi_status acpi_ex_create_mutex(struct acpi_walk_state *walk_state) { … } /******************************************************************************* * * FUNCTION: acpi_ex_create_region * * PARAMETERS: aml_start - Pointer to the region declaration AML * aml_length - Max length of the declaration AML * space_id - Address space ID for the region * walk_state - Current state * * RETURN: Status * * DESCRIPTION: Create a new operation region object * ******************************************************************************/ acpi_status acpi_ex_create_region(u8 * aml_start, u32 aml_length, u8 space_id, struct acpi_walk_state *walk_state) { … } /******************************************************************************* * * FUNCTION: acpi_ex_create_processor * * PARAMETERS: walk_state - Current state * * RETURN: Status * * DESCRIPTION: Create a new processor object and populate the fields * * Processor (Name[0], cpu_ID[1], pblock_addr[2], pblock_length[3]) * ******************************************************************************/ acpi_status acpi_ex_create_processor(struct acpi_walk_state *walk_state) { … } /******************************************************************************* * * FUNCTION: acpi_ex_create_power_resource * * PARAMETERS: walk_state - Current state * * RETURN: Status * * DESCRIPTION: Create a new power_resource object and populate the fields * * power_resource (Name[0], system_level[1], resource_order[2]) * ******************************************************************************/ acpi_status acpi_ex_create_power_resource(struct acpi_walk_state *walk_state) { … } /******************************************************************************* * * FUNCTION: acpi_ex_create_method * * PARAMETERS: aml_start - First byte of the method's AML * aml_length - AML byte count for this method * walk_state - Current state * * RETURN: Status * * DESCRIPTION: Create a new method object * ******************************************************************************/ acpi_status acpi_ex_create_method(u8 * aml_start, u32 aml_length, struct acpi_walk_state *walk_state) { … }