195b482a8SLen Brown /******************************************************************************* 295b482a8SLen Brown * 395b482a8SLen Brown * Module Name: rsinfo - Dispatch and Info tables 495b482a8SLen Brown * 595b482a8SLen Brown ******************************************************************************/ 695b482a8SLen Brown 795b482a8SLen Brown /* 87735ca0eSBob Moore * Copyright (C) 2000 - 2017, Intel Corp. 995b482a8SLen Brown * All rights reserved. 1095b482a8SLen Brown * 1195b482a8SLen Brown * Redistribution and use in source and binary forms, with or without 1295b482a8SLen Brown * modification, are permitted provided that the following conditions 1395b482a8SLen Brown * are met: 1495b482a8SLen Brown * 1. Redistributions of source code must retain the above copyright 1595b482a8SLen Brown * notice, this list of conditions, and the following disclaimer, 1695b482a8SLen Brown * without modification. 1795b482a8SLen Brown * 2. Redistributions in binary form must reproduce at minimum a disclaimer 1895b482a8SLen Brown * substantially similar to the "NO WARRANTY" disclaimer below 1995b482a8SLen Brown * ("Disclaimer") and any redistribution must be conditioned upon 2095b482a8SLen Brown * including a substantially similar Disclaimer requirement for further 2195b482a8SLen Brown * binary redistribution. 2295b482a8SLen Brown * 3. Neither the names of the above-listed copyright holders nor the names 2395b482a8SLen Brown * of any contributors may be used to endorse or promote products derived 2495b482a8SLen Brown * from this software without specific prior written permission. 2595b482a8SLen Brown * 2695b482a8SLen Brown * Alternatively, this software may be distributed under the terms of the 2795b482a8SLen Brown * GNU General Public License ("GPL") version 2 as published by the Free 2895b482a8SLen Brown * Software Foundation. 2995b482a8SLen Brown * 3095b482a8SLen Brown * NO WARRANTY 3195b482a8SLen Brown * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 3295b482a8SLen Brown * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 3395b482a8SLen Brown * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR 3495b482a8SLen Brown * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 3595b482a8SLen Brown * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 3695b482a8SLen Brown * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 3795b482a8SLen Brown * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 3895b482a8SLen Brown * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 3995b482a8SLen Brown * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 4095b482a8SLen Brown * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 4195b482a8SLen Brown * POSSIBILITY OF SUCH DAMAGES. 4295b482a8SLen Brown */ 4395b482a8SLen Brown 4495b482a8SLen Brown #include <acpi/acpi.h> 45e2f7a777SLen Brown #include "accommon.h" 46e2f7a777SLen Brown #include "acresrc.h" 4795b482a8SLen Brown 4895b482a8SLen Brown #define _COMPONENT ACPI_RESOURCES 4995b482a8SLen Brown ACPI_MODULE_NAME("rsinfo") 5095b482a8SLen Brown 5195b482a8SLen Brown /* 5295b482a8SLen Brown * Resource dispatch and information tables. Any new resource types (either 5395b482a8SLen Brown * Large or Small) must be reflected in each of these tables, so they are here 5495b482a8SLen Brown * in one place. 5595b482a8SLen Brown * 5695b482a8SLen Brown * The tables for Large descriptors are indexed by bits 6:0 of the AML 5795b482a8SLen Brown * descriptor type byte. The tables for Small descriptors are indexed by 5895b482a8SLen Brown * bits 6:3 of the descriptor byte. The tables for internal resource 5995b482a8SLen Brown * descriptors are indexed by the acpi_resource_type field. 6095b482a8SLen Brown */ 6195b482a8SLen Brown /* Dispatch table for resource-to-AML (Set Resource) conversion functions */ 6295b482a8SLen Brown struct acpi_rsconvert_info *acpi_gbl_set_resource_dispatch[] = { 6395b482a8SLen Brown acpi_rs_set_irq, /* 0x00, ACPI_RESOURCE_TYPE_IRQ */ 6495b482a8SLen Brown acpi_rs_convert_dma, /* 0x01, ACPI_RESOURCE_TYPE_DMA */ 6595b482a8SLen Brown acpi_rs_set_start_dpf, /* 0x02, ACPI_RESOURCE_TYPE_START_DEPENDENT */ 6695b482a8SLen Brown acpi_rs_convert_end_dpf, /* 0x03, ACPI_RESOURCE_TYPE_END_DEPENDENT */ 6795b482a8SLen Brown acpi_rs_convert_io, /* 0x04, ACPI_RESOURCE_TYPE_IO */ 6895b482a8SLen Brown acpi_rs_convert_fixed_io, /* 0x05, ACPI_RESOURCE_TYPE_FIXED_IO */ 6995b482a8SLen Brown acpi_rs_set_vendor, /* 0x06, ACPI_RESOURCE_TYPE_VENDOR */ 7095b482a8SLen Brown acpi_rs_convert_end_tag, /* 0x07, ACPI_RESOURCE_TYPE_END_TAG */ 7195b482a8SLen Brown acpi_rs_convert_memory24, /* 0x08, ACPI_RESOURCE_TYPE_MEMORY24 */ 7295b482a8SLen Brown acpi_rs_convert_memory32, /* 0x09, ACPI_RESOURCE_TYPE_MEMORY32 */ 7395b482a8SLen Brown acpi_rs_convert_fixed_memory32, /* 0x0A, ACPI_RESOURCE_TYPE_FIXED_MEMORY32 */ 7495b482a8SLen Brown acpi_rs_convert_address16, /* 0x0B, ACPI_RESOURCE_TYPE_ADDRESS16 */ 7595b482a8SLen Brown acpi_rs_convert_address32, /* 0x0C, ACPI_RESOURCE_TYPE_ADDRESS32 */ 7695b482a8SLen Brown acpi_rs_convert_address64, /* 0x0D, ACPI_RESOURCE_TYPE_ADDRESS64 */ 7795b482a8SLen Brown acpi_rs_convert_ext_address64, /* 0x0E, ACPI_RESOURCE_TYPE_EXTENDED_ADDRESS64 */ 7895b482a8SLen Brown acpi_rs_convert_ext_irq, /* 0x0F, ACPI_RESOURCE_TYPE_EXTENDED_IRQ */ 79e0fe0a8dSLin Ming acpi_rs_convert_generic_reg, /* 0x10, ACPI_RESOURCE_TYPE_GENERIC_REGISTER */ 80e0fe0a8dSLin Ming acpi_rs_convert_gpio, /* 0x11, ACPI_RESOURCE_TYPE_GPIO */ 81e0fe0a8dSLin Ming acpi_rs_convert_fixed_dma, /* 0x12, ACPI_RESOURCE_TYPE_FIXED_DMA */ 82e0fe0a8dSLin Ming NULL, /* 0x13, ACPI_RESOURCE_TYPE_SERIAL_BUS - Use subtype table below */ 832b726930SMika Westerberg acpi_rs_convert_pin_function, /* 0x14, ACPI_RESOURCE_TYPE_PIN_FUNCTION */ 8497028ce6SMika Westerberg acpi_rs_convert_pin_config, /* 0x15, ACPI_RESOURCE_TYPE_PIN_CONFIG */ 85*fdaa0980SMika Westerberg acpi_rs_convert_pin_group, /* 0x16, ACPI_RESOURCE_TYPE_PIN_GROUP */ 8695b482a8SLen Brown }; 8795b482a8SLen Brown 8895b482a8SLen Brown /* Dispatch tables for AML-to-resource (Get Resource) conversion functions */ 8995b482a8SLen Brown 9095b482a8SLen Brown struct acpi_rsconvert_info *acpi_gbl_get_resource_dispatch[] = { 9195b482a8SLen Brown /* Small descriptors */ 9295b482a8SLen Brown 9395b482a8SLen Brown NULL, /* 0x00, Reserved */ 9495b482a8SLen Brown NULL, /* 0x01, Reserved */ 9595b482a8SLen Brown NULL, /* 0x02, Reserved */ 9695b482a8SLen Brown NULL, /* 0x03, Reserved */ 9795b482a8SLen Brown acpi_rs_get_irq, /* 0x04, ACPI_RESOURCE_NAME_IRQ */ 9895b482a8SLen Brown acpi_rs_convert_dma, /* 0x05, ACPI_RESOURCE_NAME_DMA */ 9995b482a8SLen Brown acpi_rs_get_start_dpf, /* 0x06, ACPI_RESOURCE_NAME_START_DEPENDENT */ 10095b482a8SLen Brown acpi_rs_convert_end_dpf, /* 0x07, ACPI_RESOURCE_NAME_END_DEPENDENT */ 10195b482a8SLen Brown acpi_rs_convert_io, /* 0x08, ACPI_RESOURCE_NAME_IO */ 10295b482a8SLen Brown acpi_rs_convert_fixed_io, /* 0x09, ACPI_RESOURCE_NAME_FIXED_IO */ 103e0fe0a8dSLin Ming acpi_rs_convert_fixed_dma, /* 0x0A, ACPI_RESOURCE_NAME_FIXED_DMA */ 10495b482a8SLen Brown NULL, /* 0x0B, Reserved */ 10595b482a8SLen Brown NULL, /* 0x0C, Reserved */ 10695b482a8SLen Brown NULL, /* 0x0D, Reserved */ 10795b482a8SLen Brown acpi_rs_get_vendor_small, /* 0x0E, ACPI_RESOURCE_NAME_VENDOR_SMALL */ 10895b482a8SLen Brown acpi_rs_convert_end_tag, /* 0x0F, ACPI_RESOURCE_NAME_END_TAG */ 10995b482a8SLen Brown 11095b482a8SLen Brown /* Large descriptors */ 11195b482a8SLen Brown 11295b482a8SLen Brown NULL, /* 0x00, Reserved */ 11395b482a8SLen Brown acpi_rs_convert_memory24, /* 0x01, ACPI_RESOURCE_NAME_MEMORY24 */ 11495b482a8SLen Brown acpi_rs_convert_generic_reg, /* 0x02, ACPI_RESOURCE_NAME_GENERIC_REGISTER */ 11595b482a8SLen Brown NULL, /* 0x03, Reserved */ 11695b482a8SLen Brown acpi_rs_get_vendor_large, /* 0x04, ACPI_RESOURCE_NAME_VENDOR_LARGE */ 11795b482a8SLen Brown acpi_rs_convert_memory32, /* 0x05, ACPI_RESOURCE_NAME_MEMORY32 */ 11895b482a8SLen Brown acpi_rs_convert_fixed_memory32, /* 0x06, ACPI_RESOURCE_NAME_FIXED_MEMORY32 */ 11995b482a8SLen Brown acpi_rs_convert_address32, /* 0x07, ACPI_RESOURCE_NAME_ADDRESS32 */ 12095b482a8SLen Brown acpi_rs_convert_address16, /* 0x08, ACPI_RESOURCE_NAME_ADDRESS16 */ 12195b482a8SLen Brown acpi_rs_convert_ext_irq, /* 0x09, ACPI_RESOURCE_NAME_EXTENDED_IRQ */ 12295b482a8SLen Brown acpi_rs_convert_address64, /* 0x0A, ACPI_RESOURCE_NAME_ADDRESS64 */ 123e0fe0a8dSLin Ming acpi_rs_convert_ext_address64, /* 0x0B, ACPI_RESOURCE_NAME_EXTENDED_ADDRESS64 */ 124e0fe0a8dSLin Ming acpi_rs_convert_gpio, /* 0x0C, ACPI_RESOURCE_NAME_GPIO */ 1252b726930SMika Westerberg acpi_rs_convert_pin_function, /* 0x0D, ACPI_RESOURCE_NAME_PIN_FUNCTION */ 126e0fe0a8dSLin Ming NULL, /* 0x0E, ACPI_RESOURCE_NAME_SERIAL_BUS - Use subtype table below */ 12797028ce6SMika Westerberg acpi_rs_convert_pin_config, /* 0x0F, ACPI_RESOURCE_NAME_PIN_CONFIG */ 128*fdaa0980SMika Westerberg acpi_rs_convert_pin_group, /* 0x10, ACPI_RESOURCE_NAME_PIN_GROUP */ 129e0fe0a8dSLin Ming }; 130e0fe0a8dSLin Ming 131e0fe0a8dSLin Ming /* Subtype table for serial_bus -- I2C, SPI, and UART */ 132e0fe0a8dSLin Ming 133e0fe0a8dSLin Ming struct acpi_rsconvert_info *acpi_gbl_convert_resource_serial_bus_dispatch[] = { 134e0fe0a8dSLin Ming NULL, 135e0fe0a8dSLin Ming acpi_rs_convert_i2c_serial_bus, 136e0fe0a8dSLin Ming acpi_rs_convert_spi_serial_bus, 137e0fe0a8dSLin Ming acpi_rs_convert_uart_serial_bus, 13895b482a8SLen Brown }; 13995b482a8SLen Brown 1403334861bSLv Zheng #if defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DISASSEMBLER) || defined(ACPI_DEBUGGER) 14195b482a8SLen Brown 14295b482a8SLen Brown /* Dispatch table for resource dump functions */ 14395b482a8SLen Brown 14495b482a8SLen Brown struct acpi_rsdump_info *acpi_gbl_dump_resource_dispatch[] = { 14595b482a8SLen Brown acpi_rs_dump_irq, /* ACPI_RESOURCE_TYPE_IRQ */ 14695b482a8SLen Brown acpi_rs_dump_dma, /* ACPI_RESOURCE_TYPE_DMA */ 14795b482a8SLen Brown acpi_rs_dump_start_dpf, /* ACPI_RESOURCE_TYPE_START_DEPENDENT */ 14895b482a8SLen Brown acpi_rs_dump_end_dpf, /* ACPI_RESOURCE_TYPE_END_DEPENDENT */ 14995b482a8SLen Brown acpi_rs_dump_io, /* ACPI_RESOURCE_TYPE_IO */ 15095b482a8SLen Brown acpi_rs_dump_fixed_io, /* ACPI_RESOURCE_TYPE_FIXED_IO */ 15195b482a8SLen Brown acpi_rs_dump_vendor, /* ACPI_RESOURCE_TYPE_VENDOR */ 15295b482a8SLen Brown acpi_rs_dump_end_tag, /* ACPI_RESOURCE_TYPE_END_TAG */ 15395b482a8SLen Brown acpi_rs_dump_memory24, /* ACPI_RESOURCE_TYPE_MEMORY24 */ 15495b482a8SLen Brown acpi_rs_dump_memory32, /* ACPI_RESOURCE_TYPE_MEMORY32 */ 15595b482a8SLen Brown acpi_rs_dump_fixed_memory32, /* ACPI_RESOURCE_TYPE_FIXED_MEMORY32 */ 15695b482a8SLen Brown acpi_rs_dump_address16, /* ACPI_RESOURCE_TYPE_ADDRESS16 */ 15795b482a8SLen Brown acpi_rs_dump_address32, /* ACPI_RESOURCE_TYPE_ADDRESS32 */ 15895b482a8SLen Brown acpi_rs_dump_address64, /* ACPI_RESOURCE_TYPE_ADDRESS64 */ 15995b482a8SLen Brown acpi_rs_dump_ext_address64, /* ACPI_RESOURCE_TYPE_EXTENDED_ADDRESS64 */ 16095b482a8SLen Brown acpi_rs_dump_ext_irq, /* ACPI_RESOURCE_TYPE_EXTENDED_IRQ */ 16195b482a8SLen Brown acpi_rs_dump_generic_reg, /* ACPI_RESOURCE_TYPE_GENERIC_REGISTER */ 162e0fe0a8dSLin Ming acpi_rs_dump_gpio, /* ACPI_RESOURCE_TYPE_GPIO */ 163e0fe0a8dSLin Ming acpi_rs_dump_fixed_dma, /* ACPI_RESOURCE_TYPE_FIXED_DMA */ 164e0fe0a8dSLin Ming NULL, /* ACPI_RESOURCE_TYPE_SERIAL_BUS */ 1652b726930SMika Westerberg acpi_rs_dump_pin_function, /* ACPI_RESOURCE_TYPE_PIN_FUNCTION */ 16697028ce6SMika Westerberg acpi_rs_dump_pin_config, /* ACPI_RESOURCE_TYPE_PIN_CONFIG */ 167*fdaa0980SMika Westerberg acpi_rs_dump_pin_group, /* ACPI_RESOURCE_TYPE_PIN_GROUP */ 168e0fe0a8dSLin Ming }; 169e0fe0a8dSLin Ming 170e0fe0a8dSLin Ming struct acpi_rsdump_info *acpi_gbl_dump_serial_bus_dispatch[] = { 171e0fe0a8dSLin Ming NULL, 172e0fe0a8dSLin Ming acpi_rs_dump_i2c_serial_bus, /* AML_RESOURCE_I2C_BUS_TYPE */ 173e0fe0a8dSLin Ming acpi_rs_dump_spi_serial_bus, /* AML_RESOURCE_SPI_BUS_TYPE */ 174e0fe0a8dSLin Ming acpi_rs_dump_uart_serial_bus, /* AML_RESOURCE_UART_BUS_TYPE */ 17595b482a8SLen Brown }; 17695b482a8SLen Brown #endif 17795b482a8SLen Brown 17895b482a8SLen Brown /* 17995b482a8SLen Brown * Base sizes for external AML resource descriptors, indexed by internal type. 18095b482a8SLen Brown * Includes size of the descriptor header (1 byte for small descriptors, 18195b482a8SLen Brown * 3 bytes for large descriptors) 18295b482a8SLen Brown */ 18395b482a8SLen Brown const u8 acpi_gbl_aml_resource_sizes[] = { 18495b482a8SLen Brown sizeof(struct aml_resource_irq), /* ACPI_RESOURCE_TYPE_IRQ (optional Byte 3 always created) */ 18595b482a8SLen Brown sizeof(struct aml_resource_dma), /* ACPI_RESOURCE_TYPE_DMA */ 18695b482a8SLen Brown sizeof(struct aml_resource_start_dependent), /* ACPI_RESOURCE_TYPE_START_DEPENDENT (optional Byte 1 always created) */ 18795b482a8SLen Brown sizeof(struct aml_resource_end_dependent), /* ACPI_RESOURCE_TYPE_END_DEPENDENT */ 18895b482a8SLen Brown sizeof(struct aml_resource_io), /* ACPI_RESOURCE_TYPE_IO */ 18995b482a8SLen Brown sizeof(struct aml_resource_fixed_io), /* ACPI_RESOURCE_TYPE_FIXED_IO */ 19095b482a8SLen Brown sizeof(struct aml_resource_vendor_small), /* ACPI_RESOURCE_TYPE_VENDOR */ 19195b482a8SLen Brown sizeof(struct aml_resource_end_tag), /* ACPI_RESOURCE_TYPE_END_TAG */ 19295b482a8SLen Brown sizeof(struct aml_resource_memory24), /* ACPI_RESOURCE_TYPE_MEMORY24 */ 19395b482a8SLen Brown sizeof(struct aml_resource_memory32), /* ACPI_RESOURCE_TYPE_MEMORY32 */ 19495b482a8SLen Brown sizeof(struct aml_resource_fixed_memory32), /* ACPI_RESOURCE_TYPE_FIXED_MEMORY32 */ 19595b482a8SLen Brown sizeof(struct aml_resource_address16), /* ACPI_RESOURCE_TYPE_ADDRESS16 */ 19695b482a8SLen Brown sizeof(struct aml_resource_address32), /* ACPI_RESOURCE_TYPE_ADDRESS32 */ 19795b482a8SLen Brown sizeof(struct aml_resource_address64), /* ACPI_RESOURCE_TYPE_ADDRESS64 */ 19895b482a8SLen Brown sizeof(struct aml_resource_extended_address64), /*ACPI_RESOURCE_TYPE_EXTENDED_ADDRESS64 */ 19995b482a8SLen Brown sizeof(struct aml_resource_extended_irq), /* ACPI_RESOURCE_TYPE_EXTENDED_IRQ */ 200e0fe0a8dSLin Ming sizeof(struct aml_resource_generic_register), /* ACPI_RESOURCE_TYPE_GENERIC_REGISTER */ 201e0fe0a8dSLin Ming sizeof(struct aml_resource_gpio), /* ACPI_RESOURCE_TYPE_GPIO */ 202e0fe0a8dSLin Ming sizeof(struct aml_resource_fixed_dma), /* ACPI_RESOURCE_TYPE_FIXED_DMA */ 203e0fe0a8dSLin Ming sizeof(struct aml_resource_common_serialbus), /* ACPI_RESOURCE_TYPE_SERIAL_BUS */ 2042b726930SMika Westerberg sizeof(struct aml_resource_pin_function), /* ACPI_RESOURCE_TYPE_PIN_FUNCTION */ 20597028ce6SMika Westerberg sizeof(struct aml_resource_pin_config), /* ACPI_RESOURCE_TYPE_PIN_CONFIG */ 206*fdaa0980SMika Westerberg sizeof(struct aml_resource_pin_group), /* ACPI_RESOURCE_TYPE_PIN_GROUP */ 20795b482a8SLen Brown }; 20895b482a8SLen Brown 20995b482a8SLen Brown const u8 acpi_gbl_resource_struct_sizes[] = { 21095b482a8SLen Brown /* Small descriptors */ 21195b482a8SLen Brown 21295b482a8SLen Brown 0, 21395b482a8SLen Brown 0, 21495b482a8SLen Brown 0, 21595b482a8SLen Brown 0, 21695b482a8SLen Brown ACPI_RS_SIZE(struct acpi_resource_irq), 21795b482a8SLen Brown ACPI_RS_SIZE(struct acpi_resource_dma), 21895b482a8SLen Brown ACPI_RS_SIZE(struct acpi_resource_start_dependent), 21995b482a8SLen Brown ACPI_RS_SIZE_MIN, 22095b482a8SLen Brown ACPI_RS_SIZE(struct acpi_resource_io), 22195b482a8SLen Brown ACPI_RS_SIZE(struct acpi_resource_fixed_io), 222e0fe0a8dSLin Ming ACPI_RS_SIZE(struct acpi_resource_fixed_dma), 22395b482a8SLen Brown 0, 22495b482a8SLen Brown 0, 22595b482a8SLen Brown 0, 22695b482a8SLen Brown ACPI_RS_SIZE(struct acpi_resource_vendor), 22795b482a8SLen Brown ACPI_RS_SIZE_MIN, 22895b482a8SLen Brown 22995b482a8SLen Brown /* Large descriptors */ 23095b482a8SLen Brown 23195b482a8SLen Brown 0, 23295b482a8SLen Brown ACPI_RS_SIZE(struct acpi_resource_memory24), 23395b482a8SLen Brown ACPI_RS_SIZE(struct acpi_resource_generic_register), 23495b482a8SLen Brown 0, 23595b482a8SLen Brown ACPI_RS_SIZE(struct acpi_resource_vendor), 23695b482a8SLen Brown ACPI_RS_SIZE(struct acpi_resource_memory32), 23795b482a8SLen Brown ACPI_RS_SIZE(struct acpi_resource_fixed_memory32), 23895b482a8SLen Brown ACPI_RS_SIZE(struct acpi_resource_address32), 23995b482a8SLen Brown ACPI_RS_SIZE(struct acpi_resource_address16), 24095b482a8SLen Brown ACPI_RS_SIZE(struct acpi_resource_extended_irq), 24195b482a8SLen Brown ACPI_RS_SIZE(struct acpi_resource_address64), 242e0fe0a8dSLin Ming ACPI_RS_SIZE(struct acpi_resource_extended_address64), 243e0fe0a8dSLin Ming ACPI_RS_SIZE(struct acpi_resource_gpio), 2442b726930SMika Westerberg ACPI_RS_SIZE(struct acpi_resource_pin_function), 24597028ce6SMika Westerberg ACPI_RS_SIZE(struct acpi_resource_common_serialbus), 24697028ce6SMika Westerberg ACPI_RS_SIZE(struct acpi_resource_pin_config), 247*fdaa0980SMika Westerberg ACPI_RS_SIZE(struct acpi_resource_pin_group), 248e0fe0a8dSLin Ming }; 249e0fe0a8dSLin Ming 250e0fe0a8dSLin Ming const u8 acpi_gbl_aml_resource_serial_bus_sizes[] = { 251e0fe0a8dSLin Ming 0, 252e0fe0a8dSLin Ming sizeof(struct aml_resource_i2c_serialbus), 253e0fe0a8dSLin Ming sizeof(struct aml_resource_spi_serialbus), 254e0fe0a8dSLin Ming sizeof(struct aml_resource_uart_serialbus), 255e0fe0a8dSLin Ming }; 256e0fe0a8dSLin Ming 257e0fe0a8dSLin Ming const u8 acpi_gbl_resource_struct_serial_bus_sizes[] = { 258e0fe0a8dSLin Ming 0, 259e0fe0a8dSLin Ming ACPI_RS_SIZE(struct acpi_resource_i2c_serialbus), 260e0fe0a8dSLin Ming ACPI_RS_SIZE(struct acpi_resource_spi_serialbus), 261e0fe0a8dSLin Ming ACPI_RS_SIZE(struct acpi_resource_uart_serialbus), 26295b482a8SLen Brown }; 263