1 1.1 christos /******************************************************************************* 2 1.1 christos * 3 1.1 christos * Module Name: rsdumpinfo - Tables used to display resource descriptors. 4 1.1 christos * 5 1.1 christos ******************************************************************************/ 6 1.1 christos 7 1.16 christos /****************************************************************************** 8 1.16 christos * 9 1.16 christos * 1. Copyright Notice 10 1.16 christos * 11 1.17 christos * Some or all of this work - Copyright (c) 1999 - 2025, Intel Corp. 12 1.1 christos * All rights reserved. 13 1.1 christos * 14 1.16 christos * 2. License 15 1.16 christos * 16 1.16 christos * 2.1. This is your license from Intel Corp. under its intellectual property 17 1.16 christos * rights. You may have additional license terms from the party that provided 18 1.16 christos * you this software, covering your right to use that party's intellectual 19 1.16 christos * property rights. 20 1.16 christos * 21 1.16 christos * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a 22 1.16 christos * copy of the source code appearing in this file ("Covered Code") an 23 1.16 christos * irrevocable, perpetual, worldwide license under Intel's copyrights in the 24 1.16 christos * base code distributed originally by Intel ("Original Intel Code") to copy, 25 1.16 christos * make derivatives, distribute, use and display any portion of the Covered 26 1.16 christos * Code in any form, with the right to sublicense such rights; and 27 1.16 christos * 28 1.16 christos * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent 29 1.16 christos * license (with the right to sublicense), under only those claims of Intel 30 1.16 christos * patents that are infringed by the Original Intel Code, to make, use, sell, 31 1.16 christos * offer to sell, and import the Covered Code and derivative works thereof 32 1.16 christos * solely to the minimum extent necessary to exercise the above copyright 33 1.16 christos * license, and in no event shall the patent license extend to any additions 34 1.16 christos * to or modifications of the Original Intel Code. No other license or right 35 1.16 christos * is granted directly or by implication, estoppel or otherwise; 36 1.16 christos * 37 1.16 christos * The above copyright and patent license is granted only if the following 38 1.16 christos * conditions are met: 39 1.16 christos * 40 1.16 christos * 3. Conditions 41 1.16 christos * 42 1.16 christos * 3.1. Redistribution of Source with Rights to Further Distribute Source. 43 1.16 christos * Redistribution of source code of any substantial portion of the Covered 44 1.16 christos * Code or modification with rights to further distribute source must include 45 1.16 christos * the above Copyright Notice, the above License, this list of Conditions, 46 1.16 christos * and the following Disclaimer and Export Compliance provision. In addition, 47 1.16 christos * Licensee must cause all Covered Code to which Licensee contributes to 48 1.16 christos * contain a file documenting the changes Licensee made to create that Covered 49 1.16 christos * Code and the date of any change. Licensee must include in that file the 50 1.16 christos * documentation of any changes made by any predecessor Licensee. Licensee 51 1.16 christos * must include a prominent statement that the modification is derived, 52 1.16 christos * directly or indirectly, from Original Intel Code. 53 1.16 christos * 54 1.16 christos * 3.2. Redistribution of Source with no Rights to Further Distribute Source. 55 1.16 christos * Redistribution of source code of any substantial portion of the Covered 56 1.16 christos * Code or modification without rights to further distribute source must 57 1.16 christos * include the following Disclaimer and Export Compliance provision in the 58 1.16 christos * documentation and/or other materials provided with distribution. In 59 1.16 christos * addition, Licensee may not authorize further sublicense of source of any 60 1.16 christos * portion of the Covered Code, and must include terms to the effect that the 61 1.16 christos * license from Licensee to its licensee is limited to the intellectual 62 1.16 christos * property embodied in the software Licensee provides to its licensee, and 63 1.16 christos * not to intellectual property embodied in modifications its licensee may 64 1.16 christos * make. 65 1.16 christos * 66 1.16 christos * 3.3. Redistribution of Executable. Redistribution in executable form of any 67 1.16 christos * substantial portion of the Covered Code or modification must reproduce the 68 1.16 christos * above Copyright Notice, and the following Disclaimer and Export Compliance 69 1.16 christos * provision in the documentation and/or other materials provided with the 70 1.16 christos * distribution. 71 1.16 christos * 72 1.16 christos * 3.4. Intel retains all right, title, and interest in and to the Original 73 1.16 christos * Intel Code. 74 1.16 christos * 75 1.16 christos * 3.5. Neither the name Intel nor any other trademark owned or controlled by 76 1.16 christos * Intel shall be used in advertising or otherwise to promote the sale, use or 77 1.16 christos * other dealings in products derived from or relating to the Covered Code 78 1.16 christos * without prior written authorization from Intel. 79 1.16 christos * 80 1.16 christos * 4. Disclaimer and Export Compliance 81 1.16 christos * 82 1.16 christos * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED 83 1.16 christos * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE 84 1.16 christos * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE, 85 1.16 christos * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY 86 1.16 christos * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY 87 1.16 christos * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A 88 1.16 christos * PARTICULAR PURPOSE. 89 1.16 christos * 90 1.16 christos * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES 91 1.16 christos * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR 92 1.16 christos * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT, 93 1.16 christos * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY 94 1.16 christos * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL 95 1.16 christos * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS 96 1.16 christos * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY 97 1.16 christos * LIMITED REMEDY. 98 1.16 christos * 99 1.16 christos * 4.3. Licensee shall not export, either directly or indirectly, any of this 100 1.16 christos * software or system incorporating such software without first obtaining any 101 1.16 christos * required license or other approval from the U. S. Department of Commerce or 102 1.16 christos * any other agency or department of the United States Government. In the 103 1.16 christos * event Licensee exports any such software from the United States or 104 1.16 christos * re-exports any such software from a foreign destination, Licensee shall 105 1.16 christos * ensure that the distribution and export/re-export of the software is in 106 1.16 christos * compliance with all laws, regulations, orders, or other restrictions of the 107 1.16 christos * U.S. Export Administration Regulations. Licensee agrees that neither it nor 108 1.16 christos * any of its subsidiaries will export/re-export any technical data, process, 109 1.16 christos * software, or service, directly or indirectly, to any country for which the 110 1.16 christos * United States government or any agency thereof requires an export license, 111 1.16 christos * other governmental approval, or letter of assurance, without first obtaining 112 1.16 christos * such license, approval or letter. 113 1.16 christos * 114 1.16 christos ***************************************************************************** 115 1.16 christos * 116 1.16 christos * Alternatively, you may choose to be licensed under the terms of the 117 1.16 christos * following license: 118 1.16 christos * 119 1.1 christos * Redistribution and use in source and binary forms, with or without 120 1.1 christos * modification, are permitted provided that the following conditions 121 1.1 christos * are met: 122 1.1 christos * 1. Redistributions of source code must retain the above copyright 123 1.1 christos * notice, this list of conditions, and the following disclaimer, 124 1.1 christos * without modification. 125 1.1 christos * 2. Redistributions in binary form must reproduce at minimum a disclaimer 126 1.1 christos * substantially similar to the "NO WARRANTY" disclaimer below 127 1.1 christos * ("Disclaimer") and any redistribution must be conditioned upon 128 1.1 christos * including a substantially similar Disclaimer requirement for further 129 1.1 christos * binary redistribution. 130 1.1 christos * 3. Neither the names of the above-listed copyright holders nor the names 131 1.1 christos * of any contributors may be used to endorse or promote products derived 132 1.1 christos * from this software without specific prior written permission. 133 1.1 christos * 134 1.1 christos * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 135 1.1 christos * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 136 1.12 christos * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 137 1.1 christos * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 138 1.16 christos * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 139 1.16 christos * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 140 1.16 christos * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 141 1.16 christos * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 142 1.16 christos * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 143 1.16 christos * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 144 1.16 christos * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 145 1.16 christos * 146 1.16 christos * Alternatively, you may choose to be licensed under the terms of the 147 1.16 christos * GNU General Public License ("GPL") version 2 as published by the Free 148 1.16 christos * Software Foundation. 149 1.16 christos * 150 1.16 christos *****************************************************************************/ 151 1.1 christos 152 1.1 christos #include "acpi.h" 153 1.1 christos #include "accommon.h" 154 1.1 christos #include "acresrc.h" 155 1.1 christos 156 1.1 christos #define _COMPONENT ACPI_RESOURCES 157 1.1 christos ACPI_MODULE_NAME ("rsdumpinfo") 158 1.1 christos 159 1.1 christos 160 1.3 christos #if defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DISASSEMBLER) || defined(ACPI_DEBUGGER) 161 1.1 christos 162 1.1 christos 163 1.1 christos #define ACPI_RSD_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_RESOURCE_DATA,f) 164 1.1 christos #define ACPI_PRT_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_PCI_ROUTING_TABLE,f) 165 1.1 christos #define ACPI_RSD_TABLE_SIZE(name) (sizeof(name) / sizeof (ACPI_RSDUMP_INFO)) 166 1.1 christos 167 1.1 christos 168 1.1 christos /******************************************************************************* 169 1.1 christos * 170 1.1 christos * Resource Descriptor info tables 171 1.1 christos * 172 1.1 christos * Note: The first table entry must be a Title or Literal and must contain 173 1.1 christos * the table length (number of table entries) 174 1.1 christos * 175 1.1 christos ******************************************************************************/ 176 1.1 christos 177 1.1 christos ACPI_RSDUMP_INFO AcpiRsDumpIrq[7] = 178 1.1 christos { 179 1.1 christos {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpIrq), "IRQ", NULL}, 180 1.1 christos {ACPI_RSD_UINT8 , ACPI_RSD_OFFSET (Irq.DescriptorLength), "Descriptor Length", NULL}, 181 1.1 christos {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Irq.Triggering), "Triggering", AcpiGbl_HeDecode}, 182 1.1 christos {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Irq.Polarity), "Polarity", AcpiGbl_LlDecode}, 183 1.10 christos {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET (Irq.Shareable), "Sharing", AcpiGbl_ShrDecode}, 184 1.1 christos {ACPI_RSD_UINT8 , ACPI_RSD_OFFSET (Irq.InterruptCount), "Interrupt Count", NULL}, 185 1.1 christos {ACPI_RSD_SHORTLIST,ACPI_RSD_OFFSET (Irq.Interrupts[0]), "Interrupt List", NULL} 186 1.1 christos }; 187 1.1 christos 188 1.1 christos ACPI_RSDUMP_INFO AcpiRsDumpDma[6] = 189 1.1 christos { 190 1.1 christos {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpDma), "DMA", NULL}, 191 1.1 christos {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET (Dma.Type), "Speed", AcpiGbl_TypDecode}, 192 1.1 christos {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Dma.BusMaster), "Mastering", AcpiGbl_BmDecode}, 193 1.1 christos {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET (Dma.Transfer), "Transfer Type", AcpiGbl_SizDecode}, 194 1.1 christos {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (Dma.ChannelCount), "Channel Count", NULL}, 195 1.1 christos {ACPI_RSD_SHORTLIST,ACPI_RSD_OFFSET (Dma.Channels[0]), "Channel List", NULL} 196 1.1 christos }; 197 1.1 christos 198 1.1 christos ACPI_RSDUMP_INFO AcpiRsDumpStartDpf[4] = 199 1.1 christos { 200 1.1 christos {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpStartDpf), "Start-Dependent-Functions",NULL}, 201 1.1 christos {ACPI_RSD_UINT8 , ACPI_RSD_OFFSET (StartDpf.DescriptorLength), "Descriptor Length", NULL}, 202 1.1 christos {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET (StartDpf.CompatibilityPriority), "Compatibility Priority", AcpiGbl_ConfigDecode}, 203 1.1 christos {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET (StartDpf.PerformanceRobustness), "Performance/Robustness", AcpiGbl_ConfigDecode} 204 1.1 christos }; 205 1.1 christos 206 1.1 christos ACPI_RSDUMP_INFO AcpiRsDumpEndDpf[1] = 207 1.1 christos { 208 1.1 christos {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpEndDpf), "End-Dependent-Functions", NULL} 209 1.1 christos }; 210 1.1 christos 211 1.1 christos ACPI_RSDUMP_INFO AcpiRsDumpIo[6] = 212 1.1 christos { 213 1.1 christos {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpIo), "I/O", NULL}, 214 1.1 christos {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Io.IoDecode), "Address Decoding", AcpiGbl_IoDecode}, 215 1.1 christos {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (Io.Minimum), "Address Minimum", NULL}, 216 1.1 christos {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (Io.Maximum), "Address Maximum", NULL}, 217 1.1 christos {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (Io.Alignment), "Alignment", NULL}, 218 1.1 christos {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (Io.AddressLength), "Address Length", NULL} 219 1.1 christos }; 220 1.1 christos 221 1.1 christos ACPI_RSDUMP_INFO AcpiRsDumpFixedIo[3] = 222 1.1 christos { 223 1.1 christos {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpFixedIo), "Fixed I/O", NULL}, 224 1.1 christos {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (FixedIo.Address), "Address", NULL}, 225 1.1 christos {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (FixedIo.AddressLength), "Address Length", NULL} 226 1.1 christos }; 227 1.1 christos 228 1.1 christos ACPI_RSDUMP_INFO AcpiRsDumpVendor[3] = 229 1.1 christos { 230 1.1 christos {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpVendor), "Vendor Specific", NULL}, 231 1.1 christos {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (Vendor.ByteLength), "Length", NULL}, 232 1.1 christos {ACPI_RSD_LONGLIST, ACPI_RSD_OFFSET (Vendor.ByteData[0]), "Vendor Data", NULL} 233 1.1 christos }; 234 1.1 christos 235 1.1 christos ACPI_RSDUMP_INFO AcpiRsDumpEndTag[1] = 236 1.1 christos { 237 1.1 christos {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpEndTag), "EndTag", NULL} 238 1.1 christos }; 239 1.1 christos 240 1.1 christos ACPI_RSDUMP_INFO AcpiRsDumpMemory24[6] = 241 1.1 christos { 242 1.1 christos {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpMemory24), "24-Bit Memory Range", NULL}, 243 1.1 christos {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Memory24.WriteProtect), "Write Protect", AcpiGbl_RwDecode}, 244 1.1 christos {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (Memory24.Minimum), "Address Minimum", NULL}, 245 1.1 christos {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (Memory24.Maximum), "Address Maximum", NULL}, 246 1.1 christos {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (Memory24.Alignment), "Alignment", NULL}, 247 1.1 christos {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (Memory24.AddressLength), "Address Length", NULL} 248 1.1 christos }; 249 1.1 christos 250 1.1 christos ACPI_RSDUMP_INFO AcpiRsDumpMemory32[6] = 251 1.1 christos { 252 1.1 christos {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpMemory32), "32-Bit Memory Range", NULL}, 253 1.1 christos {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Memory32.WriteProtect), "Write Protect", AcpiGbl_RwDecode}, 254 1.1 christos {ACPI_RSD_UINT32, ACPI_RSD_OFFSET (Memory32.Minimum), "Address Minimum", NULL}, 255 1.1 christos {ACPI_RSD_UINT32, ACPI_RSD_OFFSET (Memory32.Maximum), "Address Maximum", NULL}, 256 1.1 christos {ACPI_RSD_UINT32, ACPI_RSD_OFFSET (Memory32.Alignment), "Alignment", NULL}, 257 1.1 christos {ACPI_RSD_UINT32, ACPI_RSD_OFFSET (Memory32.AddressLength), "Address Length", NULL} 258 1.1 christos }; 259 1.1 christos 260 1.1 christos ACPI_RSDUMP_INFO AcpiRsDumpFixedMemory32[4] = 261 1.1 christos { 262 1.1 christos {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpFixedMemory32), "32-Bit Fixed Memory Range",NULL}, 263 1.1 christos {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (FixedMemory32.WriteProtect), "Write Protect", AcpiGbl_RwDecode}, 264 1.1 christos {ACPI_RSD_UINT32, ACPI_RSD_OFFSET (FixedMemory32.Address), "Address", NULL}, 265 1.1 christos {ACPI_RSD_UINT32, ACPI_RSD_OFFSET (FixedMemory32.AddressLength), "Address Length", NULL} 266 1.1 christos }; 267 1.1 christos 268 1.1 christos ACPI_RSDUMP_INFO AcpiRsDumpAddress16[8] = 269 1.1 christos { 270 1.1 christos {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpAddress16), "16-Bit WORD Address Space",NULL}, 271 1.1 christos {ACPI_RSD_ADDRESS, 0, NULL, NULL}, 272 1.4 christos {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (Address16.Address.Granularity), "Granularity", NULL}, 273 1.4 christos {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (Address16.Address.Minimum), "Address Minimum", NULL}, 274 1.4 christos {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (Address16.Address.Maximum), "Address Maximum", NULL}, 275 1.4 christos {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (Address16.Address.TranslationOffset), 276 1.4 christos "Translation Offset", NULL}, 277 1.4 christos {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (Address16.Address.AddressLength), "Address Length", NULL}, 278 1.1 christos {ACPI_RSD_SOURCE, ACPI_RSD_OFFSET (Address16.ResourceSource), NULL, NULL} 279 1.1 christos }; 280 1.1 christos 281 1.1 christos ACPI_RSDUMP_INFO AcpiRsDumpAddress32[8] = 282 1.1 christos { 283 1.1 christos {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpAddress32), "32-Bit DWORD Address Space", NULL}, 284 1.1 christos {ACPI_RSD_ADDRESS, 0, NULL, NULL}, 285 1.4 christos {ACPI_RSD_UINT32, ACPI_RSD_OFFSET (Address32.Address.Granularity), "Granularity", NULL}, 286 1.4 christos {ACPI_RSD_UINT32, ACPI_RSD_OFFSET (Address32.Address.Minimum), "Address Minimum", NULL}, 287 1.4 christos {ACPI_RSD_UINT32, ACPI_RSD_OFFSET (Address32.Address.Maximum), "Address Maximum", NULL}, 288 1.4 christos {ACPI_RSD_UINT32, ACPI_RSD_OFFSET (Address32.Address.TranslationOffset), 289 1.4 christos "Translation Offset", NULL}, 290 1.4 christos {ACPI_RSD_UINT32, ACPI_RSD_OFFSET (Address32.Address.AddressLength), "Address Length", NULL}, 291 1.1 christos {ACPI_RSD_SOURCE, ACPI_RSD_OFFSET (Address32.ResourceSource), NULL, NULL} 292 1.1 christos }; 293 1.1 christos 294 1.1 christos ACPI_RSDUMP_INFO AcpiRsDumpAddress64[8] = 295 1.1 christos { 296 1.1 christos {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpAddress64), "64-Bit QWORD Address Space", NULL}, 297 1.1 christos {ACPI_RSD_ADDRESS, 0, NULL, NULL}, 298 1.4 christos {ACPI_RSD_UINT64, ACPI_RSD_OFFSET (Address64.Address.Granularity), "Granularity", NULL}, 299 1.4 christos {ACPI_RSD_UINT64, ACPI_RSD_OFFSET (Address64.Address.Minimum), "Address Minimum", NULL}, 300 1.4 christos {ACPI_RSD_UINT64, ACPI_RSD_OFFSET (Address64.Address.Maximum), "Address Maximum", NULL}, 301 1.4 christos {ACPI_RSD_UINT64, ACPI_RSD_OFFSET (Address64.Address.TranslationOffset), 302 1.4 christos "Translation Offset", NULL}, 303 1.4 christos {ACPI_RSD_UINT64, ACPI_RSD_OFFSET (Address64.Address.AddressLength), "Address Length", NULL}, 304 1.1 christos {ACPI_RSD_SOURCE, ACPI_RSD_OFFSET (Address64.ResourceSource), NULL, NULL} 305 1.1 christos }; 306 1.1 christos 307 1.1 christos ACPI_RSDUMP_INFO AcpiRsDumpExtAddress64[8] = 308 1.1 christos { 309 1.1 christos {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpExtAddress64), "64-Bit Extended Address Space", NULL}, 310 1.1 christos {ACPI_RSD_ADDRESS, 0, NULL, NULL}, 311 1.4 christos {ACPI_RSD_UINT64, ACPI_RSD_OFFSET (ExtAddress64.Address.Granularity), "Granularity", NULL}, 312 1.4 christos {ACPI_RSD_UINT64, ACPI_RSD_OFFSET (ExtAddress64.Address.Minimum), "Address Minimum", NULL}, 313 1.4 christos {ACPI_RSD_UINT64, ACPI_RSD_OFFSET (ExtAddress64.Address.Maximum), "Address Maximum", NULL}, 314 1.4 christos {ACPI_RSD_UINT64, ACPI_RSD_OFFSET (ExtAddress64.Address.TranslationOffset), 315 1.4 christos "Translation Offset", NULL}, 316 1.4 christos {ACPI_RSD_UINT64, ACPI_RSD_OFFSET (ExtAddress64.Address.AddressLength), 317 1.4 christos "Address Length", NULL}, 318 1.1 christos {ACPI_RSD_UINT64, ACPI_RSD_OFFSET (ExtAddress64.TypeSpecific), "Type-Specific Attribute", NULL} 319 1.1 christos }; 320 1.1 christos 321 1.1 christos ACPI_RSDUMP_INFO AcpiRsDumpExtIrq[8] = 322 1.1 christos { 323 1.1 christos {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpExtIrq), "Extended IRQ", NULL}, 324 1.1 christos {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (ExtendedIrq.ProducerConsumer), "Type", AcpiGbl_ConsumeDecode}, 325 1.1 christos {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (ExtendedIrq.Triggering), "Triggering", AcpiGbl_HeDecode}, 326 1.1 christos {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (ExtendedIrq.Polarity), "Polarity", AcpiGbl_LlDecode}, 327 1.10 christos {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET (ExtendedIrq.Shareable), "Sharing", AcpiGbl_ShrDecode}, 328 1.1 christos {ACPI_RSD_SOURCE, ACPI_RSD_OFFSET (ExtendedIrq.ResourceSource), NULL, NULL}, 329 1.1 christos {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (ExtendedIrq.InterruptCount), "Interrupt Count", NULL}, 330 1.1 christos {ACPI_RSD_DWORDLIST,ACPI_RSD_OFFSET (ExtendedIrq.Interrupts[0]), "Interrupt List", NULL} 331 1.1 christos }; 332 1.1 christos 333 1.1 christos ACPI_RSDUMP_INFO AcpiRsDumpGenericReg[6] = 334 1.1 christos { 335 1.1 christos {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpGenericReg), "Generic Register", NULL}, 336 1.1 christos {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (GenericReg.SpaceId), "Space ID", NULL}, 337 1.1 christos {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (GenericReg.BitWidth), "Bit Width", NULL}, 338 1.1 christos {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (GenericReg.BitOffset), "Bit Offset", NULL}, 339 1.1 christos {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (GenericReg.AccessSize), "Access Size", NULL}, 340 1.1 christos {ACPI_RSD_UINT64, ACPI_RSD_OFFSET (GenericReg.Address), "Address", NULL} 341 1.1 christos }; 342 1.1 christos 343 1.1 christos ACPI_RSDUMP_INFO AcpiRsDumpGpio[16] = 344 1.1 christos { 345 1.1 christos {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpGpio), "GPIO", NULL}, 346 1.1 christos {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (Gpio.RevisionId), "RevisionId", NULL}, 347 1.1 christos {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (Gpio.ConnectionType), "ConnectionType", AcpiGbl_CtDecode}, 348 1.1 christos {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Gpio.ProducerConsumer), "ProducerConsumer", AcpiGbl_ConsumeDecode}, 349 1.1 christos {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (Gpio.PinConfig), "PinConfig", AcpiGbl_PpcDecode}, 350 1.10 christos {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET (Gpio.Shareable), "Sharing", AcpiGbl_ShrDecode}, 351 1.1 christos {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET (Gpio.IoRestriction), "IoRestriction", AcpiGbl_IorDecode}, 352 1.1 christos {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Gpio.Triggering), "Triggering", AcpiGbl_HeDecode}, 353 1.1 christos {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET (Gpio.Polarity), "Polarity", AcpiGbl_LlDecode}, 354 1.1 christos {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (Gpio.DriveStrength), "DriveStrength", NULL}, 355 1.1 christos {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (Gpio.DebounceTimeout), "DebounceTimeout", NULL}, 356 1.1 christos {ACPI_RSD_SOURCE, ACPI_RSD_OFFSET (Gpio.ResourceSource), "ResourceSource", NULL}, 357 1.1 christos {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (Gpio.PinTableLength), "PinTableLength", NULL}, 358 1.1 christos {ACPI_RSD_WORDLIST, ACPI_RSD_OFFSET (Gpio.PinTable), "PinTable", NULL}, 359 1.1 christos {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (Gpio.VendorLength), "VendorLength", NULL}, 360 1.1 christos {ACPI_RSD_SHORTLISTX,ACPI_RSD_OFFSET (Gpio.VendorData), "VendorData", NULL}, 361 1.1 christos }; 362 1.1 christos 363 1.8 christos ACPI_RSDUMP_INFO AcpiRsDumpPinFunction[10] = 364 1.8 christos { 365 1.8 christos {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpPinFunction), "PinFunction", NULL}, 366 1.8 christos {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (PinFunction.RevisionId), "RevisionId", NULL}, 367 1.8 christos {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (PinFunction.PinConfig), "PinConfig", AcpiGbl_PpcDecode}, 368 1.10 christos {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (PinFunction.Shareable), "Sharing", AcpiGbl_ShrDecode}, 369 1.8 christos {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (PinFunction.FunctionNumber), "FunctionNumber", NULL}, 370 1.8 christos {ACPI_RSD_SOURCE, ACPI_RSD_OFFSET (PinFunction.ResourceSource), "ResourceSource", NULL}, 371 1.8 christos {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (PinFunction.PinTableLength), "PinTableLength", NULL}, 372 1.8 christos {ACPI_RSD_WORDLIST, ACPI_RSD_OFFSET (PinFunction.PinTable), "PinTable", NULL}, 373 1.8 christos {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (PinFunction.VendorLength), "VendorLength", NULL}, 374 1.8 christos {ACPI_RSD_SHORTLISTX,ACPI_RSD_OFFSET (PinFunction.VendorData), "VendorData", NULL}, 375 1.8 christos }; 376 1.8 christos 377 1.15 christos ACPI_RSDUMP_INFO AcpiRsDumpClockInput[7] = 378 1.15 christos { 379 1.15 christos {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpClockInput), "ClockInput", NULL}, 380 1.15 christos {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (ClockInput.RevisionId), "RevisionId", NULL}, 381 1.15 christos {ACPI_RSD_UINT32, ACPI_RSD_OFFSET (ClockInput.FrequencyNumerator), "FrequencyNumerator", NULL}, 382 1.15 christos {ACPI_RSD_UINT32, ACPI_RSD_OFFSET (ClockInput.FrequencyDivisor), "FrequencyDivisor", NULL}, 383 1.15 christos {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (ClockInput.Scale), "Scale", AcpiGbl_ClockInputScale}, 384 1.15 christos {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (ClockInput.Mode), "Mode", AcpiGbl_ClockInputMode}, 385 1.15 christos {ACPI_RSD_SOURCE, ACPI_RSD_OFFSET (ClockInput.ResourceSource), "ResourceSource", NULL}, 386 1.15 christos }; 387 1.15 christos 388 1.8 christos ACPI_RSDUMP_INFO AcpiRsDumpPinConfig[11] = 389 1.8 christos { 390 1.8 christos {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpPinConfig), "PinConfig", NULL}, 391 1.8 christos {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (PinConfig.RevisionId), "RevisionId", NULL}, 392 1.8 christos {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (PinConfig.ProducerConsumer), "ProducerConsumer", AcpiGbl_ConsumeDecode}, 393 1.10 christos {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (PinConfig.Shareable), "Sharing", AcpiGbl_ShrDecode}, 394 1.8 christos {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (PinConfig.PinConfigType), "PinConfigType", NULL}, 395 1.8 christos {ACPI_RSD_UINT32, ACPI_RSD_OFFSET (PinConfig.PinConfigValue), "PinConfigValue", NULL}, 396 1.8 christos {ACPI_RSD_SOURCE, ACPI_RSD_OFFSET (PinConfig.ResourceSource), "ResourceSource", NULL}, 397 1.8 christos {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (PinConfig.PinTableLength), "PinTableLength", NULL}, 398 1.8 christos {ACPI_RSD_WORDLIST, ACPI_RSD_OFFSET (PinConfig.PinTable), "PinTable", NULL}, 399 1.8 christos {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (PinConfig.VendorLength), "VendorLength", NULL}, 400 1.8 christos {ACPI_RSD_SHORTLISTX,ACPI_RSD_OFFSET (PinConfig.VendorData), "VendorData", NULL}, 401 1.8 christos }; 402 1.8 christos 403 1.8 christos ACPI_RSDUMP_INFO AcpiRsDumpPinGroup[8] = 404 1.8 christos { 405 1.8 christos {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpPinGroup), "PinGroup", NULL}, 406 1.8 christos {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (PinGroup.RevisionId), "RevisionId", NULL}, 407 1.8 christos {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (PinGroup.ProducerConsumer), "ProducerConsumer", AcpiGbl_ConsumeDecode}, 408 1.8 christos {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (PinGroup.PinTableLength), "PinTableLength", NULL}, 409 1.8 christos {ACPI_RSD_WORDLIST, ACPI_RSD_OFFSET (PinGroup.PinTable), "PinTable", NULL}, 410 1.8 christos {ACPI_RSD_LABEL, ACPI_RSD_OFFSET (PinGroup.ResourceLabel), "ResourceLabel", NULL}, 411 1.8 christos {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (PinGroup.VendorLength), "VendorLength", NULL}, 412 1.8 christos {ACPI_RSD_SHORTLISTX,ACPI_RSD_OFFSET (PinGroup.VendorData), "VendorData", NULL}, 413 1.8 christos }; 414 1.8 christos 415 1.8 christos ACPI_RSDUMP_INFO AcpiRsDumpPinGroupFunction[9] = 416 1.8 christos { 417 1.8 christos {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpPinGroupFunction), "PinGroupFunction", NULL}, 418 1.8 christos {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (PinGroupFunction.RevisionId), "RevisionId", NULL}, 419 1.8 christos {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (PinGroupFunction.ProducerConsumer), "ProducerConsumer", AcpiGbl_ConsumeDecode}, 420 1.10 christos {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (PinGroupFunction.Shareable), "Sharing", AcpiGbl_ShrDecode}, 421 1.8 christos {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (PinGroupFunction.FunctionNumber), "FunctionNumber", NULL}, 422 1.8 christos {ACPI_RSD_SOURCE_LABEL, ACPI_RSD_OFFSET (PinGroupFunction.ResourceSourceLabel), "ResourceSourceLabel", NULL}, 423 1.8 christos {ACPI_RSD_SOURCE, ACPI_RSD_OFFSET (PinGroupFunction.ResourceSource), "ResourceSource", NULL}, 424 1.8 christos {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (PinGroupFunction.VendorLength), "VendorLength", NULL}, 425 1.8 christos {ACPI_RSD_SHORTLISTX,ACPI_RSD_OFFSET (PinGroupFunction.VendorData), "VendorData", NULL}, 426 1.8 christos }; 427 1.8 christos 428 1.8 christos ACPI_RSDUMP_INFO AcpiRsDumpPinGroupConfig[10] = 429 1.8 christos { 430 1.8 christos {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpPinGroupConfig), "PinGroupConfig", NULL}, 431 1.8 christos {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (PinGroupConfig.RevisionId), "RevisionId", NULL}, 432 1.8 christos {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (PinGroupConfig.ProducerConsumer), "ProducerConsumer", AcpiGbl_ConsumeDecode}, 433 1.10 christos {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (PinGroupConfig.Shareable), "Sharing", AcpiGbl_ShrDecode}, 434 1.8 christos {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (PinGroupConfig.PinConfigType), "PinConfigType", NULL}, 435 1.8 christos {ACPI_RSD_UINT32, ACPI_RSD_OFFSET (PinGroupConfig.PinConfigValue), "PinConfigValue", NULL}, 436 1.8 christos {ACPI_RSD_SOURCE_LABEL, ACPI_RSD_OFFSET (PinGroupConfig.ResourceSourceLabel), "ResourceSourceLabel", NULL}, 437 1.8 christos {ACPI_RSD_SOURCE, ACPI_RSD_OFFSET (PinGroupConfig.ResourceSource), "ResourceSource", NULL}, 438 1.8 christos {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (PinGroupConfig.VendorLength), "VendorLength", NULL}, 439 1.8 christos {ACPI_RSD_SHORTLISTX,ACPI_RSD_OFFSET (PinGroupConfig.VendorData), "VendorData", NULL}, 440 1.8 christos }; 441 1.8 christos 442 1.1 christos ACPI_RSDUMP_INFO AcpiRsDumpFixedDma[4] = 443 1.1 christos { 444 1.1 christos {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpFixedDma), "FixedDma", NULL}, 445 1.1 christos {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (FixedDma.RequestLines), "RequestLines", NULL}, 446 1.1 christos {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (FixedDma.Channels), "Channels", NULL}, 447 1.1 christos {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (FixedDma.Width), "TransferWidth", AcpiGbl_DtsDecode}, 448 1.1 christos }; 449 1.1 christos 450 1.1 christos #define ACPI_RS_DUMP_COMMON_SERIAL_BUS \ 451 1.1 christos {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (CommonSerialBus.RevisionId), "RevisionId", NULL}, \ 452 1.1 christos {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (CommonSerialBus.Type), "Type", AcpiGbl_SbtDecode}, \ 453 1.1 christos {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (CommonSerialBus.ProducerConsumer), "ProducerConsumer", AcpiGbl_ConsumeDecode}, \ 454 1.1 christos {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (CommonSerialBus.SlaveMode), "SlaveMode", AcpiGbl_SmDecode}, \ 455 1.6 christos {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (CommonSerialBus.ConnectionSharing),"ConnectionSharing", AcpiGbl_ShrDecode}, \ 456 1.1 christos {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (CommonSerialBus.TypeRevisionId), "TypeRevisionId", NULL}, \ 457 1.1 christos {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (CommonSerialBus.TypeDataLength), "TypeDataLength", NULL}, \ 458 1.1 christos {ACPI_RSD_SOURCE, ACPI_RSD_OFFSET (CommonSerialBus.ResourceSource), "ResourceSource", NULL}, \ 459 1.1 christos {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (CommonSerialBus.VendorLength), "VendorLength", NULL}, \ 460 1.1 christos {ACPI_RSD_SHORTLISTX,ACPI_RSD_OFFSET (CommonSerialBus.VendorData), "VendorData", NULL}, 461 1.1 christos 462 1.6 christos ACPI_RSDUMP_INFO AcpiRsDumpCommonSerialBus[11] = 463 1.1 christos { 464 1.1 christos {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpCommonSerialBus), "Common Serial Bus", NULL}, 465 1.1 christos ACPI_RS_DUMP_COMMON_SERIAL_BUS 466 1.1 christos }; 467 1.1 christos 468 1.12 christos ACPI_RSDUMP_INFO AcpiRsDumpCsi2SerialBus[11] = 469 1.12 christos { 470 1.12 christos {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpCsi2SerialBus), "Camera Serial Bus", NULL}, 471 1.12 christos {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (Csi2SerialBus.RevisionId), "RevisionId", NULL}, 472 1.12 christos {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (Csi2SerialBus.Type), "Type", AcpiGbl_SbtDecode}, 473 1.12 christos {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Csi2SerialBus.ProducerConsumer), "ProducerConsumer", AcpiGbl_ConsumeDecode}, 474 1.12 christos {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Csi2SerialBus.SlaveMode), "SlaveMode", AcpiGbl_SmDecode}, 475 1.12 christos {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET (Csi2SerialBus.PhyType), "PhyType", AcpiGbl_PhyDecode}, 476 1.12 christos {ACPI_RSD_6BITFLAG, ACPI_RSD_OFFSET (Csi2SerialBus.LocalPortInstance), "LocalPortInstance", NULL}, 477 1.12 christos {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (Csi2SerialBus.TypeRevisionId), "TypeRevisionId", NULL}, 478 1.12 christos {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (Csi2SerialBus.VendorLength), "VendorLength", NULL}, 479 1.12 christos {ACPI_RSD_SHORTLISTX,ACPI_RSD_OFFSET (Csi2SerialBus.VendorData), "VendorData", NULL}, 480 1.12 christos {ACPI_RSD_SOURCE, ACPI_RSD_OFFSET (Csi2SerialBus.ResourceSource), "ResourceSource", NULL}, 481 1.12 christos }; 482 1.12 christos 483 1.6 christos ACPI_RSDUMP_INFO AcpiRsDumpI2cSerialBus[14] = 484 1.1 christos { 485 1.1 christos {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpI2cSerialBus), "I2C Serial Bus", NULL}, 486 1.1 christos ACPI_RS_DUMP_COMMON_SERIAL_BUS 487 1.1 christos {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (I2cSerialBus.AccessMode), "AccessMode", AcpiGbl_AmDecode}, 488 1.1 christos {ACPI_RSD_UINT32, ACPI_RSD_OFFSET (I2cSerialBus.ConnectionSpeed), "ConnectionSpeed", NULL}, 489 1.1 christos {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (I2cSerialBus.SlaveAddress), "SlaveAddress", NULL}, 490 1.1 christos }; 491 1.1 christos 492 1.6 christos ACPI_RSDUMP_INFO AcpiRsDumpSpiSerialBus[18] = 493 1.1 christos { 494 1.1 christos {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpSpiSerialBus), "Spi Serial Bus", NULL}, 495 1.1 christos ACPI_RS_DUMP_COMMON_SERIAL_BUS 496 1.1 christos {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (SpiSerialBus.WireMode), "WireMode", AcpiGbl_WmDecode}, 497 1.1 christos {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (SpiSerialBus.DevicePolarity), "DevicePolarity", AcpiGbl_DpDecode}, 498 1.1 christos {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (SpiSerialBus.DataBitLength), "DataBitLength", NULL}, 499 1.1 christos {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (SpiSerialBus.ClockPhase), "ClockPhase", AcpiGbl_CphDecode}, 500 1.1 christos {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (SpiSerialBus.ClockPolarity), "ClockPolarity", AcpiGbl_CpoDecode}, 501 1.1 christos {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (SpiSerialBus.DeviceSelection), "DeviceSelection", NULL}, 502 1.1 christos {ACPI_RSD_UINT32, ACPI_RSD_OFFSET (SpiSerialBus.ConnectionSpeed), "ConnectionSpeed", NULL}, 503 1.1 christos }; 504 1.1 christos 505 1.6 christos ACPI_RSDUMP_INFO AcpiRsDumpUartSerialBus[20] = 506 1.1 christos { 507 1.1 christos {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpUartSerialBus), "Uart Serial Bus", NULL}, 508 1.1 christos ACPI_RS_DUMP_COMMON_SERIAL_BUS 509 1.1 christos {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET (UartSerialBus.FlowControl), "FlowControl", AcpiGbl_FcDecode}, 510 1.1 christos {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET (UartSerialBus.StopBits), "StopBits", AcpiGbl_SbDecode}, 511 1.1 christos {ACPI_RSD_3BITFLAG, ACPI_RSD_OFFSET (UartSerialBus.DataBits), "DataBits", AcpiGbl_BpbDecode}, 512 1.1 christos {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (UartSerialBus.Endian), "Endian", AcpiGbl_EdDecode}, 513 1.1 christos {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (UartSerialBus.Parity), "Parity", AcpiGbl_PtDecode}, 514 1.1 christos {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (UartSerialBus.LinesEnabled), "LinesEnabled", NULL}, 515 1.1 christos {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (UartSerialBus.RxFifoSize), "RxFifoSize", NULL}, 516 1.1 christos {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (UartSerialBus.TxFifoSize), "TxFifoSize", NULL}, 517 1.1 christos {ACPI_RSD_UINT32, ACPI_RSD_OFFSET (UartSerialBus.DefaultBaudRate), "ConnectionSpeed", NULL}, 518 1.1 christos }; 519 1.1 christos 520 1.1 christos /* 521 1.1 christos * Tables used for common address descriptor flag fields 522 1.1 christos */ 523 1.1 christos ACPI_RSDUMP_INFO AcpiRsDumpGeneralFlags[5] = 524 1.1 christos { 525 1.1 christos {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpGeneralFlags), NULL, NULL}, 526 1.1 christos {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Address.ProducerConsumer), "Consumer/Producer", AcpiGbl_ConsumeDecode}, 527 1.1 christos {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Address.Decode), "Address Decode", AcpiGbl_DecDecode}, 528 1.1 christos {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Address.MinAddressFixed), "Min Relocatability", AcpiGbl_MinDecode}, 529 1.1 christos {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Address.MaxAddressFixed), "Max Relocatability", AcpiGbl_MaxDecode} 530 1.1 christos }; 531 1.1 christos 532 1.1 christos ACPI_RSDUMP_INFO AcpiRsDumpMemoryFlags[5] = 533 1.1 christos { 534 1.13 christos {ACPI_RSD_LITERAL, ACPI_RSD_TABLE_SIZE (AcpiRsDumpMemoryFlags), "Resource Type", __UNCONST("Memory Range")}, 535 1.1 christos {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Address.Info.Mem.WriteProtect), "Write Protect", AcpiGbl_RwDecode}, 536 1.1 christos {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET (Address.Info.Mem.Caching), "Caching", AcpiGbl_MemDecode}, 537 1.1 christos {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET (Address.Info.Mem.RangeType), "Range Type", AcpiGbl_MtpDecode}, 538 1.1 christos {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Address.Info.Mem.Translation), "Translation", AcpiGbl_TtpDecode} 539 1.1 christos }; 540 1.1 christos 541 1.1 christos ACPI_RSDUMP_INFO AcpiRsDumpIoFlags[4] = 542 1.1 christos { 543 1.13 christos {ACPI_RSD_LITERAL, ACPI_RSD_TABLE_SIZE (AcpiRsDumpIoFlags), "Resource Type", __UNCONST("I/O Range")}, 544 1.1 christos {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET (Address.Info.Io.RangeType), "Range Type", AcpiGbl_RngDecode}, 545 1.1 christos {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Address.Info.Io.Translation), "Translation", AcpiGbl_TtpDecode}, 546 1.1 christos {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Address.Info.Io.TranslationType), "Translation Type", AcpiGbl_TrsDecode} 547 1.1 christos }; 548 1.1 christos 549 1.1 christos 550 1.1 christos /* 551 1.1 christos * Table used to dump _PRT contents 552 1.1 christos */ 553 1.1 christos ACPI_RSDUMP_INFO AcpiRsDumpPrt[5] = 554 1.1 christos { 555 1.1 christos {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpPrt), NULL, NULL}, 556 1.1 christos {ACPI_RSD_UINT64, ACPI_PRT_OFFSET (Address), "Address", NULL}, 557 1.1 christos {ACPI_RSD_UINT32, ACPI_PRT_OFFSET (Pin), "Pin", NULL}, 558 1.1 christos {ACPI_RSD_STRING, ACPI_PRT_OFFSET (Source[0]), "Source", NULL}, 559 1.1 christos {ACPI_RSD_UINT32, ACPI_PRT_OFFSET (SourceIndex), "Source Index", NULL} 560 1.1 christos }; 561 1.1 christos 562 1.1 christos #endif 563