Path: blob/main/sys/contrib/dev/acpica/common/dmtbinfo3.c
106993 views
/******************************************************************************1*2* Module Name: dmtbinfo3 - Table info for non-AML tables3*4*****************************************************************************/56/******************************************************************************7*8* 1. Copyright Notice9*10* Some or all of this work - Copyright (c) 1999 - 2025, Intel Corp.11* All rights reserved.12*13* 2. License14*15* 2.1. This is your license from Intel Corp. under its intellectual property16* rights. You may have additional license terms from the party that provided17* you this software, covering your right to use that party's intellectual18* property rights.19*20* 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a21* copy of the source code appearing in this file ("Covered Code") an22* irrevocable, perpetual, worldwide license under Intel's copyrights in the23* base code distributed originally by Intel ("Original Intel Code") to copy,24* make derivatives, distribute, use and display any portion of the Covered25* Code in any form, with the right to sublicense such rights; and26*27* 2.3. Intel grants Licensee a non-exclusive and non-transferable patent28* license (with the right to sublicense), under only those claims of Intel29* patents that are infringed by the Original Intel Code, to make, use, sell,30* offer to sell, and import the Covered Code and derivative works thereof31* solely to the minimum extent necessary to exercise the above copyright32* license, and in no event shall the patent license extend to any additions33* to or modifications of the Original Intel Code. No other license or right34* is granted directly or by implication, estoppel or otherwise;35*36* The above copyright and patent license is granted only if the following37* conditions are met:38*39* 3. Conditions40*41* 3.1. Redistribution of Source with Rights to Further Distribute Source.42* Redistribution of source code of any substantial portion of the Covered43* Code or modification with rights to further distribute source must include44* the above Copyright Notice, the above License, this list of Conditions,45* and the following Disclaimer and Export Compliance provision. In addition,46* Licensee must cause all Covered Code to which Licensee contributes to47* contain a file documenting the changes Licensee made to create that Covered48* Code and the date of any change. Licensee must include in that file the49* documentation of any changes made by any predecessor Licensee. Licensee50* must include a prominent statement that the modification is derived,51* directly or indirectly, from Original Intel Code.52*53* 3.2. Redistribution of Source with no Rights to Further Distribute Source.54* Redistribution of source code of any substantial portion of the Covered55* Code or modification without rights to further distribute source must56* include the following Disclaimer and Export Compliance provision in the57* documentation and/or other materials provided with distribution. In58* addition, Licensee may not authorize further sublicense of source of any59* portion of the Covered Code, and must include terms to the effect that the60* license from Licensee to its licensee is limited to the intellectual61* property embodied in the software Licensee provides to its licensee, and62* not to intellectual property embodied in modifications its licensee may63* make.64*65* 3.3. Redistribution of Executable. Redistribution in executable form of any66* substantial portion of the Covered Code or modification must reproduce the67* above Copyright Notice, and the following Disclaimer and Export Compliance68* provision in the documentation and/or other materials provided with the69* distribution.70*71* 3.4. Intel retains all right, title, and interest in and to the Original72* Intel Code.73*74* 3.5. Neither the name Intel nor any other trademark owned or controlled by75* Intel shall be used in advertising or otherwise to promote the sale, use or76* other dealings in products derived from or relating to the Covered Code77* without prior written authorization from Intel.78*79* 4. Disclaimer and Export Compliance80*81* 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED82* HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE83* IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,84* INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY85* UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY86* IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A87* PARTICULAR PURPOSE.88*89* 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES90* OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR91* COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,92* SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY93* CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL94* HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS95* SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY96* LIMITED REMEDY.97*98* 4.3. Licensee shall not export, either directly or indirectly, any of this99* software or system incorporating such software without first obtaining any100* required license or other approval from the U. S. Department of Commerce or101* any other agency or department of the United States Government. In the102* event Licensee exports any such software from the United States or103* re-exports any such software from a foreign destination, Licensee shall104* ensure that the distribution and export/re-export of the software is in105* compliance with all laws, regulations, orders, or other restrictions of the106* U.S. Export Administration Regulations. Licensee agrees that neither it nor107* any of its subsidiaries will export/re-export any technical data, process,108* software, or service, directly or indirectly, to any country for which the109* United States government or any agency thereof requires an export license,110* other governmental approval, or letter of assurance, without first obtaining111* such license, approval or letter.112*113*****************************************************************************114*115* Alternatively, you may choose to be licensed under the terms of the116* following license:117*118* Redistribution and use in source and binary forms, with or without119* modification, are permitted provided that the following conditions120* are met:121* 1. Redistributions of source code must retain the above copyright122* notice, this list of conditions, and the following disclaimer,123* without modification.124* 2. Redistributions in binary form must reproduce at minimum a disclaimer125* substantially similar to the "NO WARRANTY" disclaimer below126* ("Disclaimer") and any redistribution must be conditioned upon127* including a substantially similar Disclaimer requirement for further128* binary redistribution.129* 3. Neither the names of the above-listed copyright holders nor the names130* of any contributors may be used to endorse or promote products derived131* from this software without specific prior written permission.132*133* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS134* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT135* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR136* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT137* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,138* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT139* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,140* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY141* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT142* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE143* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.144*145* Alternatively, you may choose to be licensed under the terms of the146* GNU General Public License ("GPL") version 2 as published by the Free147* Software Foundation.148*149*****************************************************************************/150151#include <contrib/dev/acpica/include/acpi.h>152#include <contrib/dev/acpica/include/accommon.h>153#include <contrib/dev/acpica/include/acdisasm.h>154#include <contrib/dev/acpica/include/actbinfo.h>155156/* This module used for application-level code only */157158#define _COMPONENT ACPI_CA_DISASSEMBLER159ACPI_MODULE_NAME ("dmtbinfo3")160161/*162* How to add a new table:163*164* - Add the C table definition to the actbl1.h or actbl2.h header.165* - Add ACPI_xxxx_OFFSET macro(s) for the table (and subtables) to list below.166* - Define the table in this file (for the disassembler). If any167* new data types are required (ACPI_DMT_*), see below.168* - Add an external declaration for the new table definition (AcpiDmTableInfo*)169* in acdisam.h170* - Add new table definition to the dispatch table in dmtable.c (AcpiDmTableData)171* If a simple table (with no subtables), no disassembly code is needed.172* Otherwise, create the AcpiDmDump* function for to disassemble the table173* and add it to the dmtbdump.c file.174* - Add an external declaration for the new AcpiDmDump* function in acdisasm.h175* - Add the new AcpiDmDump* function to the dispatch table in dmtable.c176* - Create a template for the new table177* - Add data table compiler support178*179* How to add a new data type (ACPI_DMT_*):180*181* - Add new type at the end of the ACPI_DMT list in acdisasm.h182* - Add length and implementation cases in dmtable.c (disassembler)183* - Add type and length cases in dtutils.c (DT compiler)184*/185186/*187* ACPI Table Information, used to dump formatted ACPI tables188*189* Each entry is of the form: <Field Type, Field Offset, Field Name>190*/191192/*******************************************************************************193*194* CCEL - CC-Event Log Table195*196******************************************************************************/197198ACPI_DMTABLE_INFO AcpiDmTableInfoCcel[] =199{200{ACPI_DMT_UINT8, ACPI_CCEL_OFFSET (CCType), "CC Type", 0},201{ACPI_DMT_UINT8, ACPI_CCEL_OFFSET (CCSubType), "CC Sub Type", 0},202{ACPI_DMT_UINT16, ACPI_CCEL_OFFSET (Reserved), "Reserved", 0},203{ACPI_DMT_UINT64, ACPI_CCEL_OFFSET (LogAreaMinimumLength), "Log Area Minimum Length", 0},204{ACPI_DMT_UINT64, ACPI_CCEL_OFFSET (LogAreaStartAddress), "Log Area Start Address", 0},205ACPI_DMT_TERMINATOR206};207208209/*******************************************************************************210*211* SLIC - Software Licensing Description Table. This table contains the standard212* ACPI header followed by proprietary data structures213*214******************************************************************************/215216/* Single subtable, a proprietary format, so treat it as a buffer */217218ACPI_DMTABLE_INFO AcpiDmTableInfoSlic[] =219{220{ACPI_DMT_RAW_BUFFER, 0, "Software Licensing Structure", 0},221ACPI_DMT_TERMINATOR222};223224225/*******************************************************************************226*227* SLIT - System Locality Information Table228*229******************************************************************************/230231ACPI_DMTABLE_INFO AcpiDmTableInfoSlit[] =232{233{ACPI_DMT_UINT64, ACPI_SLIT_OFFSET (LocalityCount), "Localities", 0},234ACPI_DMT_TERMINATOR235};236237238/*******************************************************************************239*240* SPCR - Serial Port Console Redirection table241*242******************************************************************************/243244ACPI_DMTABLE_INFO AcpiDmTableInfoSpcr[] =245{246{ACPI_DMT_UINT8, ACPI_SPCR_OFFSET (InterfaceType), "Interface Type", 0},247{ACPI_DMT_UINT24, ACPI_SPCR_OFFSET (Reserved[0]), "Reserved", 0},248{ACPI_DMT_GAS, ACPI_SPCR_OFFSET (SerialPort), "Serial Port Register", 0},249{ACPI_DMT_UINT8, ACPI_SPCR_OFFSET (InterruptType), "Interrupt Type", 0},250{ACPI_DMT_UINT8, ACPI_SPCR_OFFSET (PcInterrupt), "PCAT-compatible IRQ", 0},251{ACPI_DMT_UINT32, ACPI_SPCR_OFFSET (Interrupt), "Interrupt", 0},252{ACPI_DMT_UINT8, ACPI_SPCR_OFFSET (BaudRate), "Baud Rate", 0},253{ACPI_DMT_UINT8, ACPI_SPCR_OFFSET (Parity), "Parity", 0},254{ACPI_DMT_UINT8, ACPI_SPCR_OFFSET (StopBits), "Stop Bits", 0},255{ACPI_DMT_UINT8, ACPI_SPCR_OFFSET (FlowControl), "Flow Control", 0},256{ACPI_DMT_UINT8, ACPI_SPCR_OFFSET (TerminalType), "Terminal Type", 0},257{ACPI_DMT_UINT8, ACPI_SPCR_OFFSET (Language), "Language", 0},258{ACPI_DMT_UINT16, ACPI_SPCR_OFFSET (PciDeviceId), "PCI Device ID", 0},259{ACPI_DMT_UINT16, ACPI_SPCR_OFFSET (PciVendorId), "PCI Vendor ID", 0},260{ACPI_DMT_UINT8, ACPI_SPCR_OFFSET (PciBus), "PCI Bus", 0},261{ACPI_DMT_UINT8, ACPI_SPCR_OFFSET (PciDevice), "PCI Device", 0},262{ACPI_DMT_UINT8, ACPI_SPCR_OFFSET (PciFunction), "PCI Function", 0},263{ACPI_DMT_UINT32, ACPI_SPCR_OFFSET (PciFlags), "PCI Flags", 0},264{ACPI_DMT_UINT8, ACPI_SPCR_OFFSET (PciSegment), "PCI Segment", 0},265{ACPI_DMT_UINT32, ACPI_SPCR_OFFSET (UartClkFreq), "Uart Clock Freq", 0},266{ACPI_DMT_UINT32, ACPI_SPCR_OFFSET (PreciseBaudrate), "Precise Baud rate", 0},267{ACPI_DMT_UINT16, ACPI_SPCR_OFFSET (NameSpaceStringLength), "NameSpaceStringLength", 0},268{ACPI_DMT_UINT16, ACPI_SPCR_OFFSET (NameSpaceStringOffset), "NameSpaceStringOffset", 0},269{ACPI_DMT_STRING, ACPI_SPCR_OFFSET (NameSpaceString), "NamespaceString", 0},270ACPI_DMT_TERMINATOR271};272273274/*******************************************************************************275*276* SPMI - Server Platform Management Interface table277*278******************************************************************************/279280ACPI_DMTABLE_INFO AcpiDmTableInfoSpmi[] =281{282{ACPI_DMT_UINT8, ACPI_SPMI_OFFSET (InterfaceType), "Interface Type", 0},283{ACPI_DMT_UINT8, ACPI_SPMI_OFFSET (Reserved), "Reserved", DT_NON_ZERO}, /* Value must be 1 */284{ACPI_DMT_UINT16, ACPI_SPMI_OFFSET (SpecRevision), "IPMI Spec Version", 0},285{ACPI_DMT_UINT8, ACPI_SPMI_OFFSET (InterruptType), "Interrupt Type", 0},286{ACPI_DMT_UINT8, ACPI_SPMI_OFFSET (GpeNumber), "GPE Number", 0},287{ACPI_DMT_UINT8, ACPI_SPMI_OFFSET (Reserved1), "Reserved", 0},288{ACPI_DMT_UINT8, ACPI_SPMI_OFFSET (PciDeviceFlag), "PCI Device Flag", 0},289{ACPI_DMT_UINT32, ACPI_SPMI_OFFSET (Interrupt), "Interrupt", 0},290{ACPI_DMT_GAS, ACPI_SPMI_OFFSET (IpmiRegister), "IPMI Register", 0},291{ACPI_DMT_UINT8, ACPI_SPMI_OFFSET (PciSegment), "PCI Segment", 0},292{ACPI_DMT_UINT8, ACPI_SPMI_OFFSET (PciBus), "PCI Bus", 0},293{ACPI_DMT_UINT8, ACPI_SPMI_OFFSET (PciDevice), "PCI Device", 0},294{ACPI_DMT_UINT8, ACPI_SPMI_OFFSET (PciFunction), "PCI Function", 0},295{ACPI_DMT_UINT8, ACPI_SPMI_OFFSET (Reserved2), "Reserved", 0},296ACPI_DMT_TERMINATOR297};298299300/*******************************************************************************301*302* SRAT - System Resource Affinity Table and Subtables303*304******************************************************************************/305306ACPI_DMTABLE_INFO AcpiDmTableInfoSrat[] =307{308{ACPI_DMT_UINT32, ACPI_SRAT_OFFSET (TableRevision), "Table Revision", 0},309{ACPI_DMT_UINT64, ACPI_SRAT_OFFSET (Reserved), "Reserved", 0},310ACPI_DMT_TERMINATOR311};312313/* Common Subtable header (one per Subtable) */314315ACPI_DMTABLE_INFO AcpiDmTableInfoSratHdr[] =316{317{ACPI_DMT_SRAT, ACPI_SRATH_OFFSET (Type), "Subtable Type", 0},318{ACPI_DMT_UINT8, ACPI_SRATH_OFFSET (Length), "Length", DT_LENGTH},319ACPI_DMT_TERMINATOR320};321322/* SRAT Subtables */323324/* 0: Processor Local APIC/SAPIC Affinity */325326ACPI_DMTABLE_INFO AcpiDmTableInfoSrat0[] =327{328{ACPI_DMT_UINT8, ACPI_SRAT0_OFFSET (ProximityDomainLo), "Proximity Domain Low(8)", 0},329{ACPI_DMT_UINT8, ACPI_SRAT0_OFFSET (ApicId), "Apic ID", 0},330{ACPI_DMT_UINT32, ACPI_SRAT0_OFFSET (Flags), "Flags (decoded below)", DT_FLAG},331{ACPI_DMT_FLAG0, ACPI_SRAT0_FLAG_OFFSET (Flags,0), "Enabled", 0},332{ACPI_DMT_UINT8, ACPI_SRAT0_OFFSET (LocalSapicEid), "Local Sapic EID", 0},333{ACPI_DMT_UINT24, ACPI_SRAT0_OFFSET (ProximityDomainHi[0]), "Proximity Domain High(24)", 0},334{ACPI_DMT_UINT32, ACPI_SRAT0_OFFSET (ClockDomain), "Clock Domain", 0},335ACPI_DMT_TERMINATOR336};337338/* 1: Memory Affinity */339340ACPI_DMTABLE_INFO AcpiDmTableInfoSrat1[] =341{342{ACPI_DMT_UINT32, ACPI_SRAT1_OFFSET (ProximityDomain), "Proximity Domain", 0},343{ACPI_DMT_UINT16, ACPI_SRAT1_OFFSET (Reserved), "Reserved1", 0},344{ACPI_DMT_UINT64, ACPI_SRAT1_OFFSET (BaseAddress), "Base Address", 0},345{ACPI_DMT_UINT64, ACPI_SRAT1_OFFSET (Length), "Address Length", 0},346{ACPI_DMT_UINT32, ACPI_SRAT1_OFFSET (Reserved1), "Reserved2", 0},347{ACPI_DMT_UINT32, ACPI_SRAT1_OFFSET (Flags), "Flags (decoded below)", DT_FLAG},348{ACPI_DMT_FLAG0, ACPI_SRAT1_FLAG_OFFSET (Flags,0), "Enabled", 0},349{ACPI_DMT_FLAG1, ACPI_SRAT1_FLAG_OFFSET (Flags,0), "Hot Pluggable", 0},350{ACPI_DMT_FLAG2, ACPI_SRAT1_FLAG_OFFSET (Flags,0), "Non-Volatile", 0},351{ACPI_DMT_UINT64, ACPI_SRAT1_OFFSET (Reserved2), "Reserved3", 0},352ACPI_DMT_TERMINATOR353};354355/* 2: Processor Local X2_APIC Affinity (ACPI 4.0) */356357ACPI_DMTABLE_INFO AcpiDmTableInfoSrat2[] =358{359{ACPI_DMT_UINT16, ACPI_SRAT2_OFFSET (Reserved), "Reserved1", 0},360{ACPI_DMT_UINT32, ACPI_SRAT2_OFFSET (ProximityDomain), "Proximity Domain", 0},361{ACPI_DMT_UINT32, ACPI_SRAT2_OFFSET (ApicId), "Apic ID", 0},362{ACPI_DMT_UINT32, ACPI_SRAT2_OFFSET (Flags), "Flags (decoded below)", DT_FLAG},363{ACPI_DMT_FLAG0, ACPI_SRAT2_FLAG_OFFSET (Flags,0), "Enabled", 0},364{ACPI_DMT_UINT32, ACPI_SRAT2_OFFSET (ClockDomain), "Clock Domain", 0},365{ACPI_DMT_UINT32, ACPI_SRAT2_OFFSET (Reserved2), "Reserved2", 0},366ACPI_DMT_TERMINATOR367};368369/* 3: GICC Affinity (ACPI 5.1) */370371ACPI_DMTABLE_INFO AcpiDmTableInfoSrat3[] =372{373{ACPI_DMT_UINT32, ACPI_SRAT3_OFFSET (ProximityDomain), "Proximity Domain", 0},374{ACPI_DMT_UINT32, ACPI_SRAT3_OFFSET (AcpiProcessorUid), "Acpi Processor UID", 0},375{ACPI_DMT_UINT32, ACPI_SRAT3_OFFSET (Flags), "Flags (decoded below)", DT_FLAG},376{ACPI_DMT_FLAG0, ACPI_SRAT3_FLAG_OFFSET (Flags,0), "Enabled", 0},377{ACPI_DMT_UINT32, ACPI_SRAT3_OFFSET (ClockDomain), "Clock Domain", 0},378ACPI_DMT_TERMINATOR379};380381/* 4: GIC ITS Affinity (ACPI 6.2) */382383ACPI_DMTABLE_INFO AcpiDmTableInfoSrat4[] =384{385{ACPI_DMT_UINT32, ACPI_SRAT4_OFFSET (ProximityDomain), "Proximity Domain", 0},386{ACPI_DMT_UINT16, ACPI_SRAT4_OFFSET (Reserved), "Reserved", 0},387{ACPI_DMT_UINT32, ACPI_SRAT4_OFFSET (ItsId), "ITS ID", 0},388ACPI_DMT_TERMINATOR389};390391/* Common SRAT structure for Generic Affinity Subtables */392393#define ACPI_DM_SRAT_GENERIC_AFFINITY \394{ACPI_DMT_UINT8, ACPI_SRAT5_OFFSET (Reserved), "Reserved1", 0}, \395{ACPI_DMT_UINT8, ACPI_SRAT5_OFFSET (DeviceHandleType), "Device Handle Type", 0}, \396{ACPI_DMT_UINT32, ACPI_SRAT5_OFFSET (ProximityDomain), "Proximity Domain", 0}, \397{ACPI_DMT_BUF16, ACPI_SRAT5_OFFSET (DeviceHandle), "Device Handle", 0}, \398{ACPI_DMT_UINT32, ACPI_SRAT5_OFFSET (Flags), "Flags (decoded below)", DT_FLAG}, \399{ACPI_DMT_FLAG0, ACPI_SRAT5_FLAG_OFFSET (Flags,0), "Enabled", 0}, \400{ACPI_DMT_FLAG1, ACPI_SRAT5_FLAG_OFFSET (Flags,0), "Architectural Transactions", 0}, \401{ACPI_DMT_UINT32, ACPI_SRAT5_OFFSET (Reserved1), "Reserved2", 0}402403/* 5: Generic Initiator Affinity Structure (ACPI 6.3) */404405ACPI_DMTABLE_INFO AcpiDmTableInfoSrat5[] =406{407ACPI_DM_SRAT_GENERIC_AFFINITY,408ACPI_DMT_TERMINATOR409};410411/* 6: Generic Port Affinity Structure (ACPI 6.4) */412413ACPI_DMTABLE_INFO AcpiDmTableInfoSrat6[] =414{415ACPI_DM_SRAT_GENERIC_AFFINITY,416ACPI_DMT_TERMINATOR417};418419/* 7: RINTC Affinity Structure (ACPI 6.6) */420421ACPI_DMTABLE_INFO AcpiDmTableInfoSrat7[] =422{423{ACPI_DMT_UINT16, ACPI_SRAT7_OFFSET (Reserved), "Reserved", 0},424{ACPI_DMT_UINT32, ACPI_SRAT7_OFFSET (ProximityDomain), "Proximity Domain", 0},425{ACPI_DMT_UINT32, ACPI_SRAT7_OFFSET (AcpiProcessorUid), "Acpi Processor UID", 0},426{ACPI_DMT_UINT32, ACPI_SRAT7_OFFSET (Flags), "Flags (decoded below)", DT_FLAG},427{ACPI_DMT_FLAG0, ACPI_SRAT7_FLAG_OFFSET (Flags,0), "Enabled", 0},428{ACPI_DMT_UINT32, ACPI_SRAT7_OFFSET (ClockDomain), "Clock Domain", 0},429ACPI_DMT_TERMINATOR430};431432/*******************************************************************************433*434* STAO - Status Override Table (_STA override) - ACPI 6.0435*436******************************************************************************/437438ACPI_DMTABLE_INFO AcpiDmTableInfoStao[] =439{440{ACPI_DMT_UINT8, ACPI_STAO_OFFSET (IgnoreUart), "Ignore UART", 0},441ACPI_DMT_TERMINATOR442};443444ACPI_DMTABLE_INFO AcpiDmTableInfoStaoStr[] =445{446{ACPI_DMT_STRING, 0, "Namepath", 0},447ACPI_DMT_TERMINATOR448};449450451/*******************************************************************************452*453* SVKL - Storage Volume Key Location table454*455******************************************************************************/456457ACPI_DMTABLE_INFO AcpiDmTableInfoSvkl[] =458{459{ACPI_DMT_UINT32, ACPI_SVKL_OFFSET (Count), "Key Count", 0},460ACPI_DMT_TERMINATOR461};462463/* SVKL subtables */464465ACPI_DMTABLE_INFO AcpiDmTableInfoSvkl0[] =466{467{ACPI_DMT_UINT16, ACPI_SVKL0_OFFSET (Type), "Key Type", 0},468{ACPI_DMT_UINT16, ACPI_SVKL0_OFFSET (Format), "Key Format", 0},469{ACPI_DMT_UINT32, ACPI_SVKL0_OFFSET (Size), "Key Size", 0},470{ACPI_DMT_UINT64, ACPI_SVKL0_OFFSET (Address), "Key Address", 0},471ACPI_DMT_TERMINATOR472};473474/*******************************************************************************475*476* SWFT - SoundWire File Table477*478******************************************************************************/479480ACPI_DMTABLE_INFO AcpiDmTableInfoSwft[] =481{482ACPI_DMT_TERMINATOR483};484485ACPI_DMTABLE_INFO AcpiDmTableInfoSwftFileHdr[] =486{487{ACPI_DMT_UINT16, ACPI_SWFT_FILE_OFFSET (VendorID), "File Vendor ID", 0},488{ACPI_DMT_UINT32, ACPI_SWFT_FILE_OFFSET (FileID), "File ID", 0},489{ACPI_DMT_UINT16, ACPI_SWFT_FILE_OFFSET (FileVersion), "File Version", 0},490{ACPI_DMT_UINT32, ACPI_SWFT_FILE_OFFSET (FileLength), "File Length", 0},491ACPI_DMT_TERMINATOR492};493494ACPI_DMTABLE_INFO AcpiDmTableInfoSwftFileData[] =495{496{ACPI_DMT_BUFFER, 0, "File Data", 0},497ACPI_DMT_TERMINATOR498};499500/*******************************************************************************501*502* TCPA - Trusted Computing Platform Alliance table (Client)503*504* NOTE: There are two versions of the table with the same signature --505* the client version and the server version. The common PlatformClass506* field is used to differentiate the two types of tables.507*508******************************************************************************/509510ACPI_DMTABLE_INFO AcpiDmTableInfoTcpaHdr[] =511{512{ACPI_DMT_UINT16, ACPI_TCPA_OFFSET (PlatformClass), "Platform Class", 0},513ACPI_DMT_TERMINATOR514};515516ACPI_DMTABLE_INFO AcpiDmTableInfoTcpaClient[] =517{518{ACPI_DMT_UINT32, ACPI_TCPA_CLIENT_OFFSET (MinimumLogLength), "Min Event Log Length", 0},519{ACPI_DMT_UINT64, ACPI_TCPA_CLIENT_OFFSET (LogAddress), "Event Log Address", 0},520ACPI_DMT_TERMINATOR521};522523ACPI_DMTABLE_INFO AcpiDmTableInfoTcpaServer[] =524{525{ACPI_DMT_UINT16, ACPI_TCPA_SERVER_OFFSET (Reserved), "Reserved", 0},526{ACPI_DMT_UINT64, ACPI_TCPA_SERVER_OFFSET (MinimumLogLength), "Min Event Log Length", 0},527{ACPI_DMT_UINT64, ACPI_TCPA_SERVER_OFFSET (LogAddress), "Event Log Address", 0},528{ACPI_DMT_UINT16, ACPI_TCPA_SERVER_OFFSET (SpecRevision), "Specification Revision", 0},529{ACPI_DMT_UINT8, ACPI_TCPA_SERVER_OFFSET (DeviceFlags), "Device Flags (decoded below)", DT_FLAG},530{ACPI_DMT_FLAG0, ACPI_TCPA_SERVER_OFFSET (DeviceFlags), "Pci Device", 0},531{ACPI_DMT_FLAG1, ACPI_TCPA_SERVER_OFFSET (DeviceFlags), "Bus is Pnp", 0},532{ACPI_DMT_FLAG2, ACPI_TCPA_SERVER_OFFSET (DeviceFlags), "Address Valid", 0},533{ACPI_DMT_UINT8, ACPI_TCPA_SERVER_OFFSET (InterruptFlags), "Interrupt Flags (decoded below)", DT_FLAG},534{ACPI_DMT_FLAG0, ACPI_TCPA_SERVER_OFFSET (InterruptFlags), "Mode", 0},535{ACPI_DMT_FLAG1, ACPI_TCPA_SERVER_OFFSET (InterruptFlags), "Polarity", 0},536{ACPI_DMT_FLAG2, ACPI_TCPA_SERVER_OFFSET (InterruptFlags), "GPE SCI Triggered", 0},537{ACPI_DMT_FLAG3, ACPI_TCPA_SERVER_OFFSET (InterruptFlags), "Global System Interrupt", 0},538{ACPI_DMT_UINT8, ACPI_TCPA_SERVER_OFFSET (GpeNumber), "Gpe Number", 0},539{ACPI_DMT_UINT24, ACPI_TCPA_SERVER_OFFSET (Reserved2[0]), "Reserved", 0},540{ACPI_DMT_UINT32, ACPI_TCPA_SERVER_OFFSET (GlobalInterrupt), "Global Interrupt", 0},541{ACPI_DMT_GAS, ACPI_TCPA_SERVER_OFFSET (Address), "Address", 0},542{ACPI_DMT_UINT32, ACPI_TCPA_SERVER_OFFSET (Reserved3), "Reserved", 0},543{ACPI_DMT_GAS, ACPI_TCPA_SERVER_OFFSET (ConfigAddress), "Configuration Address", 0},544{ACPI_DMT_UINT8, ACPI_TCPA_SERVER_OFFSET (Group), "Pci Group", 0},545{ACPI_DMT_UINT8, ACPI_TCPA_SERVER_OFFSET (Bus), "Pci Bus", 0},546{ACPI_DMT_UINT8, ACPI_TCPA_SERVER_OFFSET (Device), "Pci Device", 0},547{ACPI_DMT_UINT8, ACPI_TCPA_SERVER_OFFSET (Function), "Pci Function", 0},548ACPI_DMT_TERMINATOR549};550551552/*******************************************************************************553*554* TDEL - TD-Event Log Table555*556******************************************************************************/557558ACPI_DMTABLE_INFO AcpiDmTableInfoTdel[] =559{560{ACPI_DMT_UINT32, ACPI_TDEL_OFFSET (Reserved), "Reserved", 0},561{ACPI_DMT_UINT64, ACPI_TDEL_OFFSET (LogAreaMinimumLength), "Log Area Minimum Length", 0},562{ACPI_DMT_UINT64, ACPI_TDEL_OFFSET (LogAreaStartAddress), "Log Area Start Address", 0},563ACPI_DMT_TERMINATOR564};565566/*******************************************************************************567*568* TPM2 - Trusted Platform Module (TPM) 2.0 Hardware Interface Table569*570******************************************************************************/571572/* TPM2 revision 3 */573574ACPI_DMTABLE_INFO AcpiDmTableInfoTpm23[] =575{576{ACPI_DMT_UINT32, ACPI_TPM23_OFFSET (Reserved), "Reserved", 0},577{ACPI_DMT_UINT64, ACPI_TPM23_OFFSET (ControlAddress), "Control Address", 0},578{ACPI_DMT_UINT32, ACPI_TPM23_OFFSET (StartMethod), "Start Method", 0},579ACPI_DMT_TERMINATOR580};581582/* Trailer in the case that StartMethod == 2 */583584ACPI_DMTABLE_INFO AcpiDmTableInfoTpm23a[] =585{586{ACPI_DMT_UINT32, ACPI_TPM23A_OFFSET (Reserved), "Reserved", DT_OPTIONAL},587ACPI_DMT_TERMINATOR588};589590/* TPM2 revision 4 */591592ACPI_DMTABLE_INFO AcpiDmTableInfoTpm2[] =593{594{ACPI_DMT_UINT16, ACPI_TPM2_OFFSET (PlatformClass), "Platform Class", 0},595{ACPI_DMT_UINT16, ACPI_TPM2_OFFSET (Reserved), "Reserved", 0},596{ACPI_DMT_UINT64, ACPI_TPM2_OFFSET (ControlAddress), "Control Address", 0},597{ACPI_DMT_TPM2, ACPI_TPM2_OFFSET (StartMethod), "Start Method", 0},598ACPI_DMT_TERMINATOR599};600601/* Optional trailer. LogLength and LogAddress are additionally optional */602603ACPI_DMTABLE_INFO AcpiDmTableInfoTpm2a[] =604{605{ACPI_DMT_BUF12, ACPI_TPM2A_OFFSET (MethodParameters), "Method Parameters", DT_OPTIONAL},606{ACPI_DMT_UINT32, ACPI_TPM2A_OFFSET (MinimumLogLength), "Minimum Log Length", DT_OPTIONAL},607{ACPI_DMT_UINT64, ACPI_TPM2A_OFFSET (LogAddress), "Log Address", DT_OPTIONAL},608ACPI_DMT_TERMINATOR609};610611/* 11: Start Method for ARM SMC */612613ACPI_DMTABLE_INFO AcpiDmTableInfoTpm211[] =614{615{ACPI_DMT_UINT32, ACPI_TPM211_OFFSET (GlobalInterrupt), "Global Interrupt", 0},616{ACPI_DMT_UINT8, ACPI_TPM211_OFFSET (InterruptFlags), "Interrupt Flags", 0},617{ACPI_DMT_UINT8, ACPI_TPM211_OFFSET (OperationFlags), "Operation Flags", 0},618{ACPI_DMT_UINT16, ACPI_TPM211_OFFSET (Reserved), "Reserved", 0},619{ACPI_DMT_UINT32, ACPI_TPM211_OFFSET (FunctionId), "Function ID", 0},620ACPI_DMT_TERMINATOR621};622623624/*******************************************************************************625*626* UEFI - UEFI Boot optimization Table627*628******************************************************************************/629630ACPI_DMTABLE_INFO AcpiDmTableInfoUefi[] =631{632{ACPI_DMT_UUID, ACPI_UEFI_OFFSET (Identifier[0]), "UUID Identifier", 0},633{ACPI_DMT_UINT16, ACPI_UEFI_OFFSET (DataOffset), "Data Offset", 0},634ACPI_DMT_TERMINATOR635};636637638/*******************************************************************************639*640* VIOT - Virtual I/O Translation Table641*642******************************************************************************/643644ACPI_DMTABLE_INFO AcpiDmTableInfoViot[] =645{646{ACPI_DMT_UINT16, ACPI_VIOT_OFFSET (NodeCount), "Node count", 0},647{ACPI_DMT_UINT16, ACPI_VIOT_OFFSET (NodeOffset), "Node offset", 0},648{ACPI_DMT_UINT64, ACPI_VIOT_OFFSET (Reserved), "Reserved", 0},649ACPI_DMT_TERMINATOR650};651652/* Common VIOT subtable header */653654ACPI_DMTABLE_INFO AcpiDmTableInfoViotHeader[] =655{656{ACPI_DMT_VIOT, ACPI_VIOTH_OFFSET (Type), "Type", 0},657{ACPI_DMT_UINT8, ACPI_VIOTH_OFFSET (Reserved), "Reserved", 0},658{ACPI_DMT_UINT16, ACPI_VIOTH_OFFSET (Length), "Length", DT_LENGTH},659ACPI_DMT_TERMINATOR660};661662/* VIOT Subtables */663664/* 0x01: PCI Range Node */665666ACPI_DMTABLE_INFO AcpiDmTableInfoViot1[] =667{668{ACPI_DMT_UINT32, ACPI_VIOT1_OFFSET (EndpointStart), "Endpoint start", 0},669{ACPI_DMT_UINT16, ACPI_VIOT1_OFFSET (SegmentStart), "PCI Segment start", 0},670{ACPI_DMT_UINT16, ACPI_VIOT1_OFFSET (SegmentEnd), "PCI Segment end", 0},671{ACPI_DMT_UINT16, ACPI_VIOT1_OFFSET (BdfStart), "PCI BDF start", 0},672{ACPI_DMT_UINT16, ACPI_VIOT1_OFFSET (BdfEnd), "PCI BDF end", 0},673{ACPI_DMT_UINT16, ACPI_VIOT1_OFFSET (OutputNode), "Output node", 0},674{ACPI_DMT_UINT48, ACPI_VIOT1_OFFSET (Reserved), "Reserved", 0},675ACPI_DMT_TERMINATOR676};677678/* 0x02: MMIO Endpoint Node */679680ACPI_DMTABLE_INFO AcpiDmTableInfoViot2[] =681{682{ACPI_DMT_UINT32, ACPI_VIOT2_OFFSET (Endpoint), "Endpoint", 0},683{ACPI_DMT_UINT64, ACPI_VIOT2_OFFSET (BaseAddress), "Base address", 0},684{ACPI_DMT_UINT16, ACPI_VIOT2_OFFSET (OutputNode), "Output node", 0},685{ACPI_DMT_UINT48, ACPI_VIOT2_OFFSET (Reserved), "Reserved", 0},686ACPI_DMT_TERMINATOR687};688689/* 0x03: PCI Virtio-IOMMU Node */690691ACPI_DMTABLE_INFO AcpiDmTableInfoViot3[] =692{693{ACPI_DMT_UINT16, ACPI_VIOT3_OFFSET (Segment), "PCI Segment", 0},694{ACPI_DMT_UINT16, ACPI_VIOT3_OFFSET (Bdf), "PCI BDF number", 0},695{ACPI_DMT_UINT64, ACPI_VIOT3_OFFSET (Reserved), "Reserved", 0},696ACPI_DMT_TERMINATOR697};698699/* 0x04: MMIO Virtio-IOMMU Node */700701ACPI_DMTABLE_INFO AcpiDmTableInfoViot4[] =702{703{ACPI_DMT_UINT32, ACPI_VIOT4_OFFSET (Reserved), "Reserved", 0},704{ACPI_DMT_UINT64, ACPI_VIOT4_OFFSET (BaseAddress), "Base address", 0},705ACPI_DMT_TERMINATOR706};707708709/*******************************************************************************710*711* WAET - Windows ACPI Emulated devices Table712*713******************************************************************************/714715ACPI_DMTABLE_INFO AcpiDmTableInfoWaet[] =716{717{ACPI_DMT_UINT32, ACPI_WAET_OFFSET (Flags), "Flags (decoded below)", DT_FLAG},718{ACPI_DMT_FLAG0, ACPI_WAET_OFFSET (Flags), "RTC needs no INT ack", 0},719{ACPI_DMT_FLAG1, ACPI_WAET_OFFSET (Flags), "PM timer, one read only", 0},720ACPI_DMT_TERMINATOR721};722723724/*******************************************************************************725*726* WDAT - Watchdog Action Table727*728******************************************************************************/729730ACPI_DMTABLE_INFO AcpiDmTableInfoWdat[] =731{732{ACPI_DMT_UINT32, ACPI_WDAT_OFFSET (HeaderLength), "Header Length", DT_LENGTH},733{ACPI_DMT_UINT16, ACPI_WDAT_OFFSET (PciSegment), "PCI Segment", 0},734{ACPI_DMT_UINT8, ACPI_WDAT_OFFSET (PciBus), "PCI Bus", 0},735{ACPI_DMT_UINT8, ACPI_WDAT_OFFSET (PciDevice), "PCI Device", 0},736{ACPI_DMT_UINT8, ACPI_WDAT_OFFSET (PciFunction), "PCI Function", 0},737{ACPI_DMT_UINT24, ACPI_WDAT_OFFSET (Reserved[0]), "Reserved", 0},738{ACPI_DMT_UINT32, ACPI_WDAT_OFFSET (TimerPeriod), "Timer Period", 0},739{ACPI_DMT_UINT32, ACPI_WDAT_OFFSET (MaxCount), "Max Count", 0},740{ACPI_DMT_UINT32, ACPI_WDAT_OFFSET (MinCount), "Min Count", 0},741{ACPI_DMT_UINT8, ACPI_WDAT_OFFSET (Flags), "Flags (decoded below)", DT_FLAG},742{ACPI_DMT_FLAG0, ACPI_WDAT_OFFSET (Flags), "Enabled", 0},743{ACPI_DMT_FLAG7, ACPI_WDAT_OFFSET (Flags), "Stopped When Asleep", 0},744{ACPI_DMT_UINT24, ACPI_WDAT_OFFSET (Reserved2[0]), "Reserved", 0},745{ACPI_DMT_UINT32, ACPI_WDAT_OFFSET (Entries), "Watchdog Entry Count", 0},746ACPI_DMT_TERMINATOR747};748749/* WDAT Subtables - Watchdog Instruction Entries */750751ACPI_DMTABLE_INFO AcpiDmTableInfoWdat0[] =752{753{ACPI_DMT_UINT8, ACPI_WDAT0_OFFSET (Action), "Watchdog Action", 0},754{ACPI_DMT_UINT8, ACPI_WDAT0_OFFSET (Instruction), "Instruction", 0},755{ACPI_DMT_UINT16, ACPI_WDAT0_OFFSET (Reserved), "Reserved", 0},756{ACPI_DMT_GAS, ACPI_WDAT0_OFFSET (RegisterRegion), "Register Region", 0},757{ACPI_DMT_UINT32, ACPI_WDAT0_OFFSET (Value), "Value", 0},758{ACPI_DMT_UINT32, ACPI_WDAT0_OFFSET (Mask), "Register Mask", 0},759ACPI_DMT_TERMINATOR760};761762763/*******************************************************************************764*765* WDDT - Watchdog Description Table766*767******************************************************************************/768769ACPI_DMTABLE_INFO AcpiDmTableInfoWddt[] =770{771{ACPI_DMT_UINT16, ACPI_WDDT_OFFSET (SpecVersion), "Specification Version", 0},772{ACPI_DMT_UINT16, ACPI_WDDT_OFFSET (TableVersion), "Table Version", 0},773{ACPI_DMT_UINT16, ACPI_WDDT_OFFSET (PciVendorId), "PCI Vendor ID", 0},774{ACPI_DMT_GAS, ACPI_WDDT_OFFSET (Address), "Timer Register", 0},775{ACPI_DMT_UINT16, ACPI_WDDT_OFFSET (MaxCount), "Max Count", 0},776{ACPI_DMT_UINT16, ACPI_WDDT_OFFSET (MinCount), "Min Count", 0},777{ACPI_DMT_UINT16, ACPI_WDDT_OFFSET (Period), "Period", 0},778{ACPI_DMT_UINT16, ACPI_WDDT_OFFSET (Status), "Status (decoded below)", 0},779780/* Status Flags byte 0 */781782{ACPI_DMT_FLAG0, ACPI_WDDT_FLAG_OFFSET (Status,0), "Available", 0},783{ACPI_DMT_FLAG1, ACPI_WDDT_FLAG_OFFSET (Status,0), "Active", 0},784{ACPI_DMT_FLAG2, ACPI_WDDT_FLAG_OFFSET (Status,0), "OS Owns", 0},785786/* Status Flags byte 1 */787788{ACPI_DMT_FLAG3, ACPI_WDDT_FLAG_OFFSET (Status,1), "User Reset", 0},789{ACPI_DMT_FLAG4, ACPI_WDDT_FLAG_OFFSET (Status,1), "Timeout Reset", 0},790{ACPI_DMT_FLAG5, ACPI_WDDT_FLAG_OFFSET (Status,1), "Power Fail Reset", 0},791{ACPI_DMT_FLAG6, ACPI_WDDT_FLAG_OFFSET (Status,1), "Unknown Reset", 0},792793{ACPI_DMT_UINT16, ACPI_WDDT_OFFSET (Capability), "Capability (decoded below)", 0},794795/* Capability Flags byte 0 */796797{ACPI_DMT_FLAG0, ACPI_WDDT_FLAG_OFFSET (Capability,0), "Auto Reset", 0},798{ACPI_DMT_FLAG1, ACPI_WDDT_FLAG_OFFSET (Capability,0), "Timeout Alert", 0},799ACPI_DMT_TERMINATOR800};801802803/*******************************************************************************804*805* WDRT - Watchdog Resource Table806*807******************************************************************************/808809ACPI_DMTABLE_INFO AcpiDmTableInfoWdrt[] =810{811{ACPI_DMT_GAS, ACPI_WDRT_OFFSET (ControlRegister), "Control Register", 0},812{ACPI_DMT_GAS, ACPI_WDRT_OFFSET (CountRegister), "Count Register", 0},813{ACPI_DMT_UINT16, ACPI_WDRT_OFFSET (PciDeviceId), "PCI Device ID", 0},814{ACPI_DMT_UINT16, ACPI_WDRT_OFFSET (PciVendorId), "PCI Vendor ID", 0},815{ACPI_DMT_UINT8, ACPI_WDRT_OFFSET (PciBus), "PCI Bus", 0},816{ACPI_DMT_UINT8, ACPI_WDRT_OFFSET (PciDevice), "PCI Device", 0},817{ACPI_DMT_UINT8, ACPI_WDRT_OFFSET (PciFunction), "PCI Function", 0},818{ACPI_DMT_UINT8, ACPI_WDRT_OFFSET (PciSegment), "PCI Segment", 0},819{ACPI_DMT_UINT16, ACPI_WDRT_OFFSET (MaxCount), "Max Count", 0},820{ACPI_DMT_UINT8, ACPI_WDRT_OFFSET (Units), "Counter Units", 0},821ACPI_DMT_TERMINATOR822};823824825/*******************************************************************************826*827* WPBT - Windows Platform Environment Table (ACPI 6.0)828* Version 1829*830* Conforms to "Windows Platform Binary Table (WPBT)" 29 November 2011831*832******************************************************************************/833834ACPI_DMTABLE_INFO AcpiDmTableInfoWpbt[] =835{836{ACPI_DMT_UINT32, ACPI_WPBT_OFFSET (HandoffSize), "Handoff Size", 0},837{ACPI_DMT_UINT64, ACPI_WPBT_OFFSET (HandoffAddress), "Handoff Address", 0},838{ACPI_DMT_UINT8, ACPI_WPBT_OFFSET (Layout), "Layout", 0},839{ACPI_DMT_UINT8, ACPI_WPBT_OFFSET (Type), "Type", 0},840{ACPI_DMT_UINT16, ACPI_WPBT_OFFSET (ArgumentsLength), "Arguments Length", 0},841ACPI_DMT_TERMINATOR842};843844ACPI_DMTABLE_INFO AcpiDmTableInfoWpbt0[] =845{846{ACPI_DMT_WPBT_UNICODE, ACPI_WPBT2_OFFSET (UnicodeString), "Command-line Arguments", DT_DESCRIBES_OPTIONAL},847ACPI_DMT_TERMINATOR848};849850851/*******************************************************************************852*853* WSMT - Windows SMM Security Mitigations Table854*855******************************************************************************/856857ACPI_DMTABLE_INFO AcpiDmTableInfoWsmt[] =858{859{ACPI_DMT_UINT32, ACPI_WSMT_OFFSET (ProtectionFlags), "Protection Flags", 0},860{ACPI_DMT_FLAG0, ACPI_WSMT_FLAG_OFFSET (ProtectionFlags,0), "FIXED_COMM_BUFFERS", 0},861{ACPI_DMT_FLAG1, ACPI_WSMT_FLAG_OFFSET (ProtectionFlags,0), "COMM_BUFFER_NESTED_PTR_PROTECTION", 0},862{ACPI_DMT_FLAG2, ACPI_WSMT_FLAG_OFFSET (ProtectionFlags,0), "SYSTEM_RESOURCE_PROTECTION", 0},863ACPI_DMT_TERMINATOR864};865866867/*******************************************************************************868*869* XENV - Xen Environment table (ACPI 6.0)870*871******************************************************************************/872873ACPI_DMTABLE_INFO AcpiDmTableInfoXenv[] =874{875{ACPI_DMT_UINT64, ACPI_XENV_OFFSET (GrantTableAddress), "Grant Table Address", 0},876{ACPI_DMT_UINT64, ACPI_XENV_OFFSET (GrantTableSize), "Grant Table Size", 0},877{ACPI_DMT_UINT32, ACPI_XENV_OFFSET (EventInterrupt), "Event Interrupt", 0},878{ACPI_DMT_UINT8, ACPI_XENV_OFFSET (EventFlags), "Event Flags", 0},879ACPI_DMT_TERMINATOR880};881882883/*! [Begin] no source code translation */884885/*886* Generic types (used in UEFI and custom tables)887*888* Examples:889*890* Buffer : cc 04 ff bb891* UINT8 : 11892* UINT16 : 1122893* UINT24 : 112233894* UINT32 : 11223344895* UINT56 : 11223344556677896* UINT64 : 1122334455667788897*898* String : "This is string"899* Unicode : "This string encoded to Unicode"900*901* GUID : 11223344-5566-7788-99aa-bbccddeeff00902* DevicePath : "\PciRoot(0)\Pci(0x1f,1)\Usb(0,0)"903*/904905#define ACPI_DM_GENERIC_ENTRY(FieldType, FieldName) \906{{FieldType, 0, FieldName, 0}, ACPI_DMT_TERMINATOR}907908ACPI_DMTABLE_INFO AcpiDmTableInfoGeneric[][2] =909{910ACPI_DM_GENERIC_ENTRY (ACPI_DMT_UINT8, "UINT8"),911ACPI_DM_GENERIC_ENTRY (ACPI_DMT_UINT16, "UINT16"),912ACPI_DM_GENERIC_ENTRY (ACPI_DMT_UINT24, "UINT24"),913ACPI_DM_GENERIC_ENTRY (ACPI_DMT_UINT32, "UINT32"),914ACPI_DM_GENERIC_ENTRY (ACPI_DMT_UINT40, "UINT40"),915ACPI_DM_GENERIC_ENTRY (ACPI_DMT_UINT48, "UINT48"),916ACPI_DM_GENERIC_ENTRY (ACPI_DMT_UINT56, "UINT56"),917ACPI_DM_GENERIC_ENTRY (ACPI_DMT_UINT64, "UINT64"),918ACPI_DM_GENERIC_ENTRY (ACPI_DMT_STRING, "String"),919ACPI_DM_GENERIC_ENTRY (ACPI_DMT_UNICODE, "Unicode"),920ACPI_DM_GENERIC_ENTRY (ACPI_DMT_BUFFER, "Buffer"),921ACPI_DM_GENERIC_ENTRY (ACPI_DMT_BUF16, "BUF16"),922ACPI_DM_GENERIC_ENTRY (ACPI_DMT_UUID, "GUID"),923ACPI_DM_GENERIC_ENTRY (ACPI_DMT_STRING, "DevicePath"),924ACPI_DM_GENERIC_ENTRY (ACPI_DMT_LABEL, "Label"),925{ACPI_DMT_TERMINATOR}926};927/*! [End] no source code translation !*/928929930