ahtable.c revision 283090
1283090Sjkim/****************************************************************************** 2283090Sjkim * 3283090Sjkim * Module Name: ahtable - Table of known ACPI tables with descriptions 4283090Sjkim * 5283090Sjkim *****************************************************************************/ 6283090Sjkim 7283090Sjkim/* 8283090Sjkim * Copyright (C) 2000 - 2015, Intel Corp. 9283090Sjkim * All rights reserved. 10283090Sjkim * 11283090Sjkim * Redistribution and use in source and binary forms, with or without 12283090Sjkim * modification, are permitted provided that the following conditions 13283090Sjkim * are met: 14283090Sjkim * 1. Redistributions of source code must retain the above copyright 15283090Sjkim * notice, this list of conditions, and the following disclaimer, 16283090Sjkim * without modification. 17283090Sjkim * 2. Redistributions in binary form must reproduce at minimum a disclaimer 18283090Sjkim * substantially similar to the "NO WARRANTY" disclaimer below 19283090Sjkim * ("Disclaimer") and any redistribution must be conditioned upon 20283090Sjkim * including a substantially similar Disclaimer requirement for further 21283090Sjkim * binary redistribution. 22283090Sjkim * 3. Neither the names of the above-listed copyright holders nor the names 23283090Sjkim * of any contributors may be used to endorse or promote products derived 24283090Sjkim * from this software without specific prior written permission. 25283090Sjkim * 26283090Sjkim * Alternatively, this software may be distributed under the terms of the 27283090Sjkim * GNU General Public License ("GPL") version 2 as published by the Free 28283090Sjkim * Software Foundation. 29283090Sjkim * 30283090Sjkim * NO WARRANTY 31283090Sjkim * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 32283090Sjkim * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 33283090Sjkim * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR 34283090Sjkim * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 35283090Sjkim * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 36283090Sjkim * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 37283090Sjkim * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 38283090Sjkim * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 39283090Sjkim * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 40283090Sjkim * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 41283090Sjkim * POSSIBILITY OF SUCH DAMAGES. 42283090Sjkim */ 43283090Sjkim 44283090Sjkim#include "acpi.h" 45283090Sjkim#include "accommon.h" 46283090Sjkim 47283090Sjkim 48283090Sjkim/* Local prototypes */ 49283090Sjkim 50283090Sjkimconst AH_TABLE * 51283090SjkimAcpiAhGetTableInfo ( 52283090Sjkim char *Signature); 53283090Sjkim 54283090Sjkimextern const AH_TABLE AcpiSupportedTables[]; 55283090Sjkim 56283090Sjkim 57283090Sjkim/******************************************************************************* 58283090Sjkim * 59283090Sjkim * FUNCTION: AcpiAhGetTableInfo 60283090Sjkim * 61283090Sjkim * PARAMETERS: Signature - ACPI signature (4 chars) to match 62283090Sjkim * 63283090Sjkim * RETURN: Pointer to a valid AH_TABLE. Null if no match found. 64283090Sjkim * 65283090Sjkim * DESCRIPTION: Find a match in the "help" table of supported ACPI tables 66283090Sjkim * 67283090Sjkim ******************************************************************************/ 68283090Sjkim 69283090Sjkimconst AH_TABLE * 70283090SjkimAcpiAhGetTableInfo ( 71283090Sjkim char *Signature) 72283090Sjkim{ 73283090Sjkim const AH_TABLE *Info; 74283090Sjkim 75283090Sjkim 76283090Sjkim for (Info = AcpiSupportedTables; Info->Signature; Info++) 77283090Sjkim { 78283090Sjkim if (ACPI_COMPARE_NAME (Signature, Info->Signature)) 79283090Sjkim { 80283090Sjkim return (Info); 81283090Sjkim } 82283090Sjkim } 83283090Sjkim 84283090Sjkim return (NULL); 85283090Sjkim} 86283090Sjkim 87283090Sjkim 88283090Sjkim/* 89283090Sjkim * Note: Any tables added here should be duplicated within AcpiDmTableData 90283090Sjkim * in the file common/dmtable.c 91283090Sjkim */ 92283090Sjkimconst AH_TABLE AcpiSupportedTables[] = 93283090Sjkim{ 94283090Sjkim {ACPI_SIG_ASF, "Alert Standard Format table"}, 95283090Sjkim {ACPI_SIG_BERT, "Boot Error Record Table"}, 96283090Sjkim {ACPI_SIG_BGRT, "Boot Graphics Resource Table"}, 97283090Sjkim {ACPI_SIG_BOOT, "Simple Boot Flag Table"}, 98283090Sjkim {ACPI_SIG_CPEP, "Corrected Platform Error Polling table"}, 99283090Sjkim {ACPI_SIG_CSRT, "Core System Resource Table"}, 100283090Sjkim {ACPI_SIG_DBG2, "Debug Port table type 2"}, 101283090Sjkim {ACPI_SIG_DBGP, "Debug Port table"}, 102283090Sjkim {ACPI_SIG_DMAR, "DMA Remapping table"}, 103283090Sjkim {ACPI_SIG_DRTM, "Dynamic Root of Trust for Measurement table"}, 104283090Sjkim {ACPI_SIG_DSDT, "Differentiated System Description Table (AML table)"}, 105283090Sjkim {ACPI_SIG_ECDT, "Embedded Controller Boot Resources Table"}, 106283090Sjkim {ACPI_SIG_EINJ, "Error Injection table"}, 107283090Sjkim {ACPI_SIG_ERST, "Error Record Serialization Table"}, 108283090Sjkim {ACPI_SIG_FACS, "Firmware ACPI Control Structure"}, 109283090Sjkim {ACPI_SIG_FADT, "Fixed ACPI Description Table (FADT)"}, 110283090Sjkim {ACPI_SIG_FPDT, "Firmware Performance Data Table"}, 111283090Sjkim {ACPI_SIG_GTDT, "Generic Timer Description Table"}, 112283090Sjkim {ACPI_SIG_HEST, "Hardware Error Source Table"}, 113283090Sjkim {ACPI_SIG_HPET, "High Precision Event Timer table"}, 114283090Sjkim {ACPI_SIG_IORT, "IO Remapping Table"}, 115283090Sjkim {ACPI_SIG_IVRS, "I/O Virtualization Reporting Structure"}, 116283090Sjkim {ACPI_SIG_LPIT, "Low Power Idle Table"}, 117283090Sjkim {ACPI_SIG_MADT, "Multiple APIC Description Table (MADT)"}, 118283090Sjkim {ACPI_SIG_MCFG, "Memory Mapped Configuration table"}, 119283090Sjkim {ACPI_SIG_MCHI, "Management Controller Host Interface table"}, 120283090Sjkim {ACPI_SIG_MPST, "Memory Power State Table"}, 121283090Sjkim {ACPI_SIG_MSCT, "Maximum System Characteristics Table"}, 122283090Sjkim {ACPI_SIG_MSDM, "Microsoft Data Management table"}, 123283090Sjkim {ACPI_SIG_MTMR, "MID Timer Table"}, 124283090Sjkim {ACPI_SIG_NFIT, "NVDIMM Firmware Interface Table"}, 125283090Sjkim {ACPI_SIG_PCCT, "Platform Communications Channel Table"}, 126283090Sjkim {ACPI_SIG_PMTT, "Platform Memory Topology Table"}, 127283090Sjkim {ACPI_RSDP_NAME,"Root System Description Pointer"}, 128283090Sjkim {ACPI_SIG_RSDT, "Root System Description Table"}, 129283090Sjkim {ACPI_SIG_S3PT, "S3 Performance Table"}, 130283090Sjkim {ACPI_SIG_SBST, "Smart Battery Specification Table"}, 131283090Sjkim {ACPI_SIG_SLIC, "Software Licensing Description Table"}, 132283090Sjkim {ACPI_SIG_SLIT, "System Locality Information Table"}, 133283090Sjkim {ACPI_SIG_SPCR, "Serial Port Console Redirection table"}, 134283090Sjkim {ACPI_SIG_SPMI, "Server Platform Management Interface table"}, 135283090Sjkim {ACPI_SIG_SRAT, "System Resource Affinity Table"}, 136283090Sjkim {ACPI_SIG_SSDT, "Secondary System Description Table (AML table)"}, 137283090Sjkim {ACPI_SIG_STAO, "Status Override table"}, 138283090Sjkim {ACPI_SIG_TCPA, "Trusted Computing Platform Alliance table"}, 139283090Sjkim {ACPI_SIG_TPM2, "Trusted Platform Module hardware interface table"}, 140283090Sjkim {ACPI_SIG_UEFI, "UEFI Boot Optimization Table"}, 141283090Sjkim {ACPI_SIG_VRTC, "Virtual Real-Time Clock Table"}, 142283090Sjkim {ACPI_SIG_WAET, "Windows ACPI Emulated Devices Table"}, 143283090Sjkim {ACPI_SIG_WDAT, "Watchdog Action Table"}, 144283090Sjkim {ACPI_SIG_WDDT, "Watchdog Description Table"}, 145283090Sjkim {ACPI_SIG_WDRT, "Watchdog Resource Table"}, 146283090Sjkim {ACPI_SIG_WPBT, "Windows Platform Binary Table"}, 147283090Sjkim {ACPI_SIG_XENV, "Xen Environment table"}, 148283090Sjkim {ACPI_SIG_XSDT, "Extended System Description Table"}, 149283090Sjkim {NULL, NULL} 150283090Sjkim}; 151