1 /*******************************************************************************
3 * Module Name: rsdumpinfo - Tables used to display resource descriptors.
5 ******************************************************************************/
7 /******************************************************************************
11 * Some or all of this work - Copyright (c) 1999 - 2014, Intel Corp.
12 * All rights reserved.
16 * 2.1. This is your license from Intel Corp. under its intellectual property
17 * rights. You may have additional license terms from the party that provided
18 * you this software, covering your right to use that party's intellectual
21 * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
22 * copy of the source code appearing in this file ("Covered Code") an
23 * irrevocable, perpetual, worldwide license under Intel's copyrights in the
24 * base code distributed originally by Intel ("Original Intel Code") to copy,
25 * make derivatives, distribute, use and display any portion of the Covered
26 * Code in any form, with the right to sublicense such rights; and
28 * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
29 * license (with the right to sublicense), under only those claims of Intel
30 * patents that are infringed by the Original Intel Code, to make, use, sell,
31 * offer to sell, and import the Covered Code and derivative works thereof
32 * solely to the minimum extent necessary to exercise the above copyright
33 * license, and in no event shall the patent license extend to any additions
34 * to or modifications of the Original Intel Code. No other license or right
35 * is granted directly or by implication, estoppel or otherwise;
37 * The above copyright and patent license is granted only if the following
42 * 3.1. Redistribution of Source with Rights to Further Distribute Source.
43 * Redistribution of source code of any substantial portion of the Covered
44 * Code or modification with rights to further distribute source must include
45 * the above Copyright Notice, the above License, this list of Conditions,
46 * and the following Disclaimer and Export Compliance provision. In addition,
47 * Licensee must cause all Covered Code to which Licensee contributes to
48 * contain a file documenting the changes Licensee made to create that Covered
49 * Code and the date of any change. Licensee must include in that file the
50 * documentation of any changes made by any predecessor Licensee. Licensee
51 * must include a prominent statement that the modification is derived,
52 * directly or indirectly, from Original Intel Code.
54 * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
55 * Redistribution of source code of any substantial portion of the Covered
56 * Code or modification without rights to further distribute source must
57 * include the following Disclaimer and Export Compliance provision in the
58 * documentation and/or other materials provided with distribution. In
59 * addition, Licensee may not authorize further sublicense of source of any
60 * portion of the Covered Code, and must include terms to the effect that the
61 * license from Licensee to its licensee is limited to the intellectual
62 * property embodied in the software Licensee provides to its licensee, and
63 * not to intellectual property embodied in modifications its licensee may
66 * 3.3. Redistribution of Executable. Redistribution in executable form of any
67 * substantial portion of the Covered Code or modification must reproduce the
68 * above Copyright Notice, and the following Disclaimer and Export Compliance
69 * provision in the documentation and/or other materials provided with the
72 * 3.4. Intel retains all right, title, and interest in and to the Original
75 * 3.5. Neither the name Intel nor any other trademark owned or controlled by
76 * Intel shall be used in advertising or otherwise to promote the sale, use or
77 * other dealings in products derived from or relating to the Covered Code
78 * without prior written authorization from Intel.
80 * 4. Disclaimer and Export Compliance
82 * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
83 * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
84 * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
85 * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
86 * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
87 * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
90 * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
91 * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
92 * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
93 * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
94 * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
95 * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS
96 * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
99 * 4.3. Licensee shall not export, either directly or indirectly, any of this
100 * software or system incorporating such software without first obtaining any
101 * required license or other approval from the U. S. Department of Commerce or
102 * any other agency or department of the United States Government. In the
103 * event Licensee exports any such software from the United States or
104 * re-exports any such software from a foreign destination, Licensee shall
105 * ensure that the distribution and export/re-export of the software is in
106 * compliance with all laws, regulations, orders, or other restrictions of the
107 * U.S. Export Administration Regulations. Licensee agrees that neither it nor
108 * any of its subsidiaries will export/re-export any technical data, process,
109 * software, or service, directly or indirectly, to any country for which the
110 * United States government or any agency thereof requires an export license,
111 * other governmental approval, or letter of assurance, without first obtaining
112 * such license, approval or letter.
114 *****************************************************************************/
117 #define __RSDUMPINFO_C__
120 #include "accommon.h"
123 #define _COMPONENT ACPI_RESOURCES
124 ACPI_MODULE_NAME ("rsdumpinfo")
127 #if defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DISASSEMBLER) || defined(ACPI_DEBUGGER)
130 #define ACPI_RSD_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_RESOURCE_DATA,f)
131 #define ACPI_PRT_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_PCI_ROUTING_TABLE,f)
132 #define ACPI_RSD_TABLE_SIZE(name) (sizeof(name) / sizeof (ACPI_RSDUMP_INFO))
135 /*******************************************************************************
137 * Resource Descriptor info tables
139 * Note: The first table entry must be a Title or Literal and must contain
140 * the table length (number of table entries)
142 ******************************************************************************/
144 ACPI_RSDUMP_INFO AcpiRsDumpIrq
[7] =
146 {ACPI_RSD_TITLE
, ACPI_RSD_TABLE_SIZE (AcpiRsDumpIrq
), "IRQ", NULL
},
147 {ACPI_RSD_UINT8
, ACPI_RSD_OFFSET (Irq
.DescriptorLength
), "Descriptor Length", NULL
},
148 {ACPI_RSD_1BITFLAG
, ACPI_RSD_OFFSET (Irq
.Triggering
), "Triggering", AcpiGbl_HeDecode
},
149 {ACPI_RSD_1BITFLAG
, ACPI_RSD_OFFSET (Irq
.Polarity
), "Polarity", AcpiGbl_LlDecode
},
150 {ACPI_RSD_2BITFLAG
, ACPI_RSD_OFFSET (Irq
.Sharable
), "Sharing", AcpiGbl_ShrDecode
},
151 {ACPI_RSD_UINT8
, ACPI_RSD_OFFSET (Irq
.InterruptCount
), "Interrupt Count", NULL
},
152 {ACPI_RSD_SHORTLIST
,ACPI_RSD_OFFSET (Irq
.Interrupts
[0]), "Interrupt List", NULL
}
155 ACPI_RSDUMP_INFO AcpiRsDumpDma
[6] =
157 {ACPI_RSD_TITLE
, ACPI_RSD_TABLE_SIZE (AcpiRsDumpDma
), "DMA", NULL
},
158 {ACPI_RSD_2BITFLAG
, ACPI_RSD_OFFSET (Dma
.Type
), "Speed", AcpiGbl_TypDecode
},
159 {ACPI_RSD_1BITFLAG
, ACPI_RSD_OFFSET (Dma
.BusMaster
), "Mastering", AcpiGbl_BmDecode
},
160 {ACPI_RSD_2BITFLAG
, ACPI_RSD_OFFSET (Dma
.Transfer
), "Transfer Type", AcpiGbl_SizDecode
},
161 {ACPI_RSD_UINT8
, ACPI_RSD_OFFSET (Dma
.ChannelCount
), "Channel Count", NULL
},
162 {ACPI_RSD_SHORTLIST
,ACPI_RSD_OFFSET (Dma
.Channels
[0]), "Channel List", NULL
}
165 ACPI_RSDUMP_INFO AcpiRsDumpStartDpf
[4] =
167 {ACPI_RSD_TITLE
, ACPI_RSD_TABLE_SIZE (AcpiRsDumpStartDpf
), "Start-Dependent-Functions",NULL
},
168 {ACPI_RSD_UINT8
, ACPI_RSD_OFFSET (StartDpf
.DescriptorLength
), "Descriptor Length", NULL
},
169 {ACPI_RSD_2BITFLAG
, ACPI_RSD_OFFSET (StartDpf
.CompatibilityPriority
), "Compatibility Priority", AcpiGbl_ConfigDecode
},
170 {ACPI_RSD_2BITFLAG
, ACPI_RSD_OFFSET (StartDpf
.PerformanceRobustness
), "Performance/Robustness", AcpiGbl_ConfigDecode
}
173 ACPI_RSDUMP_INFO AcpiRsDumpEndDpf
[1] =
175 {ACPI_RSD_TITLE
, ACPI_RSD_TABLE_SIZE (AcpiRsDumpEndDpf
), "End-Dependent-Functions", NULL
}
178 ACPI_RSDUMP_INFO AcpiRsDumpIo
[6] =
180 {ACPI_RSD_TITLE
, ACPI_RSD_TABLE_SIZE (AcpiRsDumpIo
), "I/O", NULL
},
181 {ACPI_RSD_1BITFLAG
, ACPI_RSD_OFFSET (Io
.IoDecode
), "Address Decoding", AcpiGbl_IoDecode
},
182 {ACPI_RSD_UINT16
, ACPI_RSD_OFFSET (Io
.Minimum
), "Address Minimum", NULL
},
183 {ACPI_RSD_UINT16
, ACPI_RSD_OFFSET (Io
.Maximum
), "Address Maximum", NULL
},
184 {ACPI_RSD_UINT8
, ACPI_RSD_OFFSET (Io
.Alignment
), "Alignment", NULL
},
185 {ACPI_RSD_UINT8
, ACPI_RSD_OFFSET (Io
.AddressLength
), "Address Length", NULL
}
188 ACPI_RSDUMP_INFO AcpiRsDumpFixedIo
[3] =
190 {ACPI_RSD_TITLE
, ACPI_RSD_TABLE_SIZE (AcpiRsDumpFixedIo
), "Fixed I/O", NULL
},
191 {ACPI_RSD_UINT16
, ACPI_RSD_OFFSET (FixedIo
.Address
), "Address", NULL
},
192 {ACPI_RSD_UINT8
, ACPI_RSD_OFFSET (FixedIo
.AddressLength
), "Address Length", NULL
}
195 ACPI_RSDUMP_INFO AcpiRsDumpVendor
[3] =
197 {ACPI_RSD_TITLE
, ACPI_RSD_TABLE_SIZE (AcpiRsDumpVendor
), "Vendor Specific", NULL
},
198 {ACPI_RSD_UINT16
, ACPI_RSD_OFFSET (Vendor
.ByteLength
), "Length", NULL
},
199 {ACPI_RSD_LONGLIST
, ACPI_RSD_OFFSET (Vendor
.ByteData
[0]), "Vendor Data", NULL
}
202 ACPI_RSDUMP_INFO AcpiRsDumpEndTag
[1] =
204 {ACPI_RSD_TITLE
, ACPI_RSD_TABLE_SIZE (AcpiRsDumpEndTag
), "EndTag", NULL
}
207 ACPI_RSDUMP_INFO AcpiRsDumpMemory24
[6] =
209 {ACPI_RSD_TITLE
, ACPI_RSD_TABLE_SIZE (AcpiRsDumpMemory24
), "24-Bit Memory Range", NULL
},
210 {ACPI_RSD_1BITFLAG
, ACPI_RSD_OFFSET (Memory24
.WriteProtect
), "Write Protect", AcpiGbl_RwDecode
},
211 {ACPI_RSD_UINT16
, ACPI_RSD_OFFSET (Memory24
.Minimum
), "Address Minimum", NULL
},
212 {ACPI_RSD_UINT16
, ACPI_RSD_OFFSET (Memory24
.Maximum
), "Address Maximum", NULL
},
213 {ACPI_RSD_UINT16
, ACPI_RSD_OFFSET (Memory24
.Alignment
), "Alignment", NULL
},
214 {ACPI_RSD_UINT16
, ACPI_RSD_OFFSET (Memory24
.AddressLength
), "Address Length", NULL
}
217 ACPI_RSDUMP_INFO AcpiRsDumpMemory32
[6] =
219 {ACPI_RSD_TITLE
, ACPI_RSD_TABLE_SIZE (AcpiRsDumpMemory32
), "32-Bit Memory Range", NULL
},
220 {ACPI_RSD_1BITFLAG
, ACPI_RSD_OFFSET (Memory32
.WriteProtect
), "Write Protect", AcpiGbl_RwDecode
},
221 {ACPI_RSD_UINT32
, ACPI_RSD_OFFSET (Memory32
.Minimum
), "Address Minimum", NULL
},
222 {ACPI_RSD_UINT32
, ACPI_RSD_OFFSET (Memory32
.Maximum
), "Address Maximum", NULL
},
223 {ACPI_RSD_UINT32
, ACPI_RSD_OFFSET (Memory32
.Alignment
), "Alignment", NULL
},
224 {ACPI_RSD_UINT32
, ACPI_RSD_OFFSET (Memory32
.AddressLength
), "Address Length", NULL
}
227 ACPI_RSDUMP_INFO AcpiRsDumpFixedMemory32
[4] =
229 {ACPI_RSD_TITLE
, ACPI_RSD_TABLE_SIZE (AcpiRsDumpFixedMemory32
), "32-Bit Fixed Memory Range",NULL
},
230 {ACPI_RSD_1BITFLAG
, ACPI_RSD_OFFSET (FixedMemory32
.WriteProtect
), "Write Protect", AcpiGbl_RwDecode
},
231 {ACPI_RSD_UINT32
, ACPI_RSD_OFFSET (FixedMemory32
.Address
), "Address", NULL
},
232 {ACPI_RSD_UINT32
, ACPI_RSD_OFFSET (FixedMemory32
.AddressLength
), "Address Length", NULL
}
235 ACPI_RSDUMP_INFO AcpiRsDumpAddress16
[8] =
237 {ACPI_RSD_TITLE
, ACPI_RSD_TABLE_SIZE (AcpiRsDumpAddress16
), "16-Bit WORD Address Space",NULL
},
238 {ACPI_RSD_ADDRESS
, 0, NULL
, NULL
},
239 {ACPI_RSD_UINT16
, ACPI_RSD_OFFSET (Address16
.Granularity
), "Granularity", NULL
},
240 {ACPI_RSD_UINT16
, ACPI_RSD_OFFSET (Address16
.Minimum
), "Address Minimum", NULL
},
241 {ACPI_RSD_UINT16
, ACPI_RSD_OFFSET (Address16
.Maximum
), "Address Maximum", NULL
},
242 {ACPI_RSD_UINT16
, ACPI_RSD_OFFSET (Address16
.TranslationOffset
), "Translation Offset", NULL
},
243 {ACPI_RSD_UINT16
, ACPI_RSD_OFFSET (Address16
.AddressLength
), "Address Length", NULL
},
244 {ACPI_RSD_SOURCE
, ACPI_RSD_OFFSET (Address16
.ResourceSource
), NULL
, NULL
}
247 ACPI_RSDUMP_INFO AcpiRsDumpAddress32
[8] =
249 {ACPI_RSD_TITLE
, ACPI_RSD_TABLE_SIZE (AcpiRsDumpAddress32
), "32-Bit DWORD Address Space", NULL
},
250 {ACPI_RSD_ADDRESS
, 0, NULL
, NULL
},
251 {ACPI_RSD_UINT32
, ACPI_RSD_OFFSET (Address32
.Granularity
), "Granularity", NULL
},
252 {ACPI_RSD_UINT32
, ACPI_RSD_OFFSET (Address32
.Minimum
), "Address Minimum", NULL
},
253 {ACPI_RSD_UINT32
, ACPI_RSD_OFFSET (Address32
.Maximum
), "Address Maximum", NULL
},
254 {ACPI_RSD_UINT32
, ACPI_RSD_OFFSET (Address32
.TranslationOffset
), "Translation Offset", NULL
},
255 {ACPI_RSD_UINT32
, ACPI_RSD_OFFSET (Address32
.AddressLength
), "Address Length", NULL
},
256 {ACPI_RSD_SOURCE
, ACPI_RSD_OFFSET (Address32
.ResourceSource
), NULL
, NULL
}
259 ACPI_RSDUMP_INFO AcpiRsDumpAddress64
[8] =
261 {ACPI_RSD_TITLE
, ACPI_RSD_TABLE_SIZE (AcpiRsDumpAddress64
), "64-Bit QWORD Address Space", NULL
},
262 {ACPI_RSD_ADDRESS
, 0, NULL
, NULL
},
263 {ACPI_RSD_UINT64
, ACPI_RSD_OFFSET (Address64
.Granularity
), "Granularity", NULL
},
264 {ACPI_RSD_UINT64
, ACPI_RSD_OFFSET (Address64
.Minimum
), "Address Minimum", NULL
},
265 {ACPI_RSD_UINT64
, ACPI_RSD_OFFSET (Address64
.Maximum
), "Address Maximum", NULL
},
266 {ACPI_RSD_UINT64
, ACPI_RSD_OFFSET (Address64
.TranslationOffset
), "Translation Offset", NULL
},
267 {ACPI_RSD_UINT64
, ACPI_RSD_OFFSET (Address64
.AddressLength
), "Address Length", NULL
},
268 {ACPI_RSD_SOURCE
, ACPI_RSD_OFFSET (Address64
.ResourceSource
), NULL
, NULL
}
271 ACPI_RSDUMP_INFO AcpiRsDumpExtAddress64
[8] =
273 {ACPI_RSD_TITLE
, ACPI_RSD_TABLE_SIZE (AcpiRsDumpExtAddress64
), "64-Bit Extended Address Space", NULL
},
274 {ACPI_RSD_ADDRESS
, 0, NULL
, NULL
},
275 {ACPI_RSD_UINT64
, ACPI_RSD_OFFSET (ExtAddress64
.Granularity
), "Granularity", NULL
},
276 {ACPI_RSD_UINT64
, ACPI_RSD_OFFSET (ExtAddress64
.Minimum
), "Address Minimum", NULL
},
277 {ACPI_RSD_UINT64
, ACPI_RSD_OFFSET (ExtAddress64
.Maximum
), "Address Maximum", NULL
},
278 {ACPI_RSD_UINT64
, ACPI_RSD_OFFSET (ExtAddress64
.TranslationOffset
), "Translation Offset", NULL
},
279 {ACPI_RSD_UINT64
, ACPI_RSD_OFFSET (ExtAddress64
.AddressLength
), "Address Length", NULL
},
280 {ACPI_RSD_UINT64
, ACPI_RSD_OFFSET (ExtAddress64
.TypeSpecific
), "Type-Specific Attribute", NULL
}
283 ACPI_RSDUMP_INFO AcpiRsDumpExtIrq
[8] =
285 {ACPI_RSD_TITLE
, ACPI_RSD_TABLE_SIZE (AcpiRsDumpExtIrq
), "Extended IRQ", NULL
},
286 {ACPI_RSD_1BITFLAG
, ACPI_RSD_OFFSET (ExtendedIrq
.ProducerConsumer
), "Type", AcpiGbl_ConsumeDecode
},
287 {ACPI_RSD_1BITFLAG
, ACPI_RSD_OFFSET (ExtendedIrq
.Triggering
), "Triggering", AcpiGbl_HeDecode
},
288 {ACPI_RSD_1BITFLAG
, ACPI_RSD_OFFSET (ExtendedIrq
.Polarity
), "Polarity", AcpiGbl_LlDecode
},
289 {ACPI_RSD_2BITFLAG
, ACPI_RSD_OFFSET (ExtendedIrq
.Sharable
), "Sharing", AcpiGbl_ShrDecode
},
290 {ACPI_RSD_SOURCE
, ACPI_RSD_OFFSET (ExtendedIrq
.ResourceSource
), NULL
, NULL
},
291 {ACPI_RSD_UINT8
, ACPI_RSD_OFFSET (ExtendedIrq
.InterruptCount
), "Interrupt Count", NULL
},
292 {ACPI_RSD_DWORDLIST
,ACPI_RSD_OFFSET (ExtendedIrq
.Interrupts
[0]), "Interrupt List", NULL
}
295 ACPI_RSDUMP_INFO AcpiRsDumpGenericReg
[6] =
297 {ACPI_RSD_TITLE
, ACPI_RSD_TABLE_SIZE (AcpiRsDumpGenericReg
), "Generic Register", NULL
},
298 {ACPI_RSD_UINT8
, ACPI_RSD_OFFSET (GenericReg
.SpaceId
), "Space ID", NULL
},
299 {ACPI_RSD_UINT8
, ACPI_RSD_OFFSET (GenericReg
.BitWidth
), "Bit Width", NULL
},
300 {ACPI_RSD_UINT8
, ACPI_RSD_OFFSET (GenericReg
.BitOffset
), "Bit Offset", NULL
},
301 {ACPI_RSD_UINT8
, ACPI_RSD_OFFSET (GenericReg
.AccessSize
), "Access Size", NULL
},
302 {ACPI_RSD_UINT64
, ACPI_RSD_OFFSET (GenericReg
.Address
), "Address", NULL
}
305 ACPI_RSDUMP_INFO AcpiRsDumpGpio
[16] =
307 {ACPI_RSD_TITLE
, ACPI_RSD_TABLE_SIZE (AcpiRsDumpGpio
), "GPIO", NULL
},
308 {ACPI_RSD_UINT8
, ACPI_RSD_OFFSET (Gpio
.RevisionId
), "RevisionId", NULL
},
309 {ACPI_RSD_UINT8
, ACPI_RSD_OFFSET (Gpio
.ConnectionType
), "ConnectionType", AcpiGbl_CtDecode
},
310 {ACPI_RSD_1BITFLAG
, ACPI_RSD_OFFSET (Gpio
.ProducerConsumer
), "ProducerConsumer", AcpiGbl_ConsumeDecode
},
311 {ACPI_RSD_UINT8
, ACPI_RSD_OFFSET (Gpio
.PinConfig
), "PinConfig", AcpiGbl_PpcDecode
},
312 {ACPI_RSD_2BITFLAG
, ACPI_RSD_OFFSET (Gpio
.Sharable
), "Sharing", AcpiGbl_ShrDecode
},
313 {ACPI_RSD_2BITFLAG
, ACPI_RSD_OFFSET (Gpio
.IoRestriction
), "IoRestriction", AcpiGbl_IorDecode
},
314 {ACPI_RSD_1BITFLAG
, ACPI_RSD_OFFSET (Gpio
.Triggering
), "Triggering", AcpiGbl_HeDecode
},
315 {ACPI_RSD_2BITFLAG
, ACPI_RSD_OFFSET (Gpio
.Polarity
), "Polarity", AcpiGbl_LlDecode
},
316 {ACPI_RSD_UINT16
, ACPI_RSD_OFFSET (Gpio
.DriveStrength
), "DriveStrength", NULL
},
317 {ACPI_RSD_UINT16
, ACPI_RSD_OFFSET (Gpio
.DebounceTimeout
), "DebounceTimeout", NULL
},
318 {ACPI_RSD_SOURCE
, ACPI_RSD_OFFSET (Gpio
.ResourceSource
), "ResourceSource", NULL
},
319 {ACPI_RSD_UINT16
, ACPI_RSD_OFFSET (Gpio
.PinTableLength
), "PinTableLength", NULL
},
320 {ACPI_RSD_WORDLIST
, ACPI_RSD_OFFSET (Gpio
.PinTable
), "PinTable", NULL
},
321 {ACPI_RSD_UINT16
, ACPI_RSD_OFFSET (Gpio
.VendorLength
), "VendorLength", NULL
},
322 {ACPI_RSD_SHORTLISTX
,ACPI_RSD_OFFSET (Gpio
.VendorData
), "VendorData", NULL
},
325 ACPI_RSDUMP_INFO AcpiRsDumpFixedDma
[4] =
327 {ACPI_RSD_TITLE
, ACPI_RSD_TABLE_SIZE (AcpiRsDumpFixedDma
), "FixedDma", NULL
},
328 {ACPI_RSD_UINT16
, ACPI_RSD_OFFSET (FixedDma
.RequestLines
), "RequestLines", NULL
},
329 {ACPI_RSD_UINT16
, ACPI_RSD_OFFSET (FixedDma
.Channels
), "Channels", NULL
},
330 {ACPI_RSD_UINT8
, ACPI_RSD_OFFSET (FixedDma
.Width
), "TransferWidth", AcpiGbl_DtsDecode
},
333 #define ACPI_RS_DUMP_COMMON_SERIAL_BUS \
334 {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (CommonSerialBus.RevisionId), "RevisionId", NULL}, \
335 {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (CommonSerialBus.Type), "Type", AcpiGbl_SbtDecode}, \
336 {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (CommonSerialBus.ProducerConsumer), "ProducerConsumer", AcpiGbl_ConsumeDecode}, \
337 {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (CommonSerialBus.SlaveMode), "SlaveMode", AcpiGbl_SmDecode}, \
338 {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (CommonSerialBus.TypeRevisionId), "TypeRevisionId", NULL}, \
339 {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (CommonSerialBus.TypeDataLength), "TypeDataLength", NULL}, \
340 {ACPI_RSD_SOURCE, ACPI_RSD_OFFSET (CommonSerialBus.ResourceSource), "ResourceSource", NULL}, \
341 {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (CommonSerialBus.VendorLength), "VendorLength", NULL}, \
342 {ACPI_RSD_SHORTLISTX,ACPI_RSD_OFFSET (CommonSerialBus.VendorData), "VendorData", NULL},
344 ACPI_RSDUMP_INFO AcpiRsDumpCommonSerialBus
[10] =
346 {ACPI_RSD_TITLE
, ACPI_RSD_TABLE_SIZE (AcpiRsDumpCommonSerialBus
), "Common Serial Bus", NULL
},
347 ACPI_RS_DUMP_COMMON_SERIAL_BUS
350 ACPI_RSDUMP_INFO AcpiRsDumpI2cSerialBus
[13] =
352 {ACPI_RSD_TITLE
, ACPI_RSD_TABLE_SIZE (AcpiRsDumpI2cSerialBus
), "I2C Serial Bus", NULL
},
353 ACPI_RS_DUMP_COMMON_SERIAL_BUS
354 {ACPI_RSD_1BITFLAG
, ACPI_RSD_OFFSET (I2cSerialBus
.AccessMode
), "AccessMode", AcpiGbl_AmDecode
},
355 {ACPI_RSD_UINT32
, ACPI_RSD_OFFSET (I2cSerialBus
.ConnectionSpeed
), "ConnectionSpeed", NULL
},
356 {ACPI_RSD_UINT16
, ACPI_RSD_OFFSET (I2cSerialBus
.SlaveAddress
), "SlaveAddress", NULL
},
359 ACPI_RSDUMP_INFO AcpiRsDumpSpiSerialBus
[17] =
361 {ACPI_RSD_TITLE
, ACPI_RSD_TABLE_SIZE (AcpiRsDumpSpiSerialBus
), "Spi Serial Bus", NULL
},
362 ACPI_RS_DUMP_COMMON_SERIAL_BUS
363 {ACPI_RSD_1BITFLAG
, ACPI_RSD_OFFSET (SpiSerialBus
.WireMode
), "WireMode", AcpiGbl_WmDecode
},
364 {ACPI_RSD_1BITFLAG
, ACPI_RSD_OFFSET (SpiSerialBus
.DevicePolarity
), "DevicePolarity", AcpiGbl_DpDecode
},
365 {ACPI_RSD_UINT8
, ACPI_RSD_OFFSET (SpiSerialBus
.DataBitLength
), "DataBitLength", NULL
},
366 {ACPI_RSD_UINT8
, ACPI_RSD_OFFSET (SpiSerialBus
.ClockPhase
), "ClockPhase", AcpiGbl_CphDecode
},
367 {ACPI_RSD_UINT8
, ACPI_RSD_OFFSET (SpiSerialBus
.ClockPolarity
), "ClockPolarity", AcpiGbl_CpoDecode
},
368 {ACPI_RSD_UINT16
, ACPI_RSD_OFFSET (SpiSerialBus
.DeviceSelection
), "DeviceSelection", NULL
},
369 {ACPI_RSD_UINT32
, ACPI_RSD_OFFSET (SpiSerialBus
.ConnectionSpeed
), "ConnectionSpeed", NULL
},
372 ACPI_RSDUMP_INFO AcpiRsDumpUartSerialBus
[19] =
374 {ACPI_RSD_TITLE
, ACPI_RSD_TABLE_SIZE (AcpiRsDumpUartSerialBus
), "Uart Serial Bus", NULL
},
375 ACPI_RS_DUMP_COMMON_SERIAL_BUS
376 {ACPI_RSD_2BITFLAG
, ACPI_RSD_OFFSET (UartSerialBus
.FlowControl
), "FlowControl", AcpiGbl_FcDecode
},
377 {ACPI_RSD_2BITFLAG
, ACPI_RSD_OFFSET (UartSerialBus
.StopBits
), "StopBits", AcpiGbl_SbDecode
},
378 {ACPI_RSD_3BITFLAG
, ACPI_RSD_OFFSET (UartSerialBus
.DataBits
), "DataBits", AcpiGbl_BpbDecode
},
379 {ACPI_RSD_1BITFLAG
, ACPI_RSD_OFFSET (UartSerialBus
.Endian
), "Endian", AcpiGbl_EdDecode
},
380 {ACPI_RSD_UINT8
, ACPI_RSD_OFFSET (UartSerialBus
.Parity
), "Parity", AcpiGbl_PtDecode
},
381 {ACPI_RSD_UINT8
, ACPI_RSD_OFFSET (UartSerialBus
.LinesEnabled
), "LinesEnabled", NULL
},
382 {ACPI_RSD_UINT16
, ACPI_RSD_OFFSET (UartSerialBus
.RxFifoSize
), "RxFifoSize", NULL
},
383 {ACPI_RSD_UINT16
, ACPI_RSD_OFFSET (UartSerialBus
.TxFifoSize
), "TxFifoSize", NULL
},
384 {ACPI_RSD_UINT32
, ACPI_RSD_OFFSET (UartSerialBus
.DefaultBaudRate
), "ConnectionSpeed", NULL
},
388 * Tables used for common address descriptor flag fields
390 ACPI_RSDUMP_INFO AcpiRsDumpGeneralFlags
[5] =
392 {ACPI_RSD_TITLE
, ACPI_RSD_TABLE_SIZE (AcpiRsDumpGeneralFlags
), NULL
, NULL
},
393 {ACPI_RSD_1BITFLAG
, ACPI_RSD_OFFSET (Address
.ProducerConsumer
), "Consumer/Producer", AcpiGbl_ConsumeDecode
},
394 {ACPI_RSD_1BITFLAG
, ACPI_RSD_OFFSET (Address
.Decode
), "Address Decode", AcpiGbl_DecDecode
},
395 {ACPI_RSD_1BITFLAG
, ACPI_RSD_OFFSET (Address
.MinAddressFixed
), "Min Relocatability", AcpiGbl_MinDecode
},
396 {ACPI_RSD_1BITFLAG
, ACPI_RSD_OFFSET (Address
.MaxAddressFixed
), "Max Relocatability", AcpiGbl_MaxDecode
}
399 ACPI_RSDUMP_INFO AcpiRsDumpMemoryFlags
[5] =
401 {ACPI_RSD_LITERAL
, ACPI_RSD_TABLE_SIZE (AcpiRsDumpMemoryFlags
), "Resource Type", (void *) "Memory Range"},
402 {ACPI_RSD_1BITFLAG
, ACPI_RSD_OFFSET (Address
.Info
.Mem
.WriteProtect
), "Write Protect", AcpiGbl_RwDecode
},
403 {ACPI_RSD_2BITFLAG
, ACPI_RSD_OFFSET (Address
.Info
.Mem
.Caching
), "Caching", AcpiGbl_MemDecode
},
404 {ACPI_RSD_2BITFLAG
, ACPI_RSD_OFFSET (Address
.Info
.Mem
.RangeType
), "Range Type", AcpiGbl_MtpDecode
},
405 {ACPI_RSD_1BITFLAG
, ACPI_RSD_OFFSET (Address
.Info
.Mem
.Translation
), "Translation", AcpiGbl_TtpDecode
}
408 ACPI_RSDUMP_INFO AcpiRsDumpIoFlags
[4] =
410 {ACPI_RSD_LITERAL
, ACPI_RSD_TABLE_SIZE (AcpiRsDumpIoFlags
), "Resource Type", (void *) "I/O Range"},
411 {ACPI_RSD_2BITFLAG
, ACPI_RSD_OFFSET (Address
.Info
.Io
.RangeType
), "Range Type", AcpiGbl_RngDecode
},
412 {ACPI_RSD_1BITFLAG
, ACPI_RSD_OFFSET (Address
.Info
.Io
.Translation
), "Translation", AcpiGbl_TtpDecode
},
413 {ACPI_RSD_1BITFLAG
, ACPI_RSD_OFFSET (Address
.Info
.Io
.TranslationType
), "Translation Type", AcpiGbl_TrsDecode
}
418 * Table used to dump _PRT contents
420 ACPI_RSDUMP_INFO AcpiRsDumpPrt
[5] =
422 {ACPI_RSD_TITLE
, ACPI_RSD_TABLE_SIZE (AcpiRsDumpPrt
), NULL
, NULL
},
423 {ACPI_RSD_UINT64
, ACPI_PRT_OFFSET (Address
), "Address", NULL
},
424 {ACPI_RSD_UINT32
, ACPI_PRT_OFFSET (Pin
), "Pin", NULL
},
425 {ACPI_RSD_STRING
, ACPI_PRT_OFFSET (Source
[0]), "Source", NULL
},
426 {ACPI_RSD_UINT32
, ACPI_PRT_OFFSET (SourceIndex
), "Source Index", NULL
}