Len Brown | 9115a6c | 2005-12-06 16:27:40 -0500 | [diff] [blame] | 1 | /******************************************************************************* |
| 2 | * |
| 3 | * Module Name: rsinfo - Dispatch and Info tables |
| 4 | * |
| 5 | ******************************************************************************/ |
| 6 | |
| 7 | /* |
Bob Moore | b4e104e | 2011-01-17 11:05:40 +0800 | [diff] [blame] | 8 | * Copyright (C) 2000 - 2011, Intel Corp. |
Len Brown | 9115a6c | 2005-12-06 16:27:40 -0500 | [diff] [blame] | 9 | * All rights reserved. |
| 10 | * |
| 11 | * Redistribution and use in source and binary forms, with or without |
| 12 | * modification, are permitted provided that the following conditions |
| 13 | * are met: |
| 14 | * 1. Redistributions of source code must retain the above copyright |
| 15 | * notice, this list of conditions, and the following disclaimer, |
| 16 | * without modification. |
| 17 | * 2. Redistributions in binary form must reproduce at minimum a disclaimer |
| 18 | * substantially similar to the "NO WARRANTY" disclaimer below |
| 19 | * ("Disclaimer") and any redistribution must be conditioned upon |
| 20 | * including a substantially similar Disclaimer requirement for further |
| 21 | * binary redistribution. |
| 22 | * 3. Neither the names of the above-listed copyright holders nor the names |
| 23 | * of any contributors may be used to endorse or promote products derived |
| 24 | * from this software without specific prior written permission. |
| 25 | * |
| 26 | * Alternatively, this software may be distributed under the terms of the |
| 27 | * GNU General Public License ("GPL") version 2 as published by the Free |
| 28 | * Software Foundation. |
| 29 | * |
| 30 | * NO WARRANTY |
| 31 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 32 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 33 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR |
| 34 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 35 | * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| 36 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
| 37 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| 38 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
| 39 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING |
| 40 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| 41 | * POSSIBILITY OF SUCH DAMAGES. |
| 42 | */ |
| 43 | |
| 44 | #include <acpi/acpi.h> |
Len Brown | e2f7a77 | 2009-01-09 00:30:03 -0500 | [diff] [blame] | 45 | #include "accommon.h" |
| 46 | #include "acresrc.h" |
Len Brown | 9115a6c | 2005-12-06 16:27:40 -0500 | [diff] [blame] | 47 | |
| 48 | #define _COMPONENT ACPI_RESOURCES |
| 49 | ACPI_MODULE_NAME("rsinfo") |
| 50 | |
| 51 | /* |
| 52 | * Resource dispatch and information tables. Any new resource types (either |
| 53 | * Large or Small) must be reflected in each of these tables, so they are here |
| 54 | * in one place. |
| 55 | * |
| 56 | * The tables for Large descriptors are indexed by bits 6:0 of the AML |
| 57 | * descriptor type byte. The tables for Small descriptors are indexed by |
| 58 | * bits 6:3 of the descriptor byte. The tables for internal resource |
| 59 | * descriptors are indexed by the acpi_resource_type field. |
| 60 | */ |
| 61 | /* Dispatch table for resource-to-AML (Set Resource) conversion functions */ |
Bob Moore | 0897831 | 2005-10-21 00:00:00 -0400 | [diff] [blame] | 62 | struct acpi_rsconvert_info *acpi_gbl_set_resource_dispatch[] = { |
Len Brown | 9115a6c | 2005-12-06 16:27:40 -0500 | [diff] [blame] | 63 | acpi_rs_set_irq, /* 0x00, ACPI_RESOURCE_TYPE_IRQ */ |
Bob Moore | 0897831 | 2005-10-21 00:00:00 -0400 | [diff] [blame] | 64 | acpi_rs_convert_dma, /* 0x01, ACPI_RESOURCE_TYPE_DMA */ |
Len Brown | 9115a6c | 2005-12-06 16:27:40 -0500 | [diff] [blame] | 65 | acpi_rs_set_start_dpf, /* 0x02, ACPI_RESOURCE_TYPE_START_DEPENDENT */ |
Bob Moore | 0897831 | 2005-10-21 00:00:00 -0400 | [diff] [blame] | 66 | acpi_rs_convert_end_dpf, /* 0x03, ACPI_RESOURCE_TYPE_END_DEPENDENT */ |
| 67 | acpi_rs_convert_io, /* 0x04, ACPI_RESOURCE_TYPE_IO */ |
| 68 | acpi_rs_convert_fixed_io, /* 0x05, ACPI_RESOURCE_TYPE_FIXED_IO */ |
Len Brown | 9115a6c | 2005-12-06 16:27:40 -0500 | [diff] [blame] | 69 | acpi_rs_set_vendor, /* 0x06, ACPI_RESOURCE_TYPE_VENDOR */ |
Bob Moore | 0897831 | 2005-10-21 00:00:00 -0400 | [diff] [blame] | 70 | acpi_rs_convert_end_tag, /* 0x07, ACPI_RESOURCE_TYPE_END_TAG */ |
| 71 | acpi_rs_convert_memory24, /* 0x08, ACPI_RESOURCE_TYPE_MEMORY24 */ |
| 72 | acpi_rs_convert_memory32, /* 0x09, ACPI_RESOURCE_TYPE_MEMORY32 */ |
| 73 | acpi_rs_convert_fixed_memory32, /* 0x0A, ACPI_RESOURCE_TYPE_FIXED_MEMORY32 */ |
| 74 | acpi_rs_convert_address16, /* 0x0B, ACPI_RESOURCE_TYPE_ADDRESS16 */ |
| 75 | acpi_rs_convert_address32, /* 0x0C, ACPI_RESOURCE_TYPE_ADDRESS32 */ |
| 76 | acpi_rs_convert_address64, /* 0x0D, ACPI_RESOURCE_TYPE_ADDRESS64 */ |
| 77 | acpi_rs_convert_ext_address64, /* 0x0E, ACPI_RESOURCE_TYPE_EXTENDED_ADDRESS64 */ |
| 78 | acpi_rs_convert_ext_irq, /* 0x0F, ACPI_RESOURCE_TYPE_EXTENDED_IRQ */ |
Lin Ming | e0fe0a8 | 2011-11-16 14:38:13 +0800 | [diff] [blame] | 79 | acpi_rs_convert_generic_reg, /* 0x10, ACPI_RESOURCE_TYPE_GENERIC_REGISTER */ |
| 80 | acpi_rs_convert_gpio, /* 0x11, ACPI_RESOURCE_TYPE_GPIO */ |
| 81 | acpi_rs_convert_fixed_dma, /* 0x12, ACPI_RESOURCE_TYPE_FIXED_DMA */ |
| 82 | NULL, /* 0x13, ACPI_RESOURCE_TYPE_SERIAL_BUS - Use subtype table below */ |
Len Brown | 9115a6c | 2005-12-06 16:27:40 -0500 | [diff] [blame] | 83 | }; |
| 84 | |
| 85 | /* Dispatch tables for AML-to-resource (Get Resource) conversion functions */ |
| 86 | |
Bob Moore | 96db255 | 2005-11-02 00:00:00 -0500 | [diff] [blame] | 87 | struct acpi_rsconvert_info *acpi_gbl_get_resource_dispatch[] = { |
| 88 | /* Small descriptors */ |
| 89 | |
Len Brown | 9115a6c | 2005-12-06 16:27:40 -0500 | [diff] [blame] | 90 | NULL, /* 0x00, Reserved */ |
| 91 | NULL, /* 0x01, Reserved */ |
| 92 | NULL, /* 0x02, Reserved */ |
| 93 | NULL, /* 0x03, Reserved */ |
| 94 | acpi_rs_get_irq, /* 0x04, ACPI_RESOURCE_NAME_IRQ */ |
Bob Moore | 0897831 | 2005-10-21 00:00:00 -0400 | [diff] [blame] | 95 | acpi_rs_convert_dma, /* 0x05, ACPI_RESOURCE_NAME_DMA */ |
Len Brown | 9115a6c | 2005-12-06 16:27:40 -0500 | [diff] [blame] | 96 | acpi_rs_get_start_dpf, /* 0x06, ACPI_RESOURCE_NAME_START_DEPENDENT */ |
Bob Moore | 0897831 | 2005-10-21 00:00:00 -0400 | [diff] [blame] | 97 | acpi_rs_convert_end_dpf, /* 0x07, ACPI_RESOURCE_NAME_END_DEPENDENT */ |
| 98 | acpi_rs_convert_io, /* 0x08, ACPI_RESOURCE_NAME_IO */ |
| 99 | acpi_rs_convert_fixed_io, /* 0x09, ACPI_RESOURCE_NAME_FIXED_IO */ |
Lin Ming | e0fe0a8 | 2011-11-16 14:38:13 +0800 | [diff] [blame] | 100 | acpi_rs_convert_fixed_dma, /* 0x0A, ACPI_RESOURCE_NAME_FIXED_DMA */ |
Len Brown | 9115a6c | 2005-12-06 16:27:40 -0500 | [diff] [blame] | 101 | NULL, /* 0x0B, Reserved */ |
| 102 | NULL, /* 0x0C, Reserved */ |
| 103 | NULL, /* 0x0D, Reserved */ |
Bob Moore | 0897831 | 2005-10-21 00:00:00 -0400 | [diff] [blame] | 104 | acpi_rs_get_vendor_small, /* 0x0E, ACPI_RESOURCE_NAME_VENDOR_SMALL */ |
Bob Moore | 96db255 | 2005-11-02 00:00:00 -0500 | [diff] [blame] | 105 | acpi_rs_convert_end_tag, /* 0x0F, ACPI_RESOURCE_NAME_END_TAG */ |
Len Brown | 9115a6c | 2005-12-06 16:27:40 -0500 | [diff] [blame] | 106 | |
Bob Moore | 96db255 | 2005-11-02 00:00:00 -0500 | [diff] [blame] | 107 | /* Large descriptors */ |
| 108 | |
Len Brown | 9115a6c | 2005-12-06 16:27:40 -0500 | [diff] [blame] | 109 | NULL, /* 0x00, Reserved */ |
Bob Moore | 0897831 | 2005-10-21 00:00:00 -0400 | [diff] [blame] | 110 | acpi_rs_convert_memory24, /* 0x01, ACPI_RESOURCE_NAME_MEMORY24 */ |
| 111 | acpi_rs_convert_generic_reg, /* 0x02, ACPI_RESOURCE_NAME_GENERIC_REGISTER */ |
Len Brown | 9115a6c | 2005-12-06 16:27:40 -0500 | [diff] [blame] | 112 | NULL, /* 0x03, Reserved */ |
Bob Moore | 0897831 | 2005-10-21 00:00:00 -0400 | [diff] [blame] | 113 | acpi_rs_get_vendor_large, /* 0x04, ACPI_RESOURCE_NAME_VENDOR_LARGE */ |
| 114 | acpi_rs_convert_memory32, /* 0x05, ACPI_RESOURCE_NAME_MEMORY32 */ |
| 115 | acpi_rs_convert_fixed_memory32, /* 0x06, ACPI_RESOURCE_NAME_FIXED_MEMORY32 */ |
| 116 | acpi_rs_convert_address32, /* 0x07, ACPI_RESOURCE_NAME_ADDRESS32 */ |
| 117 | acpi_rs_convert_address16, /* 0x08, ACPI_RESOURCE_NAME_ADDRESS16 */ |
| 118 | acpi_rs_convert_ext_irq, /* 0x09, ACPI_RESOURCE_NAME_EXTENDED_IRQ */ |
| 119 | acpi_rs_convert_address64, /* 0x0A, ACPI_RESOURCE_NAME_ADDRESS64 */ |
Lin Ming | e0fe0a8 | 2011-11-16 14:38:13 +0800 | [diff] [blame] | 120 | acpi_rs_convert_ext_address64, /* 0x0B, ACPI_RESOURCE_NAME_EXTENDED_ADDRESS64 */ |
| 121 | acpi_rs_convert_gpio, /* 0x0C, ACPI_RESOURCE_NAME_GPIO */ |
| 122 | NULL, /* 0x0D, Reserved */ |
| 123 | NULL, /* 0x0E, ACPI_RESOURCE_NAME_SERIAL_BUS - Use subtype table below */ |
| 124 | }; |
| 125 | |
| 126 | /* Subtype table for serial_bus -- I2C, SPI, and UART */ |
| 127 | |
| 128 | struct acpi_rsconvert_info *acpi_gbl_convert_resource_serial_bus_dispatch[] = { |
| 129 | NULL, |
| 130 | acpi_rs_convert_i2c_serial_bus, |
| 131 | acpi_rs_convert_spi_serial_bus, |
| 132 | acpi_rs_convert_uart_serial_bus, |
Len Brown | 9115a6c | 2005-12-06 16:27:40 -0500 | [diff] [blame] | 133 | }; |
| 134 | |
| 135 | #ifdef ACPI_FUTURE_USAGE |
| 136 | #if defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DEBUGGER) |
| 137 | |
| 138 | /* Dispatch table for resource dump functions */ |
| 139 | |
Bob Moore | 0897831 | 2005-10-21 00:00:00 -0400 | [diff] [blame] | 140 | struct acpi_rsdump_info *acpi_gbl_dump_resource_dispatch[] = { |
Len Brown | 9115a6c | 2005-12-06 16:27:40 -0500 | [diff] [blame] | 141 | acpi_rs_dump_irq, /* ACPI_RESOURCE_TYPE_IRQ */ |
| 142 | acpi_rs_dump_dma, /* ACPI_RESOURCE_TYPE_DMA */ |
| 143 | acpi_rs_dump_start_dpf, /* ACPI_RESOURCE_TYPE_START_DEPENDENT */ |
| 144 | acpi_rs_dump_end_dpf, /* ACPI_RESOURCE_TYPE_END_DEPENDENT */ |
| 145 | acpi_rs_dump_io, /* ACPI_RESOURCE_TYPE_IO */ |
| 146 | acpi_rs_dump_fixed_io, /* ACPI_RESOURCE_TYPE_FIXED_IO */ |
| 147 | acpi_rs_dump_vendor, /* ACPI_RESOURCE_TYPE_VENDOR */ |
| 148 | acpi_rs_dump_end_tag, /* ACPI_RESOURCE_TYPE_END_TAG */ |
| 149 | acpi_rs_dump_memory24, /* ACPI_RESOURCE_TYPE_MEMORY24 */ |
| 150 | acpi_rs_dump_memory32, /* ACPI_RESOURCE_TYPE_MEMORY32 */ |
| 151 | acpi_rs_dump_fixed_memory32, /* ACPI_RESOURCE_TYPE_FIXED_MEMORY32 */ |
| 152 | acpi_rs_dump_address16, /* ACPI_RESOURCE_TYPE_ADDRESS16 */ |
| 153 | acpi_rs_dump_address32, /* ACPI_RESOURCE_TYPE_ADDRESS32 */ |
| 154 | acpi_rs_dump_address64, /* ACPI_RESOURCE_TYPE_ADDRESS64 */ |
| 155 | acpi_rs_dump_ext_address64, /* ACPI_RESOURCE_TYPE_EXTENDED_ADDRESS64 */ |
| 156 | acpi_rs_dump_ext_irq, /* ACPI_RESOURCE_TYPE_EXTENDED_IRQ */ |
Bob Moore | 0897831 | 2005-10-21 00:00:00 -0400 | [diff] [blame] | 157 | acpi_rs_dump_generic_reg, /* ACPI_RESOURCE_TYPE_GENERIC_REGISTER */ |
Lin Ming | e0fe0a8 | 2011-11-16 14:38:13 +0800 | [diff] [blame] | 158 | acpi_rs_dump_gpio, /* ACPI_RESOURCE_TYPE_GPIO */ |
| 159 | acpi_rs_dump_fixed_dma, /* ACPI_RESOURCE_TYPE_FIXED_DMA */ |
| 160 | NULL, /* ACPI_RESOURCE_TYPE_SERIAL_BUS */ |
| 161 | }; |
| 162 | |
| 163 | struct acpi_rsdump_info *acpi_gbl_dump_serial_bus_dispatch[] = { |
| 164 | NULL, |
| 165 | acpi_rs_dump_i2c_serial_bus, /* AML_RESOURCE_I2C_BUS_TYPE */ |
| 166 | acpi_rs_dump_spi_serial_bus, /* AML_RESOURCE_SPI_BUS_TYPE */ |
| 167 | acpi_rs_dump_uart_serial_bus, /* AML_RESOURCE_UART_BUS_TYPE */ |
Len Brown | 9115a6c | 2005-12-06 16:27:40 -0500 | [diff] [blame] | 168 | }; |
| 169 | #endif |
Bob Moore | 8313524 | 2006-10-03 00:00:00 -0400 | [diff] [blame] | 170 | |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 171 | #endif /* ACPI_FUTURE_USAGE */ |
Len Brown | 9115a6c | 2005-12-06 16:27:40 -0500 | [diff] [blame] | 172 | /* |
| 173 | * Base sizes for external AML resource descriptors, indexed by internal type. |
| 174 | * Includes size of the descriptor header (1 byte for small descriptors, |
| 175 | * 3 bytes for large descriptors) |
| 176 | */ |
Bob Moore | 0897831 | 2005-10-21 00:00:00 -0400 | [diff] [blame] | 177 | const u8 acpi_gbl_aml_resource_sizes[] = { |
Len Brown | 9115a6c | 2005-12-06 16:27:40 -0500 | [diff] [blame] | 178 | sizeof(struct aml_resource_irq), /* ACPI_RESOURCE_TYPE_IRQ (optional Byte 3 always created) */ |
| 179 | sizeof(struct aml_resource_dma), /* ACPI_RESOURCE_TYPE_DMA */ |
| 180 | sizeof(struct aml_resource_start_dependent), /* ACPI_RESOURCE_TYPE_START_DEPENDENT (optional Byte 1 always created) */ |
| 181 | sizeof(struct aml_resource_end_dependent), /* ACPI_RESOURCE_TYPE_END_DEPENDENT */ |
| 182 | sizeof(struct aml_resource_io), /* ACPI_RESOURCE_TYPE_IO */ |
| 183 | sizeof(struct aml_resource_fixed_io), /* ACPI_RESOURCE_TYPE_FIXED_IO */ |
| 184 | sizeof(struct aml_resource_vendor_small), /* ACPI_RESOURCE_TYPE_VENDOR */ |
| 185 | sizeof(struct aml_resource_end_tag), /* ACPI_RESOURCE_TYPE_END_TAG */ |
| 186 | sizeof(struct aml_resource_memory24), /* ACPI_RESOURCE_TYPE_MEMORY24 */ |
| 187 | sizeof(struct aml_resource_memory32), /* ACPI_RESOURCE_TYPE_MEMORY32 */ |
| 188 | sizeof(struct aml_resource_fixed_memory32), /* ACPI_RESOURCE_TYPE_FIXED_MEMORY32 */ |
| 189 | sizeof(struct aml_resource_address16), /* ACPI_RESOURCE_TYPE_ADDRESS16 */ |
| 190 | sizeof(struct aml_resource_address32), /* ACPI_RESOURCE_TYPE_ADDRESS32 */ |
| 191 | sizeof(struct aml_resource_address64), /* ACPI_RESOURCE_TYPE_ADDRESS64 */ |
| 192 | sizeof(struct aml_resource_extended_address64), /*ACPI_RESOURCE_TYPE_EXTENDED_ADDRESS64 */ |
| 193 | sizeof(struct aml_resource_extended_irq), /* ACPI_RESOURCE_TYPE_EXTENDED_IRQ */ |
Lin Ming | e0fe0a8 | 2011-11-16 14:38:13 +0800 | [diff] [blame] | 194 | sizeof(struct aml_resource_generic_register), /* ACPI_RESOURCE_TYPE_GENERIC_REGISTER */ |
| 195 | sizeof(struct aml_resource_gpio), /* ACPI_RESOURCE_TYPE_GPIO */ |
| 196 | sizeof(struct aml_resource_fixed_dma), /* ACPI_RESOURCE_TYPE_FIXED_DMA */ |
| 197 | sizeof(struct aml_resource_common_serialbus), /* ACPI_RESOURCE_TYPE_SERIAL_BUS */ |
Len Brown | 9115a6c | 2005-12-06 16:27:40 -0500 | [diff] [blame] | 198 | }; |
| 199 | |
Bob Moore | 96db255 | 2005-11-02 00:00:00 -0500 | [diff] [blame] | 200 | const u8 acpi_gbl_resource_struct_sizes[] = { |
| 201 | /* Small descriptors */ |
Len Brown | 9115a6c | 2005-12-06 16:27:40 -0500 | [diff] [blame] | 202 | |
Bob Moore | 96db255 | 2005-11-02 00:00:00 -0500 | [diff] [blame] | 203 | 0, |
| 204 | 0, |
| 205 | 0, |
| 206 | 0, |
| 207 | ACPI_RS_SIZE(struct acpi_resource_irq), |
| 208 | ACPI_RS_SIZE(struct acpi_resource_dma), |
| 209 | ACPI_RS_SIZE(struct acpi_resource_start_dependent), |
| 210 | ACPI_RS_SIZE_MIN, |
| 211 | ACPI_RS_SIZE(struct acpi_resource_io), |
| 212 | ACPI_RS_SIZE(struct acpi_resource_fixed_io), |
Lin Ming | e0fe0a8 | 2011-11-16 14:38:13 +0800 | [diff] [blame] | 213 | ACPI_RS_SIZE(struct acpi_resource_fixed_dma), |
Bob Moore | 96db255 | 2005-11-02 00:00:00 -0500 | [diff] [blame] | 214 | 0, |
| 215 | 0, |
| 216 | 0, |
| 217 | ACPI_RS_SIZE(struct acpi_resource_vendor), |
| 218 | ACPI_RS_SIZE_MIN, |
Len Brown | 9115a6c | 2005-12-06 16:27:40 -0500 | [diff] [blame] | 219 | |
Bob Moore | 96db255 | 2005-11-02 00:00:00 -0500 | [diff] [blame] | 220 | /* Large descriptors */ |
Len Brown | 9115a6c | 2005-12-06 16:27:40 -0500 | [diff] [blame] | 221 | |
Bob Moore | 96db255 | 2005-11-02 00:00:00 -0500 | [diff] [blame] | 222 | 0, |
| 223 | ACPI_RS_SIZE(struct acpi_resource_memory24), |
| 224 | ACPI_RS_SIZE(struct acpi_resource_generic_register), |
| 225 | 0, |
| 226 | ACPI_RS_SIZE(struct acpi_resource_vendor), |
| 227 | ACPI_RS_SIZE(struct acpi_resource_memory32), |
| 228 | ACPI_RS_SIZE(struct acpi_resource_fixed_memory32), |
| 229 | ACPI_RS_SIZE(struct acpi_resource_address32), |
| 230 | ACPI_RS_SIZE(struct acpi_resource_address16), |
| 231 | ACPI_RS_SIZE(struct acpi_resource_extended_irq), |
| 232 | ACPI_RS_SIZE(struct acpi_resource_address64), |
Lin Ming | e0fe0a8 | 2011-11-16 14:38:13 +0800 | [diff] [blame] | 233 | ACPI_RS_SIZE(struct acpi_resource_extended_address64), |
| 234 | ACPI_RS_SIZE(struct acpi_resource_gpio), |
| 235 | ACPI_RS_SIZE(struct acpi_resource_common_serialbus) |
| 236 | }; |
| 237 | |
| 238 | const u8 acpi_gbl_aml_resource_serial_bus_sizes[] = { |
| 239 | 0, |
| 240 | sizeof(struct aml_resource_i2c_serialbus), |
| 241 | sizeof(struct aml_resource_spi_serialbus), |
| 242 | sizeof(struct aml_resource_uart_serialbus), |
| 243 | }; |
| 244 | |
| 245 | const u8 acpi_gbl_resource_struct_serial_bus_sizes[] = { |
| 246 | 0, |
| 247 | ACPI_RS_SIZE(struct acpi_resource_i2c_serialbus), |
| 248 | ACPI_RS_SIZE(struct acpi_resource_spi_serialbus), |
| 249 | ACPI_RS_SIZE(struct acpi_resource_uart_serialbus), |
Len Brown | 9115a6c | 2005-12-06 16:27:40 -0500 | [diff] [blame] | 250 | }; |