1*385cc6b4SJerry Jelinek /******************************************************************************* 2*385cc6b4SJerry Jelinek * 3*385cc6b4SJerry Jelinek * Module Name: rsdumpinfo - Tables used to display resource descriptors. 4*385cc6b4SJerry Jelinek * 5*385cc6b4SJerry Jelinek ******************************************************************************/ 6*385cc6b4SJerry Jelinek 7*385cc6b4SJerry Jelinek /* 8*385cc6b4SJerry Jelinek * Copyright (C) 2000 - 2016, Intel Corp. 9*385cc6b4SJerry Jelinek * All rights reserved. 10*385cc6b4SJerry Jelinek * 11*385cc6b4SJerry Jelinek * Redistribution and use in source and binary forms, with or without 12*385cc6b4SJerry Jelinek * modification, are permitted provided that the following conditions 13*385cc6b4SJerry Jelinek * are met: 14*385cc6b4SJerry Jelinek * 1. Redistributions of source code must retain the above copyright 15*385cc6b4SJerry Jelinek * notice, this list of conditions, and the following disclaimer, 16*385cc6b4SJerry Jelinek * without modification. 17*385cc6b4SJerry Jelinek * 2. Redistributions in binary form must reproduce at minimum a disclaimer 18*385cc6b4SJerry Jelinek * substantially similar to the "NO WARRANTY" disclaimer below 19*385cc6b4SJerry Jelinek * ("Disclaimer") and any redistribution must be conditioned upon 20*385cc6b4SJerry Jelinek * including a substantially similar Disclaimer requirement for further 21*385cc6b4SJerry Jelinek * binary redistribution. 22*385cc6b4SJerry Jelinek * 3. Neither the names of the above-listed copyright holders nor the names 23*385cc6b4SJerry Jelinek * of any contributors may be used to endorse or promote products derived 24*385cc6b4SJerry Jelinek * from this software without specific prior written permission. 25*385cc6b4SJerry Jelinek * 26*385cc6b4SJerry Jelinek * Alternatively, this software may be distributed under the terms of the 27*385cc6b4SJerry Jelinek * GNU General Public License ("GPL") version 2 as published by the Free 28*385cc6b4SJerry Jelinek * Software Foundation. 29*385cc6b4SJerry Jelinek * 30*385cc6b4SJerry Jelinek * NO WARRANTY 31*385cc6b4SJerry Jelinek * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 32*385cc6b4SJerry Jelinek * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 33*385cc6b4SJerry Jelinek * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR 34*385cc6b4SJerry Jelinek * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 35*385cc6b4SJerry Jelinek * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 36*385cc6b4SJerry Jelinek * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 37*385cc6b4SJerry Jelinek * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 38*385cc6b4SJerry Jelinek * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 39*385cc6b4SJerry Jelinek * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 40*385cc6b4SJerry Jelinek * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 41*385cc6b4SJerry Jelinek * POSSIBILITY OF SUCH DAMAGES. 42*385cc6b4SJerry Jelinek */ 43*385cc6b4SJerry Jelinek 44*385cc6b4SJerry Jelinek #include "acpi.h" 45*385cc6b4SJerry Jelinek #include "accommon.h" 46*385cc6b4SJerry Jelinek #include "acresrc.h" 47*385cc6b4SJerry Jelinek 48*385cc6b4SJerry Jelinek #define _COMPONENT ACPI_RESOURCES 49*385cc6b4SJerry Jelinek ACPI_MODULE_NAME ("rsdumpinfo") 50*385cc6b4SJerry Jelinek 51*385cc6b4SJerry Jelinek 52*385cc6b4SJerry Jelinek #if defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DISASSEMBLER) || defined(ACPI_DEBUGGER) 53*385cc6b4SJerry Jelinek 54*385cc6b4SJerry Jelinek 55*385cc6b4SJerry Jelinek #define ACPI_RSD_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_RESOURCE_DATA,f) 56*385cc6b4SJerry Jelinek #define ACPI_PRT_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_PCI_ROUTING_TABLE,f) 57*385cc6b4SJerry Jelinek #define ACPI_RSD_TABLE_SIZE(name) (sizeof(name) / sizeof (ACPI_RSDUMP_INFO)) 58*385cc6b4SJerry Jelinek 59*385cc6b4SJerry Jelinek 60*385cc6b4SJerry Jelinek /******************************************************************************* 61*385cc6b4SJerry Jelinek * 62*385cc6b4SJerry Jelinek * Resource Descriptor info tables 63*385cc6b4SJerry Jelinek * 64*385cc6b4SJerry Jelinek * Note: The first table entry must be a Title or Literal and must contain 65*385cc6b4SJerry Jelinek * the table length (number of table entries) 66*385cc6b4SJerry Jelinek * 67*385cc6b4SJerry Jelinek ******************************************************************************/ 68*385cc6b4SJerry Jelinek 69*385cc6b4SJerry Jelinek ACPI_RSDUMP_INFO AcpiRsDumpIrq[7] = 70*385cc6b4SJerry Jelinek { 71*385cc6b4SJerry Jelinek {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpIrq), "IRQ", NULL}, 72*385cc6b4SJerry Jelinek {ACPI_RSD_UINT8 , ACPI_RSD_OFFSET (Irq.DescriptorLength), "Descriptor Length", NULL}, 73*385cc6b4SJerry Jelinek {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Irq.Triggering), "Triggering", AcpiGbl_HeDecode}, 74*385cc6b4SJerry Jelinek {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Irq.Polarity), "Polarity", AcpiGbl_LlDecode}, 75*385cc6b4SJerry Jelinek {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET (Irq.Sharable), "Sharing", AcpiGbl_ShrDecode}, 76*385cc6b4SJerry Jelinek {ACPI_RSD_UINT8 , ACPI_RSD_OFFSET (Irq.InterruptCount), "Interrupt Count", NULL}, 77*385cc6b4SJerry Jelinek {ACPI_RSD_SHORTLIST,ACPI_RSD_OFFSET (Irq.Interrupts[0]), "Interrupt List", NULL} 78*385cc6b4SJerry Jelinek }; 79*385cc6b4SJerry Jelinek 80*385cc6b4SJerry Jelinek ACPI_RSDUMP_INFO AcpiRsDumpDma[6] = 81*385cc6b4SJerry Jelinek { 82*385cc6b4SJerry Jelinek {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpDma), "DMA", NULL}, 83*385cc6b4SJerry Jelinek {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET (Dma.Type), "Speed", AcpiGbl_TypDecode}, 84*385cc6b4SJerry Jelinek {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Dma.BusMaster), "Mastering", AcpiGbl_BmDecode}, 85*385cc6b4SJerry Jelinek {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET (Dma.Transfer), "Transfer Type", AcpiGbl_SizDecode}, 86*385cc6b4SJerry Jelinek {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (Dma.ChannelCount), "Channel Count", NULL}, 87*385cc6b4SJerry Jelinek {ACPI_RSD_SHORTLIST,ACPI_RSD_OFFSET (Dma.Channels[0]), "Channel List", NULL} 88*385cc6b4SJerry Jelinek }; 89*385cc6b4SJerry Jelinek 90*385cc6b4SJerry Jelinek ACPI_RSDUMP_INFO AcpiRsDumpStartDpf[4] = 91*385cc6b4SJerry Jelinek { 92*385cc6b4SJerry Jelinek {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpStartDpf), "Start-Dependent-Functions",NULL}, 93*385cc6b4SJerry Jelinek {ACPI_RSD_UINT8 , ACPI_RSD_OFFSET (StartDpf.DescriptorLength), "Descriptor Length", NULL}, 94*385cc6b4SJerry Jelinek {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET (StartDpf.CompatibilityPriority), "Compatibility Priority", AcpiGbl_ConfigDecode}, 95*385cc6b4SJerry Jelinek {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET (StartDpf.PerformanceRobustness), "Performance/Robustness", AcpiGbl_ConfigDecode} 96*385cc6b4SJerry Jelinek }; 97*385cc6b4SJerry Jelinek 98*385cc6b4SJerry Jelinek ACPI_RSDUMP_INFO AcpiRsDumpEndDpf[1] = 99*385cc6b4SJerry Jelinek { 100*385cc6b4SJerry Jelinek {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpEndDpf), "End-Dependent-Functions", NULL} 101*385cc6b4SJerry Jelinek }; 102*385cc6b4SJerry Jelinek 103*385cc6b4SJerry Jelinek ACPI_RSDUMP_INFO AcpiRsDumpIo[6] = 104*385cc6b4SJerry Jelinek { 105*385cc6b4SJerry Jelinek {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpIo), "I/O", NULL}, 106*385cc6b4SJerry Jelinek {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Io.IoDecode), "Address Decoding", AcpiGbl_IoDecode}, 107*385cc6b4SJerry Jelinek {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (Io.Minimum), "Address Minimum", NULL}, 108*385cc6b4SJerry Jelinek {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (Io.Maximum), "Address Maximum", NULL}, 109*385cc6b4SJerry Jelinek {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (Io.Alignment), "Alignment", NULL}, 110*385cc6b4SJerry Jelinek {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (Io.AddressLength), "Address Length", NULL} 111*385cc6b4SJerry Jelinek }; 112*385cc6b4SJerry Jelinek 113*385cc6b4SJerry Jelinek ACPI_RSDUMP_INFO AcpiRsDumpFixedIo[3] = 114*385cc6b4SJerry Jelinek { 115*385cc6b4SJerry Jelinek {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpFixedIo), "Fixed I/O", NULL}, 116*385cc6b4SJerry Jelinek {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (FixedIo.Address), "Address", NULL}, 117*385cc6b4SJerry Jelinek {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (FixedIo.AddressLength), "Address Length", NULL} 118*385cc6b4SJerry Jelinek }; 119*385cc6b4SJerry Jelinek 120*385cc6b4SJerry Jelinek ACPI_RSDUMP_INFO AcpiRsDumpVendor[3] = 121*385cc6b4SJerry Jelinek { 122*385cc6b4SJerry Jelinek {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpVendor), "Vendor Specific", NULL}, 123*385cc6b4SJerry Jelinek {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (Vendor.ByteLength), "Length", NULL}, 124*385cc6b4SJerry Jelinek {ACPI_RSD_LONGLIST, ACPI_RSD_OFFSET (Vendor.ByteData[0]), "Vendor Data", NULL} 125*385cc6b4SJerry Jelinek }; 126*385cc6b4SJerry Jelinek 127*385cc6b4SJerry Jelinek ACPI_RSDUMP_INFO AcpiRsDumpEndTag[1] = 128*385cc6b4SJerry Jelinek { 129*385cc6b4SJerry Jelinek {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpEndTag), "EndTag", NULL} 130*385cc6b4SJerry Jelinek }; 131*385cc6b4SJerry Jelinek 132*385cc6b4SJerry Jelinek ACPI_RSDUMP_INFO AcpiRsDumpMemory24[6] = 133*385cc6b4SJerry Jelinek { 134*385cc6b4SJerry Jelinek {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpMemory24), "24-Bit Memory Range", NULL}, 135*385cc6b4SJerry Jelinek {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Memory24.WriteProtect), "Write Protect", AcpiGbl_RwDecode}, 136*385cc6b4SJerry Jelinek {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (Memory24.Minimum), "Address Minimum", NULL}, 137*385cc6b4SJerry Jelinek {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (Memory24.Maximum), "Address Maximum", NULL}, 138*385cc6b4SJerry Jelinek {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (Memory24.Alignment), "Alignment", NULL}, 139*385cc6b4SJerry Jelinek {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (Memory24.AddressLength), "Address Length", NULL} 140*385cc6b4SJerry Jelinek }; 141*385cc6b4SJerry Jelinek 142*385cc6b4SJerry Jelinek ACPI_RSDUMP_INFO AcpiRsDumpMemory32[6] = 143*385cc6b4SJerry Jelinek { 144*385cc6b4SJerry Jelinek {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpMemory32), "32-Bit Memory Range", NULL}, 145*385cc6b4SJerry Jelinek {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Memory32.WriteProtect), "Write Protect", AcpiGbl_RwDecode}, 146*385cc6b4SJerry Jelinek {ACPI_RSD_UINT32, ACPI_RSD_OFFSET (Memory32.Minimum), "Address Minimum", NULL}, 147*385cc6b4SJerry Jelinek {ACPI_RSD_UINT32, ACPI_RSD_OFFSET (Memory32.Maximum), "Address Maximum", NULL}, 148*385cc6b4SJerry Jelinek {ACPI_RSD_UINT32, ACPI_RSD_OFFSET (Memory32.Alignment), "Alignment", NULL}, 149*385cc6b4SJerry Jelinek {ACPI_RSD_UINT32, ACPI_RSD_OFFSET (Memory32.AddressLength), "Address Length", NULL} 150*385cc6b4SJerry Jelinek }; 151*385cc6b4SJerry Jelinek 152*385cc6b4SJerry Jelinek ACPI_RSDUMP_INFO AcpiRsDumpFixedMemory32[4] = 153*385cc6b4SJerry Jelinek { 154*385cc6b4SJerry Jelinek {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpFixedMemory32), "32-Bit Fixed Memory Range",NULL}, 155*385cc6b4SJerry Jelinek {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (FixedMemory32.WriteProtect), "Write Protect", AcpiGbl_RwDecode}, 156*385cc6b4SJerry Jelinek {ACPI_RSD_UINT32, ACPI_RSD_OFFSET (FixedMemory32.Address), "Address", NULL}, 157*385cc6b4SJerry Jelinek {ACPI_RSD_UINT32, ACPI_RSD_OFFSET (FixedMemory32.AddressLength), "Address Length", NULL} 158*385cc6b4SJerry Jelinek }; 159*385cc6b4SJerry Jelinek 160*385cc6b4SJerry Jelinek ACPI_RSDUMP_INFO AcpiRsDumpAddress16[8] = 161*385cc6b4SJerry Jelinek { 162*385cc6b4SJerry Jelinek {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpAddress16), "16-Bit WORD Address Space",NULL}, 163*385cc6b4SJerry Jelinek {ACPI_RSD_ADDRESS, 0, NULL, NULL}, 164*385cc6b4SJerry Jelinek {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (Address16.Address.Granularity), "Granularity", NULL}, 165*385cc6b4SJerry Jelinek {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (Address16.Address.Minimum), "Address Minimum", NULL}, 166*385cc6b4SJerry Jelinek {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (Address16.Address.Maximum), "Address Maximum", NULL}, 167*385cc6b4SJerry Jelinek {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (Address16.Address.TranslationOffset), 168*385cc6b4SJerry Jelinek "Translation Offset", NULL}, 169*385cc6b4SJerry Jelinek {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (Address16.Address.AddressLength), "Address Length", NULL}, 170*385cc6b4SJerry Jelinek {ACPI_RSD_SOURCE, ACPI_RSD_OFFSET (Address16.ResourceSource), NULL, NULL} 171*385cc6b4SJerry Jelinek }; 172*385cc6b4SJerry Jelinek 173*385cc6b4SJerry Jelinek ACPI_RSDUMP_INFO AcpiRsDumpAddress32[8] = 174*385cc6b4SJerry Jelinek { 175*385cc6b4SJerry Jelinek {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpAddress32), "32-Bit DWORD Address Space", NULL}, 176*385cc6b4SJerry Jelinek {ACPI_RSD_ADDRESS, 0, NULL, NULL}, 177*385cc6b4SJerry Jelinek {ACPI_RSD_UINT32, ACPI_RSD_OFFSET (Address32.Address.Granularity), "Granularity", NULL}, 178*385cc6b4SJerry Jelinek {ACPI_RSD_UINT32, ACPI_RSD_OFFSET (Address32.Address.Minimum), "Address Minimum", NULL}, 179*385cc6b4SJerry Jelinek {ACPI_RSD_UINT32, ACPI_RSD_OFFSET (Address32.Address.Maximum), "Address Maximum", NULL}, 180*385cc6b4SJerry Jelinek {ACPI_RSD_UINT32, ACPI_RSD_OFFSET (Address32.Address.TranslationOffset), 181*385cc6b4SJerry Jelinek "Translation Offset", NULL}, 182*385cc6b4SJerry Jelinek {ACPI_RSD_UINT32, ACPI_RSD_OFFSET (Address32.Address.AddressLength), "Address Length", NULL}, 183*385cc6b4SJerry Jelinek {ACPI_RSD_SOURCE, ACPI_RSD_OFFSET (Address32.ResourceSource), NULL, NULL} 184*385cc6b4SJerry Jelinek }; 185*385cc6b4SJerry Jelinek 186*385cc6b4SJerry Jelinek ACPI_RSDUMP_INFO AcpiRsDumpAddress64[8] = 187*385cc6b4SJerry Jelinek { 188*385cc6b4SJerry Jelinek {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpAddress64), "64-Bit QWORD Address Space", NULL}, 189*385cc6b4SJerry Jelinek {ACPI_RSD_ADDRESS, 0, NULL, NULL}, 190*385cc6b4SJerry Jelinek {ACPI_RSD_UINT64, ACPI_RSD_OFFSET (Address64.Address.Granularity), "Granularity", NULL}, 191*385cc6b4SJerry Jelinek {ACPI_RSD_UINT64, ACPI_RSD_OFFSET (Address64.Address.Minimum), "Address Minimum", NULL}, 192*385cc6b4SJerry Jelinek {ACPI_RSD_UINT64, ACPI_RSD_OFFSET (Address64.Address.Maximum), "Address Maximum", NULL}, 193*385cc6b4SJerry Jelinek {ACPI_RSD_UINT64, ACPI_RSD_OFFSET (Address64.Address.TranslationOffset), 194*385cc6b4SJerry Jelinek "Translation Offset", NULL}, 195*385cc6b4SJerry Jelinek {ACPI_RSD_UINT64, ACPI_RSD_OFFSET (Address64.Address.AddressLength), "Address Length", NULL}, 196*385cc6b4SJerry Jelinek {ACPI_RSD_SOURCE, ACPI_RSD_OFFSET (Address64.ResourceSource), NULL, NULL} 197*385cc6b4SJerry Jelinek }; 198*385cc6b4SJerry Jelinek 199*385cc6b4SJerry Jelinek ACPI_RSDUMP_INFO AcpiRsDumpExtAddress64[8] = 200*385cc6b4SJerry Jelinek { 201*385cc6b4SJerry Jelinek {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpExtAddress64), "64-Bit Extended Address Space", NULL}, 202*385cc6b4SJerry Jelinek {ACPI_RSD_ADDRESS, 0, NULL, NULL}, 203*385cc6b4SJerry Jelinek {ACPI_RSD_UINT64, ACPI_RSD_OFFSET (ExtAddress64.Address.Granularity), "Granularity", NULL}, 204*385cc6b4SJerry Jelinek {ACPI_RSD_UINT64, ACPI_RSD_OFFSET (ExtAddress64.Address.Minimum), "Address Minimum", NULL}, 205*385cc6b4SJerry Jelinek {ACPI_RSD_UINT64, ACPI_RSD_OFFSET (ExtAddress64.Address.Maximum), "Address Maximum", NULL}, 206*385cc6b4SJerry Jelinek {ACPI_RSD_UINT64, ACPI_RSD_OFFSET (ExtAddress64.Address.TranslationOffset), 207*385cc6b4SJerry Jelinek "Translation Offset", NULL}, 208*385cc6b4SJerry Jelinek {ACPI_RSD_UINT64, ACPI_RSD_OFFSET (ExtAddress64.Address.AddressLength), 209*385cc6b4SJerry Jelinek "Address Length", NULL}, 210*385cc6b4SJerry Jelinek {ACPI_RSD_UINT64, ACPI_RSD_OFFSET (ExtAddress64.TypeSpecific), "Type-Specific Attribute", NULL} 211*385cc6b4SJerry Jelinek }; 212*385cc6b4SJerry Jelinek 213*385cc6b4SJerry Jelinek ACPI_RSDUMP_INFO AcpiRsDumpExtIrq[8] = 214*385cc6b4SJerry Jelinek { 215*385cc6b4SJerry Jelinek {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpExtIrq), "Extended IRQ", NULL}, 216*385cc6b4SJerry Jelinek {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (ExtendedIrq.ProducerConsumer), "Type", AcpiGbl_ConsumeDecode}, 217*385cc6b4SJerry Jelinek {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (ExtendedIrq.Triggering), "Triggering", AcpiGbl_HeDecode}, 218*385cc6b4SJerry Jelinek {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (ExtendedIrq.Polarity), "Polarity", AcpiGbl_LlDecode}, 219*385cc6b4SJerry Jelinek {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET (ExtendedIrq.Sharable), "Sharing", AcpiGbl_ShrDecode}, 220*385cc6b4SJerry Jelinek {ACPI_RSD_SOURCE, ACPI_RSD_OFFSET (ExtendedIrq.ResourceSource), NULL, NULL}, 221*385cc6b4SJerry Jelinek {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (ExtendedIrq.InterruptCount), "Interrupt Count", NULL}, 222*385cc6b4SJerry Jelinek {ACPI_RSD_DWORDLIST,ACPI_RSD_OFFSET (ExtendedIrq.Interrupts[0]), "Interrupt List", NULL} 223*385cc6b4SJerry Jelinek }; 224*385cc6b4SJerry Jelinek 225*385cc6b4SJerry Jelinek ACPI_RSDUMP_INFO AcpiRsDumpGenericReg[6] = 226*385cc6b4SJerry Jelinek { 227*385cc6b4SJerry Jelinek {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpGenericReg), "Generic Register", NULL}, 228*385cc6b4SJerry Jelinek {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (GenericReg.SpaceId), "Space ID", NULL}, 229*385cc6b4SJerry Jelinek {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (GenericReg.BitWidth), "Bit Width", NULL}, 230*385cc6b4SJerry Jelinek {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (GenericReg.BitOffset), "Bit Offset", NULL}, 231*385cc6b4SJerry Jelinek {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (GenericReg.AccessSize), "Access Size", NULL}, 232*385cc6b4SJerry Jelinek {ACPI_RSD_UINT64, ACPI_RSD_OFFSET (GenericReg.Address), "Address", NULL} 233*385cc6b4SJerry Jelinek }; 234*385cc6b4SJerry Jelinek 235*385cc6b4SJerry Jelinek ACPI_RSDUMP_INFO AcpiRsDumpGpio[16] = 236*385cc6b4SJerry Jelinek { 237*385cc6b4SJerry Jelinek {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpGpio), "GPIO", NULL}, 238*385cc6b4SJerry Jelinek {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (Gpio.RevisionId), "RevisionId", NULL}, 239*385cc6b4SJerry Jelinek {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (Gpio.ConnectionType), "ConnectionType", AcpiGbl_CtDecode}, 240*385cc6b4SJerry Jelinek {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Gpio.ProducerConsumer), "ProducerConsumer", AcpiGbl_ConsumeDecode}, 241*385cc6b4SJerry Jelinek {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (Gpio.PinConfig), "PinConfig", AcpiGbl_PpcDecode}, 242*385cc6b4SJerry Jelinek {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET (Gpio.Sharable), "Sharing", AcpiGbl_ShrDecode}, 243*385cc6b4SJerry Jelinek {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET (Gpio.IoRestriction), "IoRestriction", AcpiGbl_IorDecode}, 244*385cc6b4SJerry Jelinek {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Gpio.Triggering), "Triggering", AcpiGbl_HeDecode}, 245*385cc6b4SJerry Jelinek {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET (Gpio.Polarity), "Polarity", AcpiGbl_LlDecode}, 246*385cc6b4SJerry Jelinek {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (Gpio.DriveStrength), "DriveStrength", NULL}, 247*385cc6b4SJerry Jelinek {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (Gpio.DebounceTimeout), "DebounceTimeout", NULL}, 248*385cc6b4SJerry Jelinek {ACPI_RSD_SOURCE, ACPI_RSD_OFFSET (Gpio.ResourceSource), "ResourceSource", NULL}, 249*385cc6b4SJerry Jelinek {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (Gpio.PinTableLength), "PinTableLength", NULL}, 250*385cc6b4SJerry Jelinek {ACPI_RSD_WORDLIST, ACPI_RSD_OFFSET (Gpio.PinTable), "PinTable", NULL}, 251*385cc6b4SJerry Jelinek {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (Gpio.VendorLength), "VendorLength", NULL}, 252*385cc6b4SJerry Jelinek {ACPI_RSD_SHORTLISTX,ACPI_RSD_OFFSET (Gpio.VendorData), "VendorData", NULL}, 253*385cc6b4SJerry Jelinek }; 254*385cc6b4SJerry Jelinek 255*385cc6b4SJerry Jelinek ACPI_RSDUMP_INFO AcpiRsDumpFixedDma[4] = 256*385cc6b4SJerry Jelinek { 257*385cc6b4SJerry Jelinek {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpFixedDma), "FixedDma", NULL}, 258*385cc6b4SJerry Jelinek {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (FixedDma.RequestLines), "RequestLines", NULL}, 259*385cc6b4SJerry Jelinek {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (FixedDma.Channels), "Channels", NULL}, 260*385cc6b4SJerry Jelinek {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (FixedDma.Width), "TransferWidth", AcpiGbl_DtsDecode}, 261*385cc6b4SJerry Jelinek }; 262*385cc6b4SJerry Jelinek 263*385cc6b4SJerry Jelinek #define ACPI_RS_DUMP_COMMON_SERIAL_BUS \ 264*385cc6b4SJerry Jelinek {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (CommonSerialBus.RevisionId), "RevisionId", NULL}, \ 265*385cc6b4SJerry Jelinek {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (CommonSerialBus.Type), "Type", AcpiGbl_SbtDecode}, \ 266*385cc6b4SJerry Jelinek {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (CommonSerialBus.ProducerConsumer), "ProducerConsumer", AcpiGbl_ConsumeDecode}, \ 267*385cc6b4SJerry Jelinek {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (CommonSerialBus.SlaveMode), "SlaveMode", AcpiGbl_SmDecode}, \ 268*385cc6b4SJerry Jelinek {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (CommonSerialBus.ConnectionSharing),"ConnectionSharing", AcpiGbl_ShrDecode}, \ 269*385cc6b4SJerry Jelinek {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (CommonSerialBus.TypeRevisionId), "TypeRevisionId", NULL}, \ 270*385cc6b4SJerry Jelinek {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (CommonSerialBus.TypeDataLength), "TypeDataLength", NULL}, \ 271*385cc6b4SJerry Jelinek {ACPI_RSD_SOURCE, ACPI_RSD_OFFSET (CommonSerialBus.ResourceSource), "ResourceSource", NULL}, \ 272*385cc6b4SJerry Jelinek {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (CommonSerialBus.VendorLength), "VendorLength", NULL}, \ 273*385cc6b4SJerry Jelinek {ACPI_RSD_SHORTLISTX,ACPI_RSD_OFFSET (CommonSerialBus.VendorData), "VendorData", NULL}, 274*385cc6b4SJerry Jelinek 275*385cc6b4SJerry Jelinek ACPI_RSDUMP_INFO AcpiRsDumpCommonSerialBus[11] = 276*385cc6b4SJerry Jelinek { 277*385cc6b4SJerry Jelinek {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpCommonSerialBus), "Common Serial Bus", NULL}, 278*385cc6b4SJerry Jelinek ACPI_RS_DUMP_COMMON_SERIAL_BUS 279*385cc6b4SJerry Jelinek }; 280*385cc6b4SJerry Jelinek 281*385cc6b4SJerry Jelinek ACPI_RSDUMP_INFO AcpiRsDumpI2cSerialBus[14] = 282*385cc6b4SJerry Jelinek { 283*385cc6b4SJerry Jelinek {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpI2cSerialBus), "I2C Serial Bus", NULL}, 284*385cc6b4SJerry Jelinek ACPI_RS_DUMP_COMMON_SERIAL_BUS 285*385cc6b4SJerry Jelinek {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (I2cSerialBus.AccessMode), "AccessMode", AcpiGbl_AmDecode}, 286*385cc6b4SJerry Jelinek {ACPI_RSD_UINT32, ACPI_RSD_OFFSET (I2cSerialBus.ConnectionSpeed), "ConnectionSpeed", NULL}, 287*385cc6b4SJerry Jelinek {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (I2cSerialBus.SlaveAddress), "SlaveAddress", NULL}, 288*385cc6b4SJerry Jelinek }; 289*385cc6b4SJerry Jelinek 290*385cc6b4SJerry Jelinek ACPI_RSDUMP_INFO AcpiRsDumpSpiSerialBus[18] = 291*385cc6b4SJerry Jelinek { 292*385cc6b4SJerry Jelinek {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpSpiSerialBus), "Spi Serial Bus", NULL}, 293*385cc6b4SJerry Jelinek ACPI_RS_DUMP_COMMON_SERIAL_BUS 294*385cc6b4SJerry Jelinek {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (SpiSerialBus.WireMode), "WireMode", AcpiGbl_WmDecode}, 295*385cc6b4SJerry Jelinek {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (SpiSerialBus.DevicePolarity), "DevicePolarity", AcpiGbl_DpDecode}, 296*385cc6b4SJerry Jelinek {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (SpiSerialBus.DataBitLength), "DataBitLength", NULL}, 297*385cc6b4SJerry Jelinek {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (SpiSerialBus.ClockPhase), "ClockPhase", AcpiGbl_CphDecode}, 298*385cc6b4SJerry Jelinek {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (SpiSerialBus.ClockPolarity), "ClockPolarity", AcpiGbl_CpoDecode}, 299*385cc6b4SJerry Jelinek {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (SpiSerialBus.DeviceSelection), "DeviceSelection", NULL}, 300*385cc6b4SJerry Jelinek {ACPI_RSD_UINT32, ACPI_RSD_OFFSET (SpiSerialBus.ConnectionSpeed), "ConnectionSpeed", NULL}, 301*385cc6b4SJerry Jelinek }; 302*385cc6b4SJerry Jelinek 303*385cc6b4SJerry Jelinek ACPI_RSDUMP_INFO AcpiRsDumpUartSerialBus[20] = 304*385cc6b4SJerry Jelinek { 305*385cc6b4SJerry Jelinek {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpUartSerialBus), "Uart Serial Bus", NULL}, 306*385cc6b4SJerry Jelinek ACPI_RS_DUMP_COMMON_SERIAL_BUS 307*385cc6b4SJerry Jelinek {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET (UartSerialBus.FlowControl), "FlowControl", AcpiGbl_FcDecode}, 308*385cc6b4SJerry Jelinek {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET (UartSerialBus.StopBits), "StopBits", AcpiGbl_SbDecode}, 309*385cc6b4SJerry Jelinek {ACPI_RSD_3BITFLAG, ACPI_RSD_OFFSET (UartSerialBus.DataBits), "DataBits", AcpiGbl_BpbDecode}, 310*385cc6b4SJerry Jelinek {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (UartSerialBus.Endian), "Endian", AcpiGbl_EdDecode}, 311*385cc6b4SJerry Jelinek {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (UartSerialBus.Parity), "Parity", AcpiGbl_PtDecode}, 312*385cc6b4SJerry Jelinek {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (UartSerialBus.LinesEnabled), "LinesEnabled", NULL}, 313*385cc6b4SJerry Jelinek {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (UartSerialBus.RxFifoSize), "RxFifoSize", NULL}, 314*385cc6b4SJerry Jelinek {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (UartSerialBus.TxFifoSize), "TxFifoSize", NULL}, 315*385cc6b4SJerry Jelinek {ACPI_RSD_UINT32, ACPI_RSD_OFFSET (UartSerialBus.DefaultBaudRate), "ConnectionSpeed", NULL}, 316*385cc6b4SJerry Jelinek }; 317*385cc6b4SJerry Jelinek 318*385cc6b4SJerry Jelinek /* 319*385cc6b4SJerry Jelinek * Tables used for common address descriptor flag fields 320*385cc6b4SJerry Jelinek */ 321*385cc6b4SJerry Jelinek ACPI_RSDUMP_INFO AcpiRsDumpGeneralFlags[5] = 322*385cc6b4SJerry Jelinek { 323*385cc6b4SJerry Jelinek {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpGeneralFlags), NULL, NULL}, 324*385cc6b4SJerry Jelinek {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Address.ProducerConsumer), "Consumer/Producer", AcpiGbl_ConsumeDecode}, 325*385cc6b4SJerry Jelinek {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Address.Decode), "Address Decode", AcpiGbl_DecDecode}, 326*385cc6b4SJerry Jelinek {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Address.MinAddressFixed), "Min Relocatability", AcpiGbl_MinDecode}, 327*385cc6b4SJerry Jelinek {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Address.MaxAddressFixed), "Max Relocatability", AcpiGbl_MaxDecode} 328*385cc6b4SJerry Jelinek }; 329*385cc6b4SJerry Jelinek 330*385cc6b4SJerry Jelinek ACPI_RSDUMP_INFO AcpiRsDumpMemoryFlags[5] = 331*385cc6b4SJerry Jelinek { 332*385cc6b4SJerry Jelinek {ACPI_RSD_LITERAL, ACPI_RSD_TABLE_SIZE (AcpiRsDumpMemoryFlags), "Resource Type", (void *) "Memory Range"}, 333*385cc6b4SJerry Jelinek {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Address.Info.Mem.WriteProtect), "Write Protect", AcpiGbl_RwDecode}, 334*385cc6b4SJerry Jelinek {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET (Address.Info.Mem.Caching), "Caching", AcpiGbl_MemDecode}, 335*385cc6b4SJerry Jelinek {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET (Address.Info.Mem.RangeType), "Range Type", AcpiGbl_MtpDecode}, 336*385cc6b4SJerry Jelinek {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Address.Info.Mem.Translation), "Translation", AcpiGbl_TtpDecode} 337*385cc6b4SJerry Jelinek }; 338*385cc6b4SJerry Jelinek 339*385cc6b4SJerry Jelinek ACPI_RSDUMP_INFO AcpiRsDumpIoFlags[4] = 340*385cc6b4SJerry Jelinek { 341*385cc6b4SJerry Jelinek {ACPI_RSD_LITERAL, ACPI_RSD_TABLE_SIZE (AcpiRsDumpIoFlags), "Resource Type", (void *) "I/O Range"}, 342*385cc6b4SJerry Jelinek {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET (Address.Info.Io.RangeType), "Range Type", AcpiGbl_RngDecode}, 343*385cc6b4SJerry Jelinek {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Address.Info.Io.Translation), "Translation", AcpiGbl_TtpDecode}, 344*385cc6b4SJerry Jelinek {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Address.Info.Io.TranslationType), "Translation Type", AcpiGbl_TrsDecode} 345*385cc6b4SJerry Jelinek }; 346*385cc6b4SJerry Jelinek 347*385cc6b4SJerry Jelinek 348*385cc6b4SJerry Jelinek /* 349*385cc6b4SJerry Jelinek * Table used to dump _PRT contents 350*385cc6b4SJerry Jelinek */ 351*385cc6b4SJerry Jelinek ACPI_RSDUMP_INFO AcpiRsDumpPrt[5] = 352*385cc6b4SJerry Jelinek { 353*385cc6b4SJerry Jelinek {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpPrt), NULL, NULL}, 354*385cc6b4SJerry Jelinek {ACPI_RSD_UINT64, ACPI_PRT_OFFSET (Address), "Address", NULL}, 355*385cc6b4SJerry Jelinek {ACPI_RSD_UINT32, ACPI_PRT_OFFSET (Pin), "Pin", NULL}, 356*385cc6b4SJerry Jelinek {ACPI_RSD_STRING, ACPI_PRT_OFFSET (Source[0]), "Source", NULL}, 357*385cc6b4SJerry Jelinek {ACPI_RSD_UINT32, ACPI_PRT_OFFSET (SourceIndex), "Source Index", NULL} 358*385cc6b4SJerry Jelinek }; 359*385cc6b4SJerry Jelinek 360*385cc6b4SJerry Jelinek #endif 361