Home | History | Annotate | Line # | Download | only in compiler
dtcompiler.h revision 1.1.1.18.6.1
      1           1.1    jruoho /******************************************************************************
      2           1.1    jruoho  *
      3           1.1    jruoho  * Module Name: dtcompiler.h - header for data table compiler
      4           1.1    jruoho  *
      5           1.1    jruoho  *****************************************************************************/
      6           1.1    jruoho 
      7       1.1.1.2    jruoho /*
      8  1.1.1.18.6.1   thorpej  * Copyright (C) 2000 - 2021, Intel Corp.
      9           1.1    jruoho  * All rights reserved.
     10           1.1    jruoho  *
     11       1.1.1.2    jruoho  * Redistribution and use in source and binary forms, with or without
     12       1.1.1.2    jruoho  * modification, are permitted provided that the following conditions
     13       1.1.1.2    jruoho  * are met:
     14       1.1.1.2    jruoho  * 1. Redistributions of source code must retain the above copyright
     15       1.1.1.2    jruoho  *    notice, this list of conditions, and the following disclaimer,
     16       1.1.1.2    jruoho  *    without modification.
     17       1.1.1.2    jruoho  * 2. Redistributions in binary form must reproduce at minimum a disclaimer
     18       1.1.1.2    jruoho  *    substantially similar to the "NO WARRANTY" disclaimer below
     19       1.1.1.2    jruoho  *    ("Disclaimer") and any redistribution must be conditioned upon
     20       1.1.1.2    jruoho  *    including a substantially similar Disclaimer requirement for further
     21       1.1.1.2    jruoho  *    binary redistribution.
     22       1.1.1.2    jruoho  * 3. Neither the names of the above-listed copyright holders nor the names
     23       1.1.1.2    jruoho  *    of any contributors may be used to endorse or promote products derived
     24       1.1.1.2    jruoho  *    from this software without specific prior written permission.
     25       1.1.1.2    jruoho  *
     26       1.1.1.2    jruoho  * Alternatively, this software may be distributed under the terms of the
     27       1.1.1.2    jruoho  * GNU General Public License ("GPL") version 2 as published by the Free
     28       1.1.1.2    jruoho  * Software Foundation.
     29       1.1.1.2    jruoho  *
     30       1.1.1.2    jruoho  * NO WARRANTY
     31       1.1.1.2    jruoho  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
     32       1.1.1.2    jruoho  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
     33  1.1.1.18.6.1   thorpej  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
     34       1.1.1.2    jruoho  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
     35       1.1.1.2    jruoho  * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     36       1.1.1.2    jruoho  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
     37       1.1.1.2    jruoho  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     38       1.1.1.2    jruoho  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
     39       1.1.1.2    jruoho  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
     40       1.1.1.2    jruoho  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     41       1.1.1.2    jruoho  * POSSIBILITY OF SUCH DAMAGES.
     42       1.1.1.2    jruoho  */
     43           1.1    jruoho 
     44           1.1    jruoho #define __DTCOMPILER_H__
     45           1.1    jruoho 
     46           1.1    jruoho #ifndef _DTCOMPILER
     47           1.1    jruoho #define _DTCOMPILER
     48           1.1    jruoho 
     49           1.1    jruoho #include "acdisasm.h"
     50           1.1    jruoho 
     51           1.1    jruoho 
     52       1.1.1.5  christos #define ASL_FIELD_CACHE_SIZE            512
     53       1.1.1.5  christos #define ASL_SUBTABLE_CACHE_SIZE         128
     54       1.1.1.5  christos 
     55       1.1.1.5  christos 
     56           1.1    jruoho #undef DT_EXTERN
     57           1.1    jruoho 
     58           1.1    jruoho #ifdef _DECLARE_DT_GLOBALS
     59           1.1    jruoho #define DT_EXTERN
     60           1.1    jruoho #define DT_INIT_GLOBAL(a,b)         (a)=(b)
     61           1.1    jruoho #else
     62           1.1    jruoho #define DT_EXTERN                   extern
     63           1.1    jruoho #define DT_INIT_GLOBAL(a,b)         (a)
     64           1.1    jruoho #endif
     65           1.1    jruoho 
     66           1.1    jruoho 
     67           1.1    jruoho /* Types for individual fields (one per input line) */
     68           1.1    jruoho 
     69           1.1    jruoho #define DT_FIELD_TYPE_STRING            0
     70           1.1    jruoho #define DT_FIELD_TYPE_INTEGER           1
     71           1.1    jruoho #define DT_FIELD_TYPE_BUFFER            2
     72           1.1    jruoho #define DT_FIELD_TYPE_PCI_PATH          3
     73           1.1    jruoho #define DT_FIELD_TYPE_FLAG              4
     74           1.1    jruoho #define DT_FIELD_TYPE_FLAGS_INTEGER     5
     75           1.1    jruoho #define DT_FIELD_TYPE_INLINE_SUBTABLE   6
     76       1.1.1.2    jruoho #define DT_FIELD_TYPE_UUID              7
     77       1.1.1.2    jruoho #define DT_FIELD_TYPE_UNICODE           8
     78       1.1.1.2    jruoho #define DT_FIELD_TYPE_DEVICE_PATH       9
     79       1.1.1.2    jruoho #define DT_FIELD_TYPE_LABEL             10
     80           1.1    jruoho 
     81           1.1    jruoho 
     82           1.1    jruoho /*
     83           1.1    jruoho  * Structure used for each individual field within an ACPI table
     84           1.1    jruoho  */
     85           1.1    jruoho typedef struct dt_field
     86           1.1    jruoho {
     87       1.1.1.6  christos     char                    *Name;       /* Field name (from name : value) */
     88       1.1.1.6  christos     char                    *Value;      /* Field value (from name : value) */
     89      1.1.1.16  christos     UINT32                  StringLength; /* Length of Value */
     90       1.1.1.6  christos     struct dt_field         *Next;       /* Next field */
     91       1.1.1.6  christos     struct dt_field         *NextLabel;  /* If field is a label, next label */
     92       1.1.1.6  christos     UINT32                  Line;        /* Line number for this field */
     93       1.1.1.6  christos     UINT32                  ByteOffset;  /* Offset in source file for field */
     94       1.1.1.6  christos     UINT32                  NameColumn;  /* Start column for field name */
     95       1.1.1.6  christos     UINT32                  Column;      /* Start column for field value */
     96       1.1.1.6  christos     UINT32                  TableOffset; /* Binary offset within ACPI table */
     97           1.1    jruoho     UINT8                   Flags;
     98           1.1    jruoho 
     99           1.1    jruoho } DT_FIELD;
    100           1.1    jruoho 
    101           1.1    jruoho /* Flags for above */
    102           1.1    jruoho 
    103           1.1    jruoho #define DT_FIELD_NOT_ALLOCATED      1
    104           1.1    jruoho 
    105      1.1.1.17  christos /*
    106      1.1.1.17  christos  * Structure used for each individual key or value
    107      1.1.1.17  christos  */
    108      1.1.1.17  christos typedef struct dt_table_unit
    109      1.1.1.17  christos {
    110      1.1.1.17  christos     char                    *Value;      /* Field value (from name : value) */
    111      1.1.1.17  christos     UINT32                  Line;        /* Line number for this field */
    112      1.1.1.17  christos     UINT32                  Column;      /* Start column for field value */
    113      1.1.1.17  christos 
    114      1.1.1.17  christos } DT_TABLE_UNIT;
    115      1.1.1.17  christos 
    116           1.1    jruoho 
    117           1.1    jruoho /*
    118           1.1    jruoho  * Structure used for individual subtables within an ACPI table
    119           1.1    jruoho  */
    120           1.1    jruoho typedef struct dt_subtable
    121           1.1    jruoho {
    122           1.1    jruoho     struct dt_subtable      *Parent;
    123           1.1    jruoho     struct dt_subtable      *Child;
    124           1.1    jruoho     struct dt_subtable      *Peer;
    125           1.1    jruoho     struct dt_subtable      *StackTop;
    126           1.1    jruoho     UINT8                   *Buffer;
    127           1.1    jruoho     UINT8                   *LengthField;
    128       1.1.1.7  christos     char                    *Name;
    129           1.1    jruoho     UINT32                  Length;
    130           1.1    jruoho     UINT32                  TotalLength;
    131           1.1    jruoho     UINT32                  SizeOfLengthField;
    132       1.1.1.4  christos     UINT16                  Depth;
    133           1.1    jruoho     UINT8                   Flags;
    134           1.1    jruoho 
    135           1.1    jruoho } DT_SUBTABLE;
    136           1.1    jruoho 
    137           1.1    jruoho 
    138           1.1    jruoho /*
    139           1.1    jruoho  * Globals
    140           1.1    jruoho  */
    141           1.1    jruoho 
    142           1.1    jruoho /* List of all field names and values from the input source */
    143           1.1    jruoho 
    144      1.1.1.14  christos DT_EXTERN DT_FIELD          DT_INIT_GLOBAL (*AslGbl_FieldList, NULL);
    145           1.1    jruoho 
    146           1.1    jruoho /* List of all compiled tables and subtables */
    147           1.1    jruoho 
    148      1.1.1.14  christos DT_EXTERN DT_SUBTABLE       DT_INIT_GLOBAL (*AslGbl_RootTable, NULL);
    149           1.1    jruoho 
    150           1.1    jruoho /* Stack for subtables */
    151           1.1    jruoho 
    152      1.1.1.14  christos DT_EXTERN DT_SUBTABLE       DT_INIT_GLOBAL (*AslGbl_SubtableStack, NULL);
    153           1.1    jruoho 
    154       1.1.1.2    jruoho /* List for defined labels */
    155       1.1.1.2    jruoho 
    156      1.1.1.14  christos DT_EXTERN DT_FIELD          DT_INIT_GLOBAL (*AslGbl_LabelList, NULL);
    157       1.1.1.2    jruoho 
    158       1.1.1.2    jruoho /* Current offset within the binary output table */
    159       1.1.1.2    jruoho 
    160      1.1.1.14  christos DT_EXTERN UINT32            DT_INIT_GLOBAL (AslGbl_CurrentTableOffset, 0);
    161       1.1.1.2    jruoho 
    162      1.1.1.16  christos /* Data table compiler Flex/Bison prototype */
    163      1.1.1.16  christos 
    164      1.1.1.16  christos DT_EXTERN BOOLEAN           DT_INIT_GLOBAL (AslGbl_DtLexBisonPrototype, FALSE);
    165      1.1.1.16  christos 
    166       1.1.1.5  christos /* Local caches */
    167       1.1.1.5  christos 
    168      1.1.1.14  christos DT_EXTERN UINT32            DT_INIT_GLOBAL (AslGbl_SubtableCount, 0);
    169      1.1.1.14  christos DT_EXTERN ASL_CACHE_INFO    DT_INIT_GLOBAL (*AslGbl_SubtableCacheList, NULL);
    170      1.1.1.14  christos DT_EXTERN DT_SUBTABLE       DT_INIT_GLOBAL (*AslGbl_SubtableCacheNext, NULL);
    171      1.1.1.14  christos DT_EXTERN DT_SUBTABLE       DT_INIT_GLOBAL (*AslGbl_SubtableCacheLast, NULL);
    172      1.1.1.14  christos 
    173      1.1.1.14  christos DT_EXTERN UINT32            DT_INIT_GLOBAL (AslGbl_FieldCount, 0);
    174      1.1.1.14  christos DT_EXTERN ASL_CACHE_INFO    DT_INIT_GLOBAL (*AslGbl_FieldCacheList, NULL);
    175      1.1.1.14  christos DT_EXTERN DT_FIELD          DT_INIT_GLOBAL (*AslGbl_FieldCacheNext, NULL);
    176      1.1.1.14  christos DT_EXTERN DT_FIELD          DT_INIT_GLOBAL (*AslGbl_FieldCacheLast, NULL);
    177       1.1.1.5  christos 
    178           1.1    jruoho 
    179           1.1    jruoho /* dtcompiler - main module */
    180           1.1    jruoho 
    181           1.1    jruoho ACPI_STATUS
    182           1.1    jruoho DtCompileTable (
    183           1.1    jruoho     DT_FIELD                **Field,
    184           1.1    jruoho     ACPI_DMTABLE_INFO       *Info,
    185      1.1.1.13  christos     DT_SUBTABLE             **RetSubtable);
    186           1.1    jruoho 
    187       1.1.1.7  christos ACPI_STATUS
    188       1.1.1.8  christos DtCompileTwoSubtables (
    189       1.1.1.8  christos     void                    **List,
    190       1.1.1.8  christos     ACPI_DMTABLE_INFO       *TableInfo1,
    191       1.1.1.8  christos     ACPI_DMTABLE_INFO       *TableInfo2);
    192       1.1.1.8  christos 
    193       1.1.1.8  christos ACPI_STATUS
    194       1.1.1.7  christos DtCompilePadding (
    195       1.1.1.7  christos     UINT32                  Length,
    196       1.1.1.7  christos     DT_SUBTABLE             **RetSubtable);
    197       1.1.1.7  christos 
    198           1.1    jruoho 
    199           1.1    jruoho /* dtio - binary and text input/output */
    200           1.1    jruoho 
    201       1.1.1.4  christos UINT32
    202       1.1.1.4  christos DtGetNextLine (
    203       1.1.1.7  christos     FILE                    *Handle,
    204       1.1.1.7  christos     UINT32                  Flags);
    205       1.1.1.7  christos 
    206       1.1.1.7  christos /* Flags for DtGetNextLine */
    207       1.1.1.7  christos 
    208       1.1.1.7  christos #define DT_ALLOW_MULTILINE_QUOTES   0x01
    209       1.1.1.7  christos 
    210       1.1.1.4  christos 
    211           1.1    jruoho DT_FIELD *
    212           1.1    jruoho DtScanFile (
    213           1.1    jruoho     FILE                    *Handle);
    214           1.1    jruoho 
    215           1.1    jruoho void
    216           1.1    jruoho DtOutputBinary (
    217           1.1    jruoho     DT_SUBTABLE             *RootTable);
    218           1.1    jruoho 
    219       1.1.1.2    jruoho void
    220       1.1.1.4  christos DtDumpSubtableList (
    221       1.1.1.4  christos     void);
    222       1.1.1.4  christos 
    223       1.1.1.4  christos void
    224       1.1.1.4  christos DtDumpFieldList (
    225       1.1.1.4  christos     DT_FIELD                *Field);
    226       1.1.1.4  christos 
    227       1.1.1.4  christos void
    228       1.1.1.2    jruoho DtWriteFieldToListing (
    229       1.1.1.2    jruoho     UINT8                   *Buffer,
    230       1.1.1.2    jruoho     DT_FIELD                *Field,
    231       1.1.1.2    jruoho     UINT32                  Length);
    232       1.1.1.2    jruoho 
    233       1.1.1.2    jruoho void
    234       1.1.1.2    jruoho DtWriteTableToListing (
    235       1.1.1.2    jruoho     void);
    236       1.1.1.2    jruoho 
    237           1.1    jruoho 
    238           1.1    jruoho /* dtsubtable - compile subtables */
    239           1.1    jruoho 
    240           1.1    jruoho void
    241           1.1    jruoho DtCreateSubtable (
    242           1.1    jruoho     UINT8                   *Buffer,
    243           1.1    jruoho     UINT32                  Length,
    244           1.1    jruoho     DT_SUBTABLE             **RetSubtable);
    245           1.1    jruoho 
    246           1.1    jruoho UINT32
    247           1.1    jruoho DtGetSubtableLength (
    248           1.1    jruoho     DT_FIELD                *Field,
    249           1.1    jruoho     ACPI_DMTABLE_INFO       *Info);
    250           1.1    jruoho 
    251           1.1    jruoho void
    252           1.1    jruoho DtSetSubtableLength (
    253           1.1    jruoho     DT_SUBTABLE             *Subtable);
    254           1.1    jruoho 
    255           1.1    jruoho void
    256           1.1    jruoho DtPushSubtable (
    257           1.1    jruoho     DT_SUBTABLE             *Subtable);
    258           1.1    jruoho 
    259           1.1    jruoho void
    260           1.1    jruoho DtPopSubtable (
    261           1.1    jruoho     void);
    262           1.1    jruoho 
    263           1.1    jruoho DT_SUBTABLE *
    264           1.1    jruoho DtPeekSubtable (
    265           1.1    jruoho     void);
    266           1.1    jruoho 
    267           1.1    jruoho void
    268           1.1    jruoho DtInsertSubtable (
    269           1.1    jruoho     DT_SUBTABLE             *ParentTable,
    270           1.1    jruoho     DT_SUBTABLE             *Subtable);
    271           1.1    jruoho 
    272           1.1    jruoho DT_SUBTABLE *
    273           1.1    jruoho DtGetNextSubtable (
    274           1.1    jruoho     DT_SUBTABLE             *ParentTable,
    275           1.1    jruoho     DT_SUBTABLE             *ChildTable);
    276           1.1    jruoho 
    277           1.1    jruoho DT_SUBTABLE *
    278           1.1    jruoho DtGetParentSubtable (
    279           1.1    jruoho     DT_SUBTABLE             *Subtable);
    280           1.1    jruoho 
    281           1.1    jruoho 
    282       1.1.1.2    jruoho /* dtexpress - Integer expressions and labels */
    283       1.1.1.2    jruoho 
    284       1.1.1.3    jruoho ACPI_STATUS
    285       1.1.1.2    jruoho DtResolveIntegerExpression (
    286       1.1.1.3    jruoho     DT_FIELD                *Field,
    287       1.1.1.3    jruoho     UINT64                  *ReturnValue);
    288       1.1.1.3    jruoho 
    289       1.1.1.3    jruoho UINT64
    290       1.1.1.3    jruoho DtDoOperator (
    291       1.1.1.3    jruoho     UINT64                  LeftValue,
    292       1.1.1.3    jruoho     UINT32                  Operator,
    293       1.1.1.3    jruoho     UINT64                  RightValue);
    294       1.1.1.3    jruoho 
    295       1.1.1.3    jruoho UINT64
    296       1.1.1.3    jruoho DtResolveLabel (
    297       1.1.1.3    jruoho     char                    *LabelString);
    298       1.1.1.2    jruoho 
    299       1.1.1.2    jruoho void
    300       1.1.1.2    jruoho DtDetectAllLabels (
    301       1.1.1.2    jruoho     DT_FIELD                *FieldList);
    302       1.1.1.2    jruoho 
    303       1.1.1.2    jruoho 
    304           1.1    jruoho /* dtfield - Compile individual fields within a table */
    305           1.1    jruoho 
    306           1.1    jruoho void
    307           1.1    jruoho DtCompileOneField (
    308           1.1    jruoho     UINT8                   *Buffer,
    309           1.1    jruoho     DT_FIELD                *Field,
    310           1.1    jruoho     UINT32                  ByteLength,
    311           1.1    jruoho     UINT8                   Type,
    312           1.1    jruoho     UINT8                   Flags);
    313           1.1    jruoho 
    314           1.1    jruoho void
    315           1.1    jruoho DtCompileInteger (
    316           1.1    jruoho     UINT8                   *Buffer,
    317           1.1    jruoho     DT_FIELD                *Field,
    318           1.1    jruoho     UINT32                  ByteLength,
    319           1.1    jruoho     UINT8                   Flags);
    320           1.1    jruoho 
    321           1.1    jruoho UINT32
    322           1.1    jruoho DtCompileBuffer (
    323           1.1    jruoho     UINT8                   *Buffer,
    324           1.1    jruoho     char                    *Value,
    325           1.1    jruoho     DT_FIELD                *Field,
    326           1.1    jruoho     UINT32                  ByteLength);
    327           1.1    jruoho 
    328       1.1.1.2    jruoho void
    329           1.1    jruoho DtCompileFlag (
    330           1.1    jruoho     UINT8                   *Buffer,
    331           1.1    jruoho     DT_FIELD                *Field,
    332       1.1.1.2    jruoho     ACPI_DMTABLE_INFO       *Info);
    333           1.1    jruoho 
    334           1.1    jruoho 
    335      1.1.1.17  christos /* dtfield - DT_FIELD operations */
    336      1.1.1.17  christos 
    337      1.1.1.17  christos void
    338      1.1.1.17  christos DtLinkField (
    339      1.1.1.17  christos     DT_FIELD                *Field);
    340      1.1.1.17  christos 
    341      1.1.1.17  christos void
    342      1.1.1.17  christos DtCreateField (
    343      1.1.1.17  christos     DT_TABLE_UNIT           *FieldKey,
    344      1.1.1.17  christos     DT_TABLE_UNIT           *FieldValue,
    345      1.1.1.17  christos     UINT32                  Offset);
    346      1.1.1.17  christos 
    347      1.1.1.17  christos DT_TABLE_UNIT *
    348      1.1.1.17  christos DtCreateTableUnit (
    349      1.1.1.17  christos     char                    *Data,
    350      1.1.1.17  christos     UINT32                  Line,
    351      1.1.1.17  christos     UINT32                  Column);
    352      1.1.1.17  christos 
    353      1.1.1.17  christos 
    354       1.1.1.3    jruoho /* dtparser - lex/yacc files */
    355       1.1.1.3    jruoho 
    356      1.1.1.16  christos int
    357      1.1.1.16  christos DtCompilerParserparse (
    358      1.1.1.16  christos     void);
    359      1.1.1.16  christos 
    360       1.1.1.3    jruoho UINT64
    361       1.1.1.3    jruoho DtEvaluateExpression (
    362       1.1.1.3    jruoho     char                    *ExprString);
    363       1.1.1.3    jruoho 
    364      1.1.1.16  christos void
    365      1.1.1.16  christos DtCompilerInitLexer (
    366      1.1.1.16  christos     FILE                    *inFile);
    367      1.1.1.16  christos 
    368      1.1.1.16  christos void
    369      1.1.1.16  christos DtCompilerTerminateLexer (
    370      1.1.1.16  christos     void);
    371      1.1.1.16  christos 
    372       1.1.1.3    jruoho int
    373       1.1.1.3    jruoho DtInitLexer (
    374       1.1.1.3    jruoho     char                    *String);
    375       1.1.1.3    jruoho 
    376       1.1.1.3    jruoho void
    377       1.1.1.3    jruoho DtTerminateLexer (
    378       1.1.1.3    jruoho     void);
    379       1.1.1.3    jruoho 
    380       1.1.1.3    jruoho char *
    381       1.1.1.3    jruoho DtGetOpName (
    382       1.1.1.3    jruoho     UINT32                  ParseOpcode);
    383       1.1.1.3    jruoho 
    384       1.1.1.3    jruoho 
    385           1.1    jruoho /* dtutils - Miscellaneous utilities */
    386           1.1    jruoho 
    387           1.1    jruoho typedef
    388           1.1    jruoho void (*DT_WALK_CALLBACK) (
    389           1.1    jruoho     DT_SUBTABLE             *Subtable,
    390           1.1    jruoho     void                    *Context,
    391           1.1    jruoho     void                    *ReturnValue);
    392           1.1    jruoho 
    393           1.1    jruoho void
    394           1.1    jruoho DtWalkTableTree (
    395           1.1    jruoho     DT_SUBTABLE             *StartTable,
    396           1.1    jruoho     DT_WALK_CALLBACK        UserFunction,
    397           1.1    jruoho     void                    *Context,
    398           1.1    jruoho     void                    *ReturnValue);
    399           1.1    jruoho 
    400           1.1    jruoho void
    401           1.1    jruoho DtError (
    402           1.1    jruoho     UINT8                   Level,
    403       1.1.1.5  christos     UINT16                  MessageId,
    404           1.1    jruoho     DT_FIELD                *FieldObject,
    405           1.1    jruoho     char                    *ExtraMessage);
    406           1.1    jruoho 
    407           1.1    jruoho void
    408           1.1    jruoho DtNameError (
    409           1.1    jruoho     UINT8                   Level,
    410       1.1.1.5  christos     UINT16                  MessageId,
    411           1.1    jruoho     DT_FIELD                *FieldObject,
    412           1.1    jruoho     char                    *ExtraMessage);
    413           1.1    jruoho 
    414           1.1    jruoho void
    415           1.1    jruoho DtFatal (
    416       1.1.1.5  christos     UINT16                  MessageId,
    417           1.1    jruoho     DT_FIELD                *FieldObject,
    418           1.1    jruoho     char                    *ExtraMessage);
    419           1.1    jruoho 
    420      1.1.1.11  christos UINT64
    421      1.1.1.11  christos DtDoConstant (
    422      1.1.1.11  christos     char                    *String);
    423      1.1.1.11  christos 
    424           1.1    jruoho char*
    425           1.1    jruoho DtGetFieldValue (
    426       1.1.1.3    jruoho     DT_FIELD                *Field);
    427           1.1    jruoho 
    428           1.1    jruoho UINT8
    429           1.1    jruoho DtGetFieldType (
    430           1.1    jruoho     ACPI_DMTABLE_INFO       *Info);
    431           1.1    jruoho 
    432           1.1    jruoho UINT32
    433           1.1    jruoho DtGetBufferLength (
    434           1.1    jruoho     char                    *Buffer);
    435           1.1    jruoho 
    436           1.1    jruoho UINT32
    437           1.1    jruoho DtGetFieldLength (
    438           1.1    jruoho     DT_FIELD                *Field,
    439           1.1    jruoho     ACPI_DMTABLE_INFO       *Info);
    440           1.1    jruoho 
    441           1.1    jruoho void
    442           1.1    jruoho DtSetTableChecksum (
    443           1.1    jruoho     UINT8                   *ChecksumPointer);
    444           1.1    jruoho 
    445           1.1    jruoho void
    446           1.1    jruoho DtSetTableLength(
    447           1.1    jruoho     void);
    448           1.1    jruoho 
    449           1.1    jruoho 
    450           1.1    jruoho /* dttable - individual table compilation */
    451           1.1    jruoho 
    452           1.1    jruoho ACPI_STATUS
    453           1.1    jruoho DtCompileFacs (
    454           1.1    jruoho     DT_FIELD                **PFieldList);
    455           1.1    jruoho 
    456           1.1    jruoho ACPI_STATUS
    457           1.1    jruoho DtCompileRsdp (
    458           1.1    jruoho     DT_FIELD                **PFieldList);
    459           1.1    jruoho 
    460           1.1    jruoho ACPI_STATUS
    461           1.1    jruoho DtCompileAsf (
    462           1.1    jruoho     void                    **PFieldList);
    463           1.1    jruoho 
    464           1.1    jruoho ACPI_STATUS
    465           1.1    jruoho DtCompileCpep (
    466           1.1    jruoho     void                    **PFieldList);
    467           1.1    jruoho 
    468           1.1    jruoho ACPI_STATUS
    469  1.1.1.18.6.1   thorpej DtCompileCedt (
    470  1.1.1.18.6.1   thorpej     void                    **PFieldList);
    471  1.1.1.18.6.1   thorpej 
    472  1.1.1.18.6.1   thorpej ACPI_STATUS
    473       1.1.1.4  christos DtCompileCsrt (
    474       1.1.1.4  christos     void                    **PFieldList);
    475       1.1.1.4  christos 
    476       1.1.1.4  christos ACPI_STATUS
    477       1.1.1.4  christos DtCompileDbg2 (
    478       1.1.1.4  christos     void                    **PFieldList);
    479       1.1.1.4  christos 
    480       1.1.1.4  christos ACPI_STATUS
    481           1.1    jruoho DtCompileDmar (
    482           1.1    jruoho     void                    **PFieldList);
    483           1.1    jruoho 
    484           1.1    jruoho ACPI_STATUS
    485       1.1.1.7  christos DtCompileDrtm (
    486       1.1.1.7  christos     void                    **PFieldList);
    487       1.1.1.7  christos 
    488       1.1.1.7  christos ACPI_STATUS
    489           1.1    jruoho DtCompileEinj (
    490           1.1    jruoho     void                    **PFieldList);
    491           1.1    jruoho 
    492           1.1    jruoho ACPI_STATUS
    493           1.1    jruoho DtCompileErst (
    494           1.1    jruoho     void                    **PFieldList);
    495           1.1    jruoho 
    496           1.1    jruoho ACPI_STATUS
    497           1.1    jruoho DtCompileFadt (
    498           1.1    jruoho     void                    **PFieldList);
    499           1.1    jruoho 
    500           1.1    jruoho ACPI_STATUS
    501       1.1.1.4  christos DtCompileFpdt (
    502       1.1.1.4  christos     void                    **PFieldList);
    503       1.1.1.4  christos 
    504       1.1.1.4  christos ACPI_STATUS
    505       1.1.1.5  christos DtCompileGtdt (
    506       1.1.1.5  christos     void                    **PFieldList);
    507       1.1.1.5  christos 
    508       1.1.1.5  christos ACPI_STATUS
    509           1.1    jruoho DtCompileHest (
    510           1.1    jruoho     void                    **PFieldList);
    511           1.1    jruoho 
    512           1.1    jruoho ACPI_STATUS
    513      1.1.1.11  christos DtCompileHmat (
    514      1.1.1.11  christos     void                    **PFieldList);
    515      1.1.1.11  christos 
    516      1.1.1.11  christos ACPI_STATUS
    517       1.1.1.7  christos DtCompileIort (
    518       1.1.1.7  christos     void                    **PFieldList);
    519       1.1.1.7  christos 
    520       1.1.1.7  christos ACPI_STATUS
    521           1.1    jruoho DtCompileIvrs (
    522           1.1    jruoho     void                    **PFieldList);
    523           1.1    jruoho 
    524           1.1    jruoho ACPI_STATUS
    525       1.1.1.5  christos DtCompileLpit (
    526       1.1.1.5  christos     void                    **PFieldList);
    527       1.1.1.5  christos 
    528       1.1.1.5  christos ACPI_STATUS
    529           1.1    jruoho DtCompileMadt (
    530           1.1    jruoho     void                    **PFieldList);
    531           1.1    jruoho 
    532           1.1    jruoho ACPI_STATUS
    533           1.1    jruoho DtCompileMcfg (
    534           1.1    jruoho     void                    **PFieldList);
    535           1.1    jruoho 
    536           1.1    jruoho ACPI_STATUS
    537       1.1.1.4  christos DtCompileMpst (
    538       1.1.1.4  christos     void                    **PFieldList);
    539       1.1.1.4  christos 
    540       1.1.1.4  christos ACPI_STATUS
    541           1.1    jruoho DtCompileMsct (
    542           1.1    jruoho     void                    **PFieldList);
    543           1.1    jruoho 
    544           1.1    jruoho ACPI_STATUS
    545       1.1.1.7  christos DtCompileNfit (
    546       1.1.1.7  christos     void                    **PFieldList);
    547       1.1.1.7  christos 
    548       1.1.1.7  christos ACPI_STATUS
    549      1.1.1.12  christos DtCompilePcct (
    550       1.1.1.4  christos     void                    **PFieldList);
    551       1.1.1.4  christos 
    552       1.1.1.4  christos ACPI_STATUS
    553      1.1.1.12  christos DtCompilePdtt (
    554      1.1.1.11  christos     void                    **PFieldList);
    555      1.1.1.11  christos 
    556      1.1.1.11  christos ACPI_STATUS
    557  1.1.1.18.6.1   thorpej DtCompilePhat (
    558  1.1.1.18.6.1   thorpej     void                    **PFieldList);
    559  1.1.1.18.6.1   thorpej 
    560  1.1.1.18.6.1   thorpej ACPI_STATUS
    561      1.1.1.12  christos DtCompilePmtt (
    562      1.1.1.12  christos     void                    **PFieldList);
    563      1.1.1.12  christos 
    564      1.1.1.12  christos ACPI_STATUS
    565      1.1.1.12  christos DtCompilePptt (
    566       1.1.1.4  christos     void                    **PFieldList);
    567       1.1.1.4  christos 
    568       1.1.1.4  christos ACPI_STATUS
    569           1.1    jruoho DtCompileRsdt (
    570           1.1    jruoho     void                    **PFieldList);
    571           1.1    jruoho 
    572           1.1    jruoho ACPI_STATUS
    573       1.1.1.4  christos DtCompileS3pt (
    574       1.1.1.4  christos     DT_FIELD                **PFieldList);
    575       1.1.1.4  christos 
    576       1.1.1.4  christos ACPI_STATUS
    577      1.1.1.12  christos DtCompileSdev (
    578      1.1.1.12  christos     void                    **PFieldList);
    579      1.1.1.12  christos 
    580      1.1.1.12  christos ACPI_STATUS
    581       1.1.1.3    jruoho DtCompileSlic (
    582       1.1.1.3    jruoho     void                    **PFieldList);
    583       1.1.1.3    jruoho 
    584       1.1.1.3    jruoho ACPI_STATUS
    585           1.1    jruoho DtCompileSlit (
    586           1.1    jruoho     void                    **PFieldList);
    587           1.1    jruoho 
    588           1.1    jruoho ACPI_STATUS
    589           1.1    jruoho DtCompileSrat (
    590           1.1    jruoho     void                    **PFieldList);
    591           1.1    jruoho 
    592           1.1    jruoho ACPI_STATUS
    593       1.1.1.7  christos DtCompileStao (
    594       1.1.1.7  christos     void                    **PFieldList);
    595       1.1.1.7  christos 
    596       1.1.1.7  christos ACPI_STATUS
    597       1.1.1.7  christos DtCompileTcpa (
    598       1.1.1.7  christos     void                    **PFieldList);
    599       1.1.1.7  christos 
    600       1.1.1.7  christos ACPI_STATUS
    601      1.1.1.12  christos DtCompileTpm2 (
    602      1.1.1.12  christos     void                    **PFieldList);
    603      1.1.1.12  christos 
    604      1.1.1.12  christos ACPI_STATUS
    605       1.1.1.2    jruoho DtCompileUefi (
    606       1.1.1.2    jruoho     void                    **PFieldList);
    607       1.1.1.2    jruoho 
    608       1.1.1.2    jruoho ACPI_STATUS
    609  1.1.1.18.6.1   thorpej DtCompileViot (
    610       1.1.1.4  christos     void                    **PFieldList);
    611       1.1.1.4  christos 
    612       1.1.1.4  christos ACPI_STATUS
    613           1.1    jruoho DtCompileWdat (
    614           1.1    jruoho     void                    **PFieldList);
    615           1.1    jruoho 
    616           1.1    jruoho ACPI_STATUS
    617       1.1.1.7  christos DtCompileWpbt (
    618       1.1.1.7  christos     void                    **PFieldList);
    619       1.1.1.7  christos 
    620       1.1.1.7  christos ACPI_STATUS
    621           1.1    jruoho DtCompileXsdt (
    622           1.1    jruoho     void                    **PFieldList);
    623           1.1    jruoho 
    624       1.1.1.3    jruoho ACPI_STATUS
    625       1.1.1.3    jruoho DtCompileGeneric (
    626       1.1.1.7  christos     void                    **PFieldList,
    627       1.1.1.7  christos     char                    *TermFieldName,
    628       1.1.1.7  christos     UINT32                  *PFieldLength);
    629       1.1.1.3    jruoho 
    630       1.1.1.2    jruoho ACPI_DMTABLE_INFO *
    631       1.1.1.2    jruoho DtGetGenericTableInfo (
    632       1.1.1.2    jruoho     char                    *Name);
    633           1.1    jruoho 
    634       1.1.1.2    jruoho /* ACPI Table templates */
    635           1.1    jruoho 
    636       1.1.1.2    jruoho extern const unsigned char  TemplateAsf[];
    637       1.1.1.2    jruoho extern const unsigned char  TemplateBoot[];
    638       1.1.1.2    jruoho extern const unsigned char  TemplateBert[];
    639       1.1.1.4  christos extern const unsigned char  TemplateBgrt[];
    640  1.1.1.18.6.1   thorpej extern const unsigned char  TemplateCedt[];
    641       1.1.1.2    jruoho extern const unsigned char  TemplateCpep[];
    642       1.1.1.4  christos extern const unsigned char  TemplateCsrt[];
    643       1.1.1.4  christos extern const unsigned char  TemplateDbg2[];
    644       1.1.1.2    jruoho extern const unsigned char  TemplateDbgp[];
    645       1.1.1.2    jruoho extern const unsigned char  TemplateDmar[];
    646       1.1.1.7  christos extern const unsigned char  TemplateDrtm[];
    647       1.1.1.2    jruoho extern const unsigned char  TemplateEcdt[];
    648       1.1.1.2    jruoho extern const unsigned char  TemplateEinj[];
    649       1.1.1.2    jruoho extern const unsigned char  TemplateErst[];
    650       1.1.1.2    jruoho extern const unsigned char  TemplateFadt[];
    651       1.1.1.4  christos extern const unsigned char  TemplateFpdt[];
    652       1.1.1.4  christos extern const unsigned char  TemplateGtdt[];
    653       1.1.1.2    jruoho extern const unsigned char  TemplateHest[];
    654      1.1.1.11  christos extern const unsigned char  TemplateHmat[];
    655       1.1.1.2    jruoho extern const unsigned char  TemplateHpet[];
    656       1.1.1.7  christos extern const unsigned char  TemplateIort[];
    657       1.1.1.2    jruoho extern const unsigned char  TemplateIvrs[];
    658       1.1.1.5  christos extern const unsigned char  TemplateLpit[];
    659       1.1.1.2    jruoho extern const unsigned char  TemplateMadt[];
    660       1.1.1.2    jruoho extern const unsigned char  TemplateMcfg[];
    661       1.1.1.2    jruoho extern const unsigned char  TemplateMchi[];
    662       1.1.1.4  christos extern const unsigned char  TemplateMpst[];
    663       1.1.1.2    jruoho extern const unsigned char  TemplateMsct[];
    664       1.1.1.6  christos extern const unsigned char  TemplateMsdm[];
    665       1.1.1.7  christos extern const unsigned char  TemplateNfit[];
    666       1.1.1.4  christos extern const unsigned char  TemplatePcct[];
    667      1.1.1.12  christos extern const unsigned char  TemplatePdtt[];
    668  1.1.1.18.6.1   thorpej extern const unsigned char  TemplatePhat[];
    669       1.1.1.4  christos extern const unsigned char  TemplatePmtt[];
    670      1.1.1.11  christos extern const unsigned char  TemplatePptt[];
    671       1.1.1.9  christos extern const unsigned char  TemplateRasf[];
    672       1.1.1.2    jruoho extern const unsigned char  TemplateRsdt[];
    673       1.1.1.4  christos extern const unsigned char  TemplateS3pt[];
    674       1.1.1.2    jruoho extern const unsigned char  TemplateSbst[];
    675      1.1.1.11  christos extern const unsigned char  TemplateSdei[];
    676      1.1.1.12  christos extern const unsigned char  TemplateSdev[];
    677       1.1.1.2    jruoho extern const unsigned char  TemplateSlic[];
    678       1.1.1.2    jruoho extern const unsigned char  TemplateSlit[];
    679       1.1.1.2    jruoho extern const unsigned char  TemplateSpcr[];
    680       1.1.1.2    jruoho extern const unsigned char  TemplateSpmi[];
    681       1.1.1.2    jruoho extern const unsigned char  TemplateSrat[];
    682       1.1.1.7  christos extern const unsigned char  TemplateStao[];
    683       1.1.1.2    jruoho extern const unsigned char  TemplateTcpa[];
    684       1.1.1.4  christos extern const unsigned char  TemplateTpm2[];
    685       1.1.1.2    jruoho extern const unsigned char  TemplateUefi[];
    686  1.1.1.18.6.1   thorpej extern const unsigned char  TemplateViot[];
    687       1.1.1.2    jruoho extern const unsigned char  TemplateWaet[];
    688       1.1.1.2    jruoho extern const unsigned char  TemplateWdat[];
    689       1.1.1.2    jruoho extern const unsigned char  TemplateWddt[];
    690       1.1.1.2    jruoho extern const unsigned char  TemplateWdrt[];
    691       1.1.1.7  christos extern const unsigned char  TemplateWpbt[];
    692      1.1.1.11  christos extern const unsigned char  TemplateWsmt[];
    693       1.1.1.7  christos extern const unsigned char  TemplateXenv[];
    694       1.1.1.2    jruoho extern const unsigned char  TemplateXsdt[];
    695           1.1    jruoho 
    696           1.1    jruoho #endif
    697