xref: /openbmc/linux/drivers/acpi/acpica/rsinfo.c (revision 1ac731c529cd4d6adbce134754b51ff7d822b145)
195857638SErik Schmauss // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0
295b482a8SLen Brown /*******************************************************************************
395b482a8SLen Brown  *
495b482a8SLen Brown  * Module Name: rsinfo - Dispatch and Info tables
595b482a8SLen Brown  *
695b482a8SLen Brown  ******************************************************************************/
795b482a8SLen Brown 
895b482a8SLen Brown #include <acpi/acpi.h>
9e2f7a777SLen Brown #include "accommon.h"
10e2f7a777SLen Brown #include "acresrc.h"
1195b482a8SLen Brown 
1295b482a8SLen Brown #define _COMPONENT          ACPI_RESOURCES
1395b482a8SLen Brown ACPI_MODULE_NAME("rsinfo")
1495b482a8SLen Brown 
1595b482a8SLen Brown /*
1695b482a8SLen Brown  * Resource dispatch and information tables. Any new resource types (either
1795b482a8SLen Brown  * Large or Small) must be reflected in each of these tables, so they are here
1895b482a8SLen Brown  * in one place.
1995b482a8SLen Brown  *
2095b482a8SLen Brown  * The tables for Large descriptors are indexed by bits 6:0 of the AML
2195b482a8SLen Brown  * descriptor type byte. The tables for Small descriptors are indexed by
2295b482a8SLen Brown  * bits 6:3 of the descriptor byte. The tables for internal resource
2395b482a8SLen Brown  * descriptors are indexed by the acpi_resource_type field.
2495b482a8SLen Brown  */
2595b482a8SLen Brown /* Dispatch table for resource-to-AML (Set Resource) conversion functions */
2695b482a8SLen Brown struct acpi_rsconvert_info *acpi_gbl_set_resource_dispatch[] = {
2795b482a8SLen Brown 	acpi_rs_set_irq,	/* 0x00, ACPI_RESOURCE_TYPE_IRQ */
2895b482a8SLen Brown 	acpi_rs_convert_dma,	/* 0x01, ACPI_RESOURCE_TYPE_DMA */
2995b482a8SLen Brown 	acpi_rs_set_start_dpf,	/* 0x02, ACPI_RESOURCE_TYPE_START_DEPENDENT */
3095b482a8SLen Brown 	acpi_rs_convert_end_dpf,	/* 0x03, ACPI_RESOURCE_TYPE_END_DEPENDENT */
3195b482a8SLen Brown 	acpi_rs_convert_io,	/* 0x04, ACPI_RESOURCE_TYPE_IO */
3295b482a8SLen Brown 	acpi_rs_convert_fixed_io,	/* 0x05, ACPI_RESOURCE_TYPE_FIXED_IO */
3395b482a8SLen Brown 	acpi_rs_set_vendor,	/* 0x06, ACPI_RESOURCE_TYPE_VENDOR */
3495b482a8SLen Brown 	acpi_rs_convert_end_tag,	/* 0x07, ACPI_RESOURCE_TYPE_END_TAG */
3595b482a8SLen Brown 	acpi_rs_convert_memory24,	/* 0x08, ACPI_RESOURCE_TYPE_MEMORY24 */
3695b482a8SLen Brown 	acpi_rs_convert_memory32,	/* 0x09, ACPI_RESOURCE_TYPE_MEMORY32 */
3795b482a8SLen Brown 	acpi_rs_convert_fixed_memory32,	/* 0x0A, ACPI_RESOURCE_TYPE_FIXED_MEMORY32 */
3895b482a8SLen Brown 	acpi_rs_convert_address16,	/* 0x0B, ACPI_RESOURCE_TYPE_ADDRESS16 */
3995b482a8SLen Brown 	acpi_rs_convert_address32,	/* 0x0C, ACPI_RESOURCE_TYPE_ADDRESS32 */
4095b482a8SLen Brown 	acpi_rs_convert_address64,	/* 0x0D, ACPI_RESOURCE_TYPE_ADDRESS64 */
4195b482a8SLen Brown 	acpi_rs_convert_ext_address64,	/* 0x0E, ACPI_RESOURCE_TYPE_EXTENDED_ADDRESS64 */
4295b482a8SLen Brown 	acpi_rs_convert_ext_irq,	/* 0x0F, ACPI_RESOURCE_TYPE_EXTENDED_IRQ */
43e0fe0a8dSLin Ming 	acpi_rs_convert_generic_reg,	/* 0x10, ACPI_RESOURCE_TYPE_GENERIC_REGISTER */
44e0fe0a8dSLin Ming 	acpi_rs_convert_gpio,	/* 0x11, ACPI_RESOURCE_TYPE_GPIO */
45e0fe0a8dSLin Ming 	acpi_rs_convert_fixed_dma,	/* 0x12, ACPI_RESOURCE_TYPE_FIXED_DMA */
46e0fe0a8dSLin Ming 	NULL,			/* 0x13, ACPI_RESOURCE_TYPE_SERIAL_BUS - Use subtype table below */
472b726930SMika Westerberg 	acpi_rs_convert_pin_function,	/* 0x14, ACPI_RESOURCE_TYPE_PIN_FUNCTION */
4897028ce6SMika Westerberg 	acpi_rs_convert_pin_config,	/* 0x15, ACPI_RESOURCE_TYPE_PIN_CONFIG */
49fdaa0980SMika Westerberg 	acpi_rs_convert_pin_group,	/* 0x16, ACPI_RESOURCE_TYPE_PIN_GROUP */
50f8a6c866SMika Westerberg 	acpi_rs_convert_pin_group_function,	/* 0x17, ACPI_RESOURCE_TYPE_PIN_GROUP_FUNCTION */
51044b7239SMika Westerberg 	acpi_rs_convert_pin_group_config,	/* 0x18, ACPI_RESOURCE_TYPE_PIN_GROUP_CONFIG */
52*520d4a0eSNiyas Sait 	acpi_rs_convert_clock_input,	/* 0x19, ACPI_RESOURCE_TYPE_CLOCK_INPUT */
5395b482a8SLen Brown };
5495b482a8SLen Brown 
5595b482a8SLen Brown /* Dispatch tables for AML-to-resource (Get Resource) conversion functions */
5695b482a8SLen Brown 
5795b482a8SLen Brown struct acpi_rsconvert_info *acpi_gbl_get_resource_dispatch[] = {
5895b482a8SLen Brown 	/* Small descriptors */
5995b482a8SLen Brown 
6095b482a8SLen Brown 	NULL,			/* 0x00, Reserved */
6195b482a8SLen Brown 	NULL,			/* 0x01, Reserved */
6295b482a8SLen Brown 	NULL,			/* 0x02, Reserved */
6395b482a8SLen Brown 	NULL,			/* 0x03, Reserved */
6495b482a8SLen Brown 	acpi_rs_get_irq,	/* 0x04, ACPI_RESOURCE_NAME_IRQ */
6595b482a8SLen Brown 	acpi_rs_convert_dma,	/* 0x05, ACPI_RESOURCE_NAME_DMA */
6695b482a8SLen Brown 	acpi_rs_get_start_dpf,	/* 0x06, ACPI_RESOURCE_NAME_START_DEPENDENT */
6795b482a8SLen Brown 	acpi_rs_convert_end_dpf,	/* 0x07, ACPI_RESOURCE_NAME_END_DEPENDENT */
6895b482a8SLen Brown 	acpi_rs_convert_io,	/* 0x08, ACPI_RESOURCE_NAME_IO */
6995b482a8SLen Brown 	acpi_rs_convert_fixed_io,	/* 0x09, ACPI_RESOURCE_NAME_FIXED_IO */
70e0fe0a8dSLin Ming 	acpi_rs_convert_fixed_dma,	/* 0x0A, ACPI_RESOURCE_NAME_FIXED_DMA */
7195b482a8SLen Brown 	NULL,			/* 0x0B, Reserved */
7295b482a8SLen Brown 	NULL,			/* 0x0C, Reserved */
7395b482a8SLen Brown 	NULL,			/* 0x0D, Reserved */
7495b482a8SLen Brown 	acpi_rs_get_vendor_small,	/* 0x0E, ACPI_RESOURCE_NAME_VENDOR_SMALL */
7595b482a8SLen Brown 	acpi_rs_convert_end_tag,	/* 0x0F, ACPI_RESOURCE_NAME_END_TAG */
7695b482a8SLen Brown 
7795b482a8SLen Brown 	/* Large descriptors */
7895b482a8SLen Brown 
7995b482a8SLen Brown 	NULL,			/* 0x00, Reserved */
8095b482a8SLen Brown 	acpi_rs_convert_memory24,	/* 0x01, ACPI_RESOURCE_NAME_MEMORY24 */
8195b482a8SLen Brown 	acpi_rs_convert_generic_reg,	/* 0x02, ACPI_RESOURCE_NAME_GENERIC_REGISTER */
8295b482a8SLen Brown 	NULL,			/* 0x03, Reserved */
8395b482a8SLen Brown 	acpi_rs_get_vendor_large,	/* 0x04, ACPI_RESOURCE_NAME_VENDOR_LARGE */
8495b482a8SLen Brown 	acpi_rs_convert_memory32,	/* 0x05, ACPI_RESOURCE_NAME_MEMORY32 */
8595b482a8SLen Brown 	acpi_rs_convert_fixed_memory32,	/* 0x06, ACPI_RESOURCE_NAME_FIXED_MEMORY32 */
8695b482a8SLen Brown 	acpi_rs_convert_address32,	/* 0x07, ACPI_RESOURCE_NAME_ADDRESS32 */
8795b482a8SLen Brown 	acpi_rs_convert_address16,	/* 0x08, ACPI_RESOURCE_NAME_ADDRESS16 */
8895b482a8SLen Brown 	acpi_rs_convert_ext_irq,	/* 0x09, ACPI_RESOURCE_NAME_EXTENDED_IRQ */
8995b482a8SLen Brown 	acpi_rs_convert_address64,	/* 0x0A, ACPI_RESOURCE_NAME_ADDRESS64 */
90e0fe0a8dSLin Ming 	acpi_rs_convert_ext_address64,	/* 0x0B, ACPI_RESOURCE_NAME_EXTENDED_ADDRESS64 */
91e0fe0a8dSLin Ming 	acpi_rs_convert_gpio,	/* 0x0C, ACPI_RESOURCE_NAME_GPIO */
922b726930SMika Westerberg 	acpi_rs_convert_pin_function,	/* 0x0D, ACPI_RESOURCE_NAME_PIN_FUNCTION */
93e0fe0a8dSLin Ming 	NULL,			/* 0x0E, ACPI_RESOURCE_NAME_SERIAL_BUS - Use subtype table below */
9497028ce6SMika Westerberg 	acpi_rs_convert_pin_config,	/* 0x0F, ACPI_RESOURCE_NAME_PIN_CONFIG */
95fdaa0980SMika Westerberg 	acpi_rs_convert_pin_group,	/* 0x10, ACPI_RESOURCE_NAME_PIN_GROUP */
96f8a6c866SMika Westerberg 	acpi_rs_convert_pin_group_function,	/* 0x11, ACPI_RESOURCE_NAME_PIN_GROUP_FUNCTION */
97044b7239SMika Westerberg 	acpi_rs_convert_pin_group_config,	/* 0x12, ACPI_RESOURCE_NAME_PIN_GROUP_CONFIG */
98*520d4a0eSNiyas Sait 	acpi_rs_convert_clock_input,	/* 0x13, ACPI_RESOURCE_NAME_CLOCK_INPUT */
99e0fe0a8dSLin Ming };
100e0fe0a8dSLin Ming 
101a2befbb2SBob Moore /* Subtype table for serial_bus -- I2C, SPI, UART, and CSI2 */
102e0fe0a8dSLin Ming 
103e0fe0a8dSLin Ming struct acpi_rsconvert_info *acpi_gbl_convert_resource_serial_bus_dispatch[] = {
104e0fe0a8dSLin Ming 	NULL,
105e0fe0a8dSLin Ming 	acpi_rs_convert_i2c_serial_bus,
106e0fe0a8dSLin Ming 	acpi_rs_convert_spi_serial_bus,
107e0fe0a8dSLin Ming 	acpi_rs_convert_uart_serial_bus,
108a2befbb2SBob Moore 	acpi_rs_convert_csi2_serial_bus
10995b482a8SLen Brown };
11095b482a8SLen Brown 
1113334861bSLv Zheng #if defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DISASSEMBLER) || defined(ACPI_DEBUGGER)
11295b482a8SLen Brown 
11395b482a8SLen Brown /* Dispatch table for resource dump functions */
11495b482a8SLen Brown 
11595b482a8SLen Brown struct acpi_rsdump_info *acpi_gbl_dump_resource_dispatch[] = {
11695b482a8SLen Brown 	acpi_rs_dump_irq,	/* ACPI_RESOURCE_TYPE_IRQ */
11795b482a8SLen Brown 	acpi_rs_dump_dma,	/* ACPI_RESOURCE_TYPE_DMA */
11895b482a8SLen Brown 	acpi_rs_dump_start_dpf,	/* ACPI_RESOURCE_TYPE_START_DEPENDENT */
11995b482a8SLen Brown 	acpi_rs_dump_end_dpf,	/* ACPI_RESOURCE_TYPE_END_DEPENDENT */
12095b482a8SLen Brown 	acpi_rs_dump_io,	/* ACPI_RESOURCE_TYPE_IO */
12195b482a8SLen Brown 	acpi_rs_dump_fixed_io,	/* ACPI_RESOURCE_TYPE_FIXED_IO */
12295b482a8SLen Brown 	acpi_rs_dump_vendor,	/* ACPI_RESOURCE_TYPE_VENDOR */
12395b482a8SLen Brown 	acpi_rs_dump_end_tag,	/* ACPI_RESOURCE_TYPE_END_TAG */
12495b482a8SLen Brown 	acpi_rs_dump_memory24,	/* ACPI_RESOURCE_TYPE_MEMORY24 */
12595b482a8SLen Brown 	acpi_rs_dump_memory32,	/* ACPI_RESOURCE_TYPE_MEMORY32 */
12695b482a8SLen Brown 	acpi_rs_dump_fixed_memory32,	/* ACPI_RESOURCE_TYPE_FIXED_MEMORY32 */
12795b482a8SLen Brown 	acpi_rs_dump_address16,	/* ACPI_RESOURCE_TYPE_ADDRESS16 */
12895b482a8SLen Brown 	acpi_rs_dump_address32,	/* ACPI_RESOURCE_TYPE_ADDRESS32 */
12995b482a8SLen Brown 	acpi_rs_dump_address64,	/* ACPI_RESOURCE_TYPE_ADDRESS64 */
13095b482a8SLen Brown 	acpi_rs_dump_ext_address64,	/* ACPI_RESOURCE_TYPE_EXTENDED_ADDRESS64 */
13195b482a8SLen Brown 	acpi_rs_dump_ext_irq,	/* ACPI_RESOURCE_TYPE_EXTENDED_IRQ */
13295b482a8SLen Brown 	acpi_rs_dump_generic_reg,	/* ACPI_RESOURCE_TYPE_GENERIC_REGISTER */
133e0fe0a8dSLin Ming 	acpi_rs_dump_gpio,	/* ACPI_RESOURCE_TYPE_GPIO */
134e0fe0a8dSLin Ming 	acpi_rs_dump_fixed_dma,	/* ACPI_RESOURCE_TYPE_FIXED_DMA */
135e0fe0a8dSLin Ming 	NULL,			/* ACPI_RESOURCE_TYPE_SERIAL_BUS */
1362b726930SMika Westerberg 	acpi_rs_dump_pin_function,	/* ACPI_RESOURCE_TYPE_PIN_FUNCTION */
13797028ce6SMika Westerberg 	acpi_rs_dump_pin_config,	/* ACPI_RESOURCE_TYPE_PIN_CONFIG */
138fdaa0980SMika Westerberg 	acpi_rs_dump_pin_group,	/* ACPI_RESOURCE_TYPE_PIN_GROUP */
139f8a6c866SMika Westerberg 	acpi_rs_dump_pin_group_function,	/* ACPI_RESOURCE_TYPE_PIN_GROUP_FUNCTION */
140044b7239SMika Westerberg 	acpi_rs_dump_pin_group_config,	/* ACPI_RESOURCE_TYPE_PIN_GROUP_CONFIG */
141*520d4a0eSNiyas Sait 	acpi_rs_dump_clock_input,	/* ACPI_RESOURCE_TYPE_CLOCK_INPUT */
142e0fe0a8dSLin Ming };
143e0fe0a8dSLin Ming 
144e0fe0a8dSLin Ming struct acpi_rsdump_info *acpi_gbl_dump_serial_bus_dispatch[] = {
145e0fe0a8dSLin Ming 	NULL,
146e0fe0a8dSLin Ming 	acpi_rs_dump_i2c_serial_bus,	/* AML_RESOURCE_I2C_BUS_TYPE */
147e0fe0a8dSLin Ming 	acpi_rs_dump_spi_serial_bus,	/* AML_RESOURCE_SPI_BUS_TYPE */
148e0fe0a8dSLin Ming 	acpi_rs_dump_uart_serial_bus,	/* AML_RESOURCE_UART_BUS_TYPE */
149a2befbb2SBob Moore 	acpi_rs_dump_csi2_serial_bus,	/* AML_RESOURCE_CSI2_BUS_TYPE */
15095b482a8SLen Brown };
15195b482a8SLen Brown #endif
15295b482a8SLen Brown 
15395b482a8SLen Brown /*
15495b482a8SLen Brown  * Base sizes for external AML resource descriptors, indexed by internal type.
15595b482a8SLen Brown  * Includes size of the descriptor header (1 byte for small descriptors,
15695b482a8SLen Brown  * 3 bytes for large descriptors)
15795b482a8SLen Brown  */
15895b482a8SLen Brown const u8 acpi_gbl_aml_resource_sizes[] = {
15995b482a8SLen Brown 	sizeof(struct aml_resource_irq),	/* ACPI_RESOURCE_TYPE_IRQ (optional Byte 3 always created) */
16095b482a8SLen Brown 	sizeof(struct aml_resource_dma),	/* ACPI_RESOURCE_TYPE_DMA */
16195b482a8SLen Brown 	sizeof(struct aml_resource_start_dependent),	/* ACPI_RESOURCE_TYPE_START_DEPENDENT (optional Byte 1 always created) */
16295b482a8SLen Brown 	sizeof(struct aml_resource_end_dependent),	/* ACPI_RESOURCE_TYPE_END_DEPENDENT */
16395b482a8SLen Brown 	sizeof(struct aml_resource_io),	/* ACPI_RESOURCE_TYPE_IO */
16495b482a8SLen Brown 	sizeof(struct aml_resource_fixed_io),	/* ACPI_RESOURCE_TYPE_FIXED_IO */
16595b482a8SLen Brown 	sizeof(struct aml_resource_vendor_small),	/* ACPI_RESOURCE_TYPE_VENDOR */
16695b482a8SLen Brown 	sizeof(struct aml_resource_end_tag),	/* ACPI_RESOURCE_TYPE_END_TAG */
16795b482a8SLen Brown 	sizeof(struct aml_resource_memory24),	/* ACPI_RESOURCE_TYPE_MEMORY24 */
16895b482a8SLen Brown 	sizeof(struct aml_resource_memory32),	/* ACPI_RESOURCE_TYPE_MEMORY32 */
16995b482a8SLen Brown 	sizeof(struct aml_resource_fixed_memory32),	/* ACPI_RESOURCE_TYPE_FIXED_MEMORY32 */
17095b482a8SLen Brown 	sizeof(struct aml_resource_address16),	/* ACPI_RESOURCE_TYPE_ADDRESS16 */
17195b482a8SLen Brown 	sizeof(struct aml_resource_address32),	/* ACPI_RESOURCE_TYPE_ADDRESS32 */
17295b482a8SLen Brown 	sizeof(struct aml_resource_address64),	/* ACPI_RESOURCE_TYPE_ADDRESS64 */
17395b482a8SLen Brown 	sizeof(struct aml_resource_extended_address64),	/*ACPI_RESOURCE_TYPE_EXTENDED_ADDRESS64 */
17495b482a8SLen Brown 	sizeof(struct aml_resource_extended_irq),	/* ACPI_RESOURCE_TYPE_EXTENDED_IRQ */
175e0fe0a8dSLin Ming 	sizeof(struct aml_resource_generic_register),	/* ACPI_RESOURCE_TYPE_GENERIC_REGISTER */
176e0fe0a8dSLin Ming 	sizeof(struct aml_resource_gpio),	/* ACPI_RESOURCE_TYPE_GPIO */
177e0fe0a8dSLin Ming 	sizeof(struct aml_resource_fixed_dma),	/* ACPI_RESOURCE_TYPE_FIXED_DMA */
178e0fe0a8dSLin Ming 	sizeof(struct aml_resource_common_serialbus),	/* ACPI_RESOURCE_TYPE_SERIAL_BUS */
1792b726930SMika Westerberg 	sizeof(struct aml_resource_pin_function),	/* ACPI_RESOURCE_TYPE_PIN_FUNCTION */
18097028ce6SMika Westerberg 	sizeof(struct aml_resource_pin_config),	/* ACPI_RESOURCE_TYPE_PIN_CONFIG */
181fdaa0980SMika Westerberg 	sizeof(struct aml_resource_pin_group),	/* ACPI_RESOURCE_TYPE_PIN_GROUP */
182f8a6c866SMika Westerberg 	sizeof(struct aml_resource_pin_group_function),	/* ACPI_RESOURCE_TYPE_PIN_GROUP_FUNCTION */
183044b7239SMika Westerberg 	sizeof(struct aml_resource_pin_group_config),	/* ACPI_RESOURCE_TYPE_PIN_GROUP_CONFIG */
184*520d4a0eSNiyas Sait 	sizeof(struct aml_resource_clock_input),	/* ACPI_RESOURCE_TYPE_CLOCK_INPUT */
18595b482a8SLen Brown };
18695b482a8SLen Brown 
18795b482a8SLen Brown const u8 acpi_gbl_resource_struct_sizes[] = {
18895b482a8SLen Brown 	/* Small descriptors */
18995b482a8SLen Brown 
19095b482a8SLen Brown 	0,
19195b482a8SLen Brown 	0,
19295b482a8SLen Brown 	0,
19395b482a8SLen Brown 	0,
19495b482a8SLen Brown 	ACPI_RS_SIZE(struct acpi_resource_irq),
19595b482a8SLen Brown 	ACPI_RS_SIZE(struct acpi_resource_dma),
19695b482a8SLen Brown 	ACPI_RS_SIZE(struct acpi_resource_start_dependent),
19795b482a8SLen Brown 	ACPI_RS_SIZE_MIN,
19895b482a8SLen Brown 	ACPI_RS_SIZE(struct acpi_resource_io),
19995b482a8SLen Brown 	ACPI_RS_SIZE(struct acpi_resource_fixed_io),
200e0fe0a8dSLin Ming 	ACPI_RS_SIZE(struct acpi_resource_fixed_dma),
20195b482a8SLen Brown 	0,
20295b482a8SLen Brown 	0,
20395b482a8SLen Brown 	0,
20495b482a8SLen Brown 	ACPI_RS_SIZE(struct acpi_resource_vendor),
20595b482a8SLen Brown 	ACPI_RS_SIZE_MIN,
20695b482a8SLen Brown 
20795b482a8SLen Brown 	/* Large descriptors */
20895b482a8SLen Brown 
20995b482a8SLen Brown 	0,
21095b482a8SLen Brown 	ACPI_RS_SIZE(struct acpi_resource_memory24),
21195b482a8SLen Brown 	ACPI_RS_SIZE(struct acpi_resource_generic_register),
21295b482a8SLen Brown 	0,
21395b482a8SLen Brown 	ACPI_RS_SIZE(struct acpi_resource_vendor),
21495b482a8SLen Brown 	ACPI_RS_SIZE(struct acpi_resource_memory32),
21595b482a8SLen Brown 	ACPI_RS_SIZE(struct acpi_resource_fixed_memory32),
21695b482a8SLen Brown 	ACPI_RS_SIZE(struct acpi_resource_address32),
21795b482a8SLen Brown 	ACPI_RS_SIZE(struct acpi_resource_address16),
21895b482a8SLen Brown 	ACPI_RS_SIZE(struct acpi_resource_extended_irq),
21995b482a8SLen Brown 	ACPI_RS_SIZE(struct acpi_resource_address64),
220e0fe0a8dSLin Ming 	ACPI_RS_SIZE(struct acpi_resource_extended_address64),
221e0fe0a8dSLin Ming 	ACPI_RS_SIZE(struct acpi_resource_gpio),
2222b726930SMika Westerberg 	ACPI_RS_SIZE(struct acpi_resource_pin_function),
22397028ce6SMika Westerberg 	ACPI_RS_SIZE(struct acpi_resource_common_serialbus),
22497028ce6SMika Westerberg 	ACPI_RS_SIZE(struct acpi_resource_pin_config),
225fdaa0980SMika Westerberg 	ACPI_RS_SIZE(struct acpi_resource_pin_group),
226f8a6c866SMika Westerberg 	ACPI_RS_SIZE(struct acpi_resource_pin_group_function),
227044b7239SMika Westerberg 	ACPI_RS_SIZE(struct acpi_resource_pin_group_config),
228*520d4a0eSNiyas Sait 	ACPI_RS_SIZE(struct acpi_resource_clock_input),
229e0fe0a8dSLin Ming };
230e0fe0a8dSLin Ming 
231e0fe0a8dSLin Ming const u8 acpi_gbl_aml_resource_serial_bus_sizes[] = {
232e0fe0a8dSLin Ming 	0,
233e0fe0a8dSLin Ming 	sizeof(struct aml_resource_i2c_serialbus),
234e0fe0a8dSLin Ming 	sizeof(struct aml_resource_spi_serialbus),
235e0fe0a8dSLin Ming 	sizeof(struct aml_resource_uart_serialbus),
236a2befbb2SBob Moore 	sizeof(struct aml_resource_csi2_serialbus),
237e0fe0a8dSLin Ming };
238e0fe0a8dSLin Ming 
239e0fe0a8dSLin Ming const u8 acpi_gbl_resource_struct_serial_bus_sizes[] = {
240e0fe0a8dSLin Ming 	0,
241e0fe0a8dSLin Ming 	ACPI_RS_SIZE(struct acpi_resource_i2c_serialbus),
242e0fe0a8dSLin Ming 	ACPI_RS_SIZE(struct acpi_resource_spi_serialbus),
243e0fe0a8dSLin Ming 	ACPI_RS_SIZE(struct acpi_resource_uart_serialbus),
244a2befbb2SBob Moore 	ACPI_RS_SIZE(struct acpi_resource_csi2_serialbus),
24595b482a8SLen Brown };
246