// SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /****************************************************************************** * * Module Name: exserial - field_unit support for serial address spaces * * Copyright (C) 2000 - 2023, Intel Corp. * *****************************************************************************/ #include <acpi/acpi.h> #include "accommon.h" #include "acdispat.h" #include "acinterp.h" #include "amlcode.h" #define _COMPONENT … ACPI_MODULE_NAME("exserial") /******************************************************************************* * * FUNCTION: acpi_ex_read_gpio * * PARAMETERS: obj_desc - The named field to read * buffer - Where the return data is returned * * RETURN: Status * * DESCRIPTION: Read from a named field that references a Generic Serial Bus * field * ******************************************************************************/ acpi_status acpi_ex_read_gpio(union acpi_operand_object *obj_desc, void *buffer) { … } /******************************************************************************* * * FUNCTION: acpi_ex_write_gpio * * PARAMETERS: source_desc - Contains data to write. Expect to be * an Integer object. * obj_desc - The named field * result_desc - Where the return value is returned, if any * * RETURN: Status * * DESCRIPTION: Write to a named field that references a General Purpose I/O * field. * ******************************************************************************/ acpi_status acpi_ex_write_gpio(union acpi_operand_object *source_desc, union acpi_operand_object *obj_desc, union acpi_operand_object **return_buffer) { … } /******************************************************************************* * * FUNCTION: acpi_ex_read_serial_bus * * PARAMETERS: obj_desc - The named field to read * return_buffer - Where the return value is returned, if any * * RETURN: Status * * DESCRIPTION: Read from a named field that references a serial bus * (SMBus, IPMI, or GSBus). * ******************************************************************************/ acpi_status acpi_ex_read_serial_bus(union acpi_operand_object *obj_desc, union acpi_operand_object **return_buffer) { … } /******************************************************************************* * * FUNCTION: acpi_ex_write_serial_bus * * PARAMETERS: source_desc - Contains data to write * obj_desc - The named field * return_buffer - Where the return value is returned, if any * * RETURN: Status * * DESCRIPTION: Write to a named field that references a serial bus * (SMBus, IPMI, GSBus). * ******************************************************************************/ acpi_status acpi_ex_write_serial_bus(union acpi_operand_object *source_desc, union acpi_operand_object *obj_desc, union acpi_operand_object **return_buffer) { … }