Home | History | Annotate | Line # | Download | only in compiler
dtcompiler.h revision 1.1.1.5.2.2
      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.5.2.1     skrll  * Copyright (C) 2000 - 2015, 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.2    jruoho  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY 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 <stdio.h>
     50          1.1    jruoho #include "acdisasm.h"
     51          1.1    jruoho 
     52          1.1    jruoho 
     53      1.1.1.5  christos #define ASL_FIELD_CACHE_SIZE            512
     54      1.1.1.5  christos #define ASL_SUBTABLE_CACHE_SIZE         128
     55      1.1.1.5  christos 
     56      1.1.1.5  christos 
     57          1.1    jruoho #undef DT_EXTERN
     58          1.1    jruoho 
     59          1.1    jruoho #ifdef _DECLARE_DT_GLOBALS
     60          1.1    jruoho #define DT_EXTERN
     61          1.1    jruoho #define DT_INIT_GLOBAL(a,b)         (a)=(b)
     62          1.1    jruoho #else
     63          1.1    jruoho #define DT_EXTERN                   extern
     64          1.1    jruoho #define DT_INIT_GLOBAL(a,b)         (a)
     65          1.1    jruoho #endif
     66          1.1    jruoho 
     67          1.1    jruoho 
     68          1.1    jruoho /* Types for individual fields (one per input line) */
     69          1.1    jruoho 
     70          1.1    jruoho #define DT_FIELD_TYPE_STRING            0
     71          1.1    jruoho #define DT_FIELD_TYPE_INTEGER           1
     72          1.1    jruoho #define DT_FIELD_TYPE_BUFFER            2
     73          1.1    jruoho #define DT_FIELD_TYPE_PCI_PATH          3
     74          1.1    jruoho #define DT_FIELD_TYPE_FLAG              4
     75          1.1    jruoho #define DT_FIELD_TYPE_FLAGS_INTEGER     5
     76          1.1    jruoho #define DT_FIELD_TYPE_INLINE_SUBTABLE   6
     77      1.1.1.2    jruoho #define DT_FIELD_TYPE_UUID              7
     78      1.1.1.2    jruoho #define DT_FIELD_TYPE_UNICODE           8
     79      1.1.1.2    jruoho #define DT_FIELD_TYPE_DEVICE_PATH       9
     80      1.1.1.2    jruoho #define DT_FIELD_TYPE_LABEL             10
     81          1.1    jruoho 
     82          1.1    jruoho 
     83          1.1    jruoho /*
     84          1.1    jruoho  * Structure used for each individual field within an ACPI table
     85          1.1    jruoho  */
     86          1.1    jruoho typedef struct dt_field
     87          1.1    jruoho {
     88  1.1.1.5.2.1     skrll     char                    *Name;       /* Field name (from name : value) */
     89  1.1.1.5.2.1     skrll     char                    *Value;      /* Field value (from name : value) */
     90  1.1.1.5.2.1     skrll     UINT32                  StringLength;/* Length of Value */
     91  1.1.1.5.2.1     skrll     struct dt_field         *Next;       /* Next field */
     92  1.1.1.5.2.1     skrll     struct dt_field         *NextLabel;  /* If field is a label, next label */
     93  1.1.1.5.2.1     skrll     UINT32                  Line;        /* Line number for this field */
     94  1.1.1.5.2.1     skrll     UINT32                  ByteOffset;  /* Offset in source file for field */
     95  1.1.1.5.2.1     skrll     UINT32                  NameColumn;  /* Start column for field name */
     96  1.1.1.5.2.1     skrll     UINT32                  Column;      /* Start column for field value */
     97  1.1.1.5.2.1     skrll     UINT32                  TableOffset; /* Binary offset within ACPI table */
     98          1.1    jruoho     UINT8                   Flags;
     99          1.1    jruoho 
    100          1.1    jruoho } DT_FIELD;
    101          1.1    jruoho 
    102          1.1    jruoho /* Flags for above */
    103          1.1    jruoho 
    104          1.1    jruoho #define DT_FIELD_NOT_ALLOCATED      1
    105          1.1    jruoho 
    106          1.1    jruoho 
    107          1.1    jruoho /*
    108          1.1    jruoho  * Structure used for individual subtables within an ACPI table
    109          1.1    jruoho  */
    110          1.1    jruoho typedef struct dt_subtable
    111          1.1    jruoho {
    112          1.1    jruoho     struct dt_subtable      *Parent;
    113          1.1    jruoho     struct dt_subtable      *Child;
    114          1.1    jruoho     struct dt_subtable      *Peer;
    115          1.1    jruoho     struct dt_subtable      *StackTop;
    116          1.1    jruoho     UINT8                   *Buffer;
    117          1.1    jruoho     UINT8                   *LengthField;
    118  1.1.1.5.2.2     skrll     char                    *Name;
    119          1.1    jruoho     UINT32                  Length;
    120          1.1    jruoho     UINT32                  TotalLength;
    121          1.1    jruoho     UINT32                  SizeOfLengthField;
    122      1.1.1.4  christos     UINT16                  Depth;
    123          1.1    jruoho     UINT8                   Flags;
    124          1.1    jruoho 
    125          1.1    jruoho } DT_SUBTABLE;
    126          1.1    jruoho 
    127          1.1    jruoho 
    128          1.1    jruoho /*
    129          1.1    jruoho  * Globals
    130          1.1    jruoho  */
    131          1.1    jruoho 
    132          1.1    jruoho /* List of all field names and values from the input source */
    133          1.1    jruoho 
    134          1.1    jruoho DT_EXTERN DT_FIELD          DT_INIT_GLOBAL (*Gbl_FieldList, NULL);
    135          1.1    jruoho 
    136          1.1    jruoho /* List of all compiled tables and subtables */
    137          1.1    jruoho 
    138          1.1    jruoho DT_EXTERN DT_SUBTABLE       DT_INIT_GLOBAL (*Gbl_RootTable, NULL);
    139          1.1    jruoho 
    140          1.1    jruoho /* Stack for subtables */
    141          1.1    jruoho 
    142          1.1    jruoho DT_EXTERN DT_SUBTABLE       DT_INIT_GLOBAL (*Gbl_SubtableStack, NULL);
    143          1.1    jruoho 
    144      1.1.1.2    jruoho /* List for defined labels */
    145      1.1.1.2    jruoho 
    146      1.1.1.2    jruoho DT_EXTERN DT_FIELD          DT_INIT_GLOBAL (*Gbl_LabelList, NULL);
    147      1.1.1.2    jruoho 
    148      1.1.1.2    jruoho /* Current offset within the binary output table */
    149      1.1.1.2    jruoho 
    150      1.1.1.2    jruoho DT_EXTERN UINT32            DT_INIT_GLOBAL (Gbl_CurrentTableOffset, 0);
    151      1.1.1.2    jruoho 
    152      1.1.1.5  christos /* Local caches */
    153      1.1.1.5  christos 
    154      1.1.1.5  christos DT_EXTERN UINT32            DT_INIT_GLOBAL (Gbl_SubtableCount, 0);
    155      1.1.1.5  christos DT_EXTERN ASL_CACHE_INFO    DT_INIT_GLOBAL (*Gbl_SubtableCacheList, NULL);
    156      1.1.1.5  christos DT_EXTERN DT_SUBTABLE       DT_INIT_GLOBAL (*Gbl_SubtableCacheNext, NULL);
    157      1.1.1.5  christos DT_EXTERN DT_SUBTABLE       DT_INIT_GLOBAL (*Gbl_SubtableCacheLast, NULL);
    158      1.1.1.5  christos 
    159      1.1.1.5  christos DT_EXTERN UINT32            DT_INIT_GLOBAL (Gbl_FieldCount, 0);
    160      1.1.1.5  christos DT_EXTERN ASL_CACHE_INFO    DT_INIT_GLOBAL (*Gbl_FieldCacheList, NULL);
    161      1.1.1.5  christos DT_EXTERN DT_FIELD          DT_INIT_GLOBAL (*Gbl_FieldCacheNext, NULL);
    162      1.1.1.5  christos DT_EXTERN DT_FIELD          DT_INIT_GLOBAL (*Gbl_FieldCacheLast, NULL);
    163      1.1.1.5  christos 
    164          1.1    jruoho 
    165          1.1    jruoho /* dtcompiler - main module */
    166          1.1    jruoho 
    167          1.1    jruoho ACPI_STATUS
    168          1.1    jruoho DtCompileTable (
    169          1.1    jruoho     DT_FIELD                **Field,
    170          1.1    jruoho     ACPI_DMTABLE_INFO       *Info,
    171          1.1    jruoho     DT_SUBTABLE             **RetSubtable,
    172          1.1    jruoho     BOOLEAN                 Required);
    173          1.1    jruoho 
    174  1.1.1.5.2.2     skrll ACPI_STATUS
    175  1.1.1.5.2.2     skrll DtCompilePadding (
    176  1.1.1.5.2.2     skrll     UINT32                  Length,
    177  1.1.1.5.2.2     skrll     DT_SUBTABLE             **RetSubtable);
    178  1.1.1.5.2.2     skrll 
    179          1.1    jruoho 
    180          1.1    jruoho /* dtio - binary and text input/output */
    181          1.1    jruoho 
    182      1.1.1.4  christos UINT32
    183      1.1.1.4  christos DtGetNextLine (
    184  1.1.1.5.2.2     skrll     FILE                    *Handle,
    185  1.1.1.5.2.2     skrll     UINT32                  Flags);
    186  1.1.1.5.2.2     skrll 
    187  1.1.1.5.2.2     skrll /* Flags for DtGetNextLine */
    188  1.1.1.5.2.2     skrll 
    189  1.1.1.5.2.2     skrll #define DT_ALLOW_MULTILINE_QUOTES   0x01
    190  1.1.1.5.2.2     skrll 
    191      1.1.1.4  christos 
    192          1.1    jruoho DT_FIELD *
    193          1.1    jruoho DtScanFile (
    194          1.1    jruoho     FILE                    *Handle);
    195          1.1    jruoho 
    196          1.1    jruoho void
    197          1.1    jruoho DtOutputBinary (
    198          1.1    jruoho     DT_SUBTABLE             *RootTable);
    199          1.1    jruoho 
    200      1.1.1.2    jruoho void
    201      1.1.1.4  christos DtDumpSubtableList (
    202      1.1.1.4  christos     void);
    203      1.1.1.4  christos 
    204      1.1.1.4  christos void
    205      1.1.1.4  christos DtDumpFieldList (
    206      1.1.1.4  christos     DT_FIELD                *Field);
    207      1.1.1.4  christos 
    208      1.1.1.4  christos void
    209      1.1.1.2    jruoho DtWriteFieldToListing (
    210      1.1.1.2    jruoho     UINT8                   *Buffer,
    211      1.1.1.2    jruoho     DT_FIELD                *Field,
    212      1.1.1.2    jruoho     UINT32                  Length);
    213      1.1.1.2    jruoho 
    214      1.1.1.2    jruoho void
    215      1.1.1.2    jruoho DtWriteTableToListing (
    216      1.1.1.2    jruoho     void);
    217      1.1.1.2    jruoho 
    218          1.1    jruoho 
    219          1.1    jruoho /* dtsubtable - compile subtables */
    220          1.1    jruoho 
    221          1.1    jruoho void
    222          1.1    jruoho DtCreateSubtable (
    223          1.1    jruoho     UINT8                   *Buffer,
    224          1.1    jruoho     UINT32                  Length,
    225          1.1    jruoho     DT_SUBTABLE             **RetSubtable);
    226          1.1    jruoho 
    227          1.1    jruoho UINT32
    228          1.1    jruoho DtGetSubtableLength (
    229          1.1    jruoho     DT_FIELD                *Field,
    230          1.1    jruoho     ACPI_DMTABLE_INFO       *Info);
    231          1.1    jruoho 
    232          1.1    jruoho void
    233          1.1    jruoho DtSetSubtableLength (
    234          1.1    jruoho     DT_SUBTABLE             *Subtable);
    235          1.1    jruoho 
    236          1.1    jruoho void
    237          1.1    jruoho DtPushSubtable (
    238          1.1    jruoho     DT_SUBTABLE             *Subtable);
    239          1.1    jruoho 
    240          1.1    jruoho void
    241          1.1    jruoho DtPopSubtable (
    242          1.1    jruoho     void);
    243          1.1    jruoho 
    244          1.1    jruoho DT_SUBTABLE *
    245          1.1    jruoho DtPeekSubtable (
    246          1.1    jruoho     void);
    247          1.1    jruoho 
    248          1.1    jruoho void
    249          1.1    jruoho DtInsertSubtable (
    250          1.1    jruoho     DT_SUBTABLE             *ParentTable,
    251          1.1    jruoho     DT_SUBTABLE             *Subtable);
    252          1.1    jruoho 
    253          1.1    jruoho DT_SUBTABLE *
    254          1.1    jruoho DtGetNextSubtable (
    255          1.1    jruoho     DT_SUBTABLE             *ParentTable,
    256          1.1    jruoho     DT_SUBTABLE             *ChildTable);
    257          1.1    jruoho 
    258          1.1    jruoho DT_SUBTABLE *
    259          1.1    jruoho DtGetParentSubtable (
    260          1.1    jruoho     DT_SUBTABLE             *Subtable);
    261          1.1    jruoho 
    262          1.1    jruoho 
    263      1.1.1.2    jruoho /* dtexpress - Integer expressions and labels */
    264      1.1.1.2    jruoho 
    265      1.1.1.3    jruoho ACPI_STATUS
    266      1.1.1.2    jruoho DtResolveIntegerExpression (
    267      1.1.1.3    jruoho     DT_FIELD                *Field,
    268      1.1.1.3    jruoho     UINT64                  *ReturnValue);
    269      1.1.1.3    jruoho 
    270      1.1.1.3    jruoho UINT64
    271      1.1.1.3    jruoho DtDoOperator (
    272      1.1.1.3    jruoho     UINT64                  LeftValue,
    273      1.1.1.3    jruoho     UINT32                  Operator,
    274      1.1.1.3    jruoho     UINT64                  RightValue);
    275      1.1.1.3    jruoho 
    276      1.1.1.3    jruoho UINT64
    277      1.1.1.3    jruoho DtResolveLabel (
    278      1.1.1.3    jruoho     char                    *LabelString);
    279      1.1.1.2    jruoho 
    280      1.1.1.2    jruoho void
    281      1.1.1.2    jruoho DtDetectAllLabels (
    282      1.1.1.2    jruoho     DT_FIELD                *FieldList);
    283      1.1.1.2    jruoho 
    284      1.1.1.2    jruoho 
    285          1.1    jruoho /* dtfield - Compile individual fields within a table */
    286          1.1    jruoho 
    287          1.1    jruoho void
    288          1.1    jruoho DtCompileOneField (
    289          1.1    jruoho     UINT8                   *Buffer,
    290          1.1    jruoho     DT_FIELD                *Field,
    291          1.1    jruoho     UINT32                  ByteLength,
    292          1.1    jruoho     UINT8                   Type,
    293          1.1    jruoho     UINT8                   Flags);
    294          1.1    jruoho 
    295          1.1    jruoho void
    296          1.1    jruoho DtCompileInteger (
    297          1.1    jruoho     UINT8                   *Buffer,
    298          1.1    jruoho     DT_FIELD                *Field,
    299          1.1    jruoho     UINT32                  ByteLength,
    300          1.1    jruoho     UINT8                   Flags);
    301          1.1    jruoho 
    302          1.1    jruoho UINT32
    303          1.1    jruoho DtCompileBuffer (
    304          1.1    jruoho     UINT8                   *Buffer,
    305          1.1    jruoho     char                    *Value,
    306          1.1    jruoho     DT_FIELD                *Field,
    307          1.1    jruoho     UINT32                  ByteLength);
    308          1.1    jruoho 
    309      1.1.1.2    jruoho void
    310          1.1    jruoho DtCompileFlag (
    311          1.1    jruoho     UINT8                   *Buffer,
    312          1.1    jruoho     DT_FIELD                *Field,
    313      1.1.1.2    jruoho     ACPI_DMTABLE_INFO       *Info);
    314          1.1    jruoho 
    315          1.1    jruoho 
    316      1.1.1.3    jruoho /* dtparser - lex/yacc files */
    317      1.1.1.3    jruoho 
    318      1.1.1.3    jruoho UINT64
    319      1.1.1.3    jruoho DtEvaluateExpression (
    320      1.1.1.3    jruoho     char                    *ExprString);
    321      1.1.1.3    jruoho 
    322      1.1.1.3    jruoho int
    323      1.1.1.3    jruoho DtInitLexer (
    324      1.1.1.3    jruoho     char                    *String);
    325      1.1.1.3    jruoho 
    326      1.1.1.3    jruoho void
    327      1.1.1.3    jruoho DtTerminateLexer (
    328      1.1.1.3    jruoho     void);
    329      1.1.1.3    jruoho 
    330      1.1.1.3    jruoho char *
    331      1.1.1.3    jruoho DtGetOpName (
    332      1.1.1.3    jruoho     UINT32                  ParseOpcode);
    333      1.1.1.3    jruoho 
    334      1.1.1.3    jruoho 
    335          1.1    jruoho /* dtutils - Miscellaneous utilities */
    336          1.1    jruoho 
    337          1.1    jruoho typedef
    338          1.1    jruoho void (*DT_WALK_CALLBACK) (
    339          1.1    jruoho     DT_SUBTABLE             *Subtable,
    340          1.1    jruoho     void                    *Context,
    341          1.1    jruoho     void                    *ReturnValue);
    342          1.1    jruoho 
    343          1.1    jruoho void
    344          1.1    jruoho DtWalkTableTree (
    345          1.1    jruoho     DT_SUBTABLE             *StartTable,
    346          1.1    jruoho     DT_WALK_CALLBACK        UserFunction,
    347          1.1    jruoho     void                    *Context,
    348          1.1    jruoho     void                    *ReturnValue);
    349          1.1    jruoho 
    350          1.1    jruoho void
    351          1.1    jruoho DtError (
    352          1.1    jruoho     UINT8                   Level,
    353      1.1.1.5  christos     UINT16                  MessageId,
    354          1.1    jruoho     DT_FIELD                *FieldObject,
    355          1.1    jruoho     char                    *ExtraMessage);
    356          1.1    jruoho 
    357          1.1    jruoho void
    358          1.1    jruoho DtNameError (
    359          1.1    jruoho     UINT8                   Level,
    360      1.1.1.5  christos     UINT16                  MessageId,
    361          1.1    jruoho     DT_FIELD                *FieldObject,
    362          1.1    jruoho     char                    *ExtraMessage);
    363          1.1    jruoho 
    364          1.1    jruoho void
    365          1.1    jruoho DtFatal (
    366      1.1.1.5  christos     UINT16                  MessageId,
    367          1.1    jruoho     DT_FIELD                *FieldObject,
    368          1.1    jruoho     char                    *ExtraMessage);
    369          1.1    jruoho 
    370          1.1    jruoho ACPI_STATUS
    371          1.1    jruoho DtStrtoul64 (
    372          1.1    jruoho     char                    *String,
    373          1.1    jruoho     UINT64                  *ReturnInteger);
    374          1.1    jruoho 
    375          1.1    jruoho char*
    376          1.1    jruoho DtGetFieldValue (
    377      1.1.1.3    jruoho     DT_FIELD                *Field);
    378          1.1    jruoho 
    379          1.1    jruoho UINT8
    380          1.1    jruoho DtGetFieldType (
    381          1.1    jruoho     ACPI_DMTABLE_INFO       *Info);
    382          1.1    jruoho 
    383          1.1    jruoho UINT32
    384          1.1    jruoho DtGetBufferLength (
    385          1.1    jruoho     char                    *Buffer);
    386          1.1    jruoho 
    387          1.1    jruoho UINT32
    388          1.1    jruoho DtGetFieldLength (
    389          1.1    jruoho     DT_FIELD                *Field,
    390          1.1    jruoho     ACPI_DMTABLE_INFO       *Info);
    391          1.1    jruoho 
    392          1.1    jruoho void
    393          1.1    jruoho DtSetTableChecksum (
    394          1.1    jruoho     UINT8                   *ChecksumPointer);
    395          1.1    jruoho 
    396          1.1    jruoho void
    397          1.1    jruoho DtSetTableLength(
    398          1.1    jruoho     void);
    399          1.1    jruoho 
    400      1.1.1.5  christos DT_SUBTABLE *
    401      1.1.1.5  christos UtSubtableCacheCalloc (
    402      1.1.1.5  christos     void);
    403      1.1.1.5  christos 
    404      1.1.1.5  christos DT_FIELD *
    405      1.1.1.5  christos UtFieldCacheCalloc (
    406      1.1.1.5  christos     void);
    407      1.1.1.5  christos 
    408          1.1    jruoho void
    409      1.1.1.5  christos DtDeleteCaches (
    410          1.1    jruoho     void);
    411          1.1    jruoho 
    412          1.1    jruoho 
    413          1.1    jruoho /* dttable - individual table compilation */
    414          1.1    jruoho 
    415          1.1    jruoho ACPI_STATUS
    416          1.1    jruoho DtCompileFacs (
    417          1.1    jruoho     DT_FIELD                **PFieldList);
    418          1.1    jruoho 
    419          1.1    jruoho ACPI_STATUS
    420          1.1    jruoho DtCompileRsdp (
    421          1.1    jruoho     DT_FIELD                **PFieldList);
    422          1.1    jruoho 
    423          1.1    jruoho ACPI_STATUS
    424          1.1    jruoho DtCompileAsf (
    425          1.1    jruoho     void                    **PFieldList);
    426          1.1    jruoho 
    427          1.1    jruoho ACPI_STATUS
    428          1.1    jruoho DtCompileCpep (
    429          1.1    jruoho     void                    **PFieldList);
    430          1.1    jruoho 
    431          1.1    jruoho ACPI_STATUS
    432      1.1.1.4  christos DtCompileCsrt (
    433      1.1.1.4  christos     void                    **PFieldList);
    434      1.1.1.4  christos 
    435      1.1.1.4  christos ACPI_STATUS
    436      1.1.1.4  christos DtCompileDbg2 (
    437      1.1.1.4  christos     void                    **PFieldList);
    438      1.1.1.4  christos 
    439      1.1.1.4  christos ACPI_STATUS
    440          1.1    jruoho DtCompileDmar (
    441          1.1    jruoho     void                    **PFieldList);
    442          1.1    jruoho 
    443          1.1    jruoho ACPI_STATUS
    444  1.1.1.5.2.2     skrll DtCompileDrtm (
    445  1.1.1.5.2.2     skrll     void                    **PFieldList);
    446  1.1.1.5.2.2     skrll 
    447  1.1.1.5.2.2     skrll ACPI_STATUS
    448          1.1    jruoho DtCompileEinj (
    449          1.1    jruoho     void                    **PFieldList);
    450          1.1    jruoho 
    451          1.1    jruoho ACPI_STATUS
    452          1.1    jruoho DtCompileErst (
    453          1.1    jruoho     void                    **PFieldList);
    454          1.1    jruoho 
    455          1.1    jruoho ACPI_STATUS
    456          1.1    jruoho DtCompileFadt (
    457          1.1    jruoho     void                    **PFieldList);
    458          1.1    jruoho 
    459          1.1    jruoho ACPI_STATUS
    460      1.1.1.4  christos DtCompileFpdt (
    461      1.1.1.4  christos     void                    **PFieldList);
    462      1.1.1.4  christos 
    463      1.1.1.4  christos ACPI_STATUS
    464      1.1.1.5  christos DtCompileGtdt (
    465      1.1.1.5  christos     void                    **PFieldList);
    466      1.1.1.5  christos 
    467      1.1.1.5  christos ACPI_STATUS
    468          1.1    jruoho DtCompileHest (
    469          1.1    jruoho     void                    **PFieldList);
    470          1.1    jruoho 
    471          1.1    jruoho ACPI_STATUS
    472  1.1.1.5.2.2     skrll DtCompileIort (
    473  1.1.1.5.2.2     skrll     void                    **PFieldList);
    474  1.1.1.5.2.2     skrll 
    475  1.1.1.5.2.2     skrll ACPI_STATUS
    476          1.1    jruoho DtCompileIvrs (
    477          1.1    jruoho     void                    **PFieldList);
    478          1.1    jruoho 
    479          1.1    jruoho ACPI_STATUS
    480      1.1.1.5  christos DtCompileLpit (
    481      1.1.1.5  christos     void                    **PFieldList);
    482      1.1.1.5  christos 
    483      1.1.1.5  christos ACPI_STATUS
    484          1.1    jruoho DtCompileMadt (
    485          1.1    jruoho     void                    **PFieldList);
    486          1.1    jruoho 
    487          1.1    jruoho ACPI_STATUS
    488          1.1    jruoho DtCompileMcfg (
    489          1.1    jruoho     void                    **PFieldList);
    490          1.1    jruoho 
    491          1.1    jruoho ACPI_STATUS
    492      1.1.1.4  christos DtCompileMpst (
    493      1.1.1.4  christos     void                    **PFieldList);
    494      1.1.1.4  christos 
    495      1.1.1.4  christos ACPI_STATUS
    496          1.1    jruoho DtCompileMsct (
    497          1.1    jruoho     void                    **PFieldList);
    498          1.1    jruoho 
    499          1.1    jruoho ACPI_STATUS
    500      1.1.1.4  christos DtCompileMtmr (
    501      1.1.1.4  christos     void                    **PFieldList);
    502      1.1.1.4  christos 
    503      1.1.1.4  christos ACPI_STATUS
    504  1.1.1.5.2.2     skrll DtCompileNfit (
    505  1.1.1.5.2.2     skrll     void                    **PFieldList);
    506  1.1.1.5.2.2     skrll 
    507  1.1.1.5.2.2     skrll ACPI_STATUS
    508      1.1.1.4  christos DtCompilePmtt (
    509      1.1.1.4  christos     void                    **PFieldList);
    510      1.1.1.4  christos 
    511      1.1.1.4  christos ACPI_STATUS
    512      1.1.1.4  christos DtCompilePcct (
    513      1.1.1.4  christos     void                    **PFieldList);
    514      1.1.1.4  christos 
    515      1.1.1.4  christos ACPI_STATUS
    516          1.1    jruoho DtCompileRsdt (
    517          1.1    jruoho     void                    **PFieldList);
    518          1.1    jruoho 
    519          1.1    jruoho ACPI_STATUS
    520      1.1.1.4  christos DtCompileS3pt (
    521      1.1.1.4  christos     DT_FIELD                **PFieldList);
    522      1.1.1.4  christos 
    523      1.1.1.4  christos ACPI_STATUS
    524      1.1.1.3    jruoho DtCompileSlic (
    525      1.1.1.3    jruoho     void                    **PFieldList);
    526      1.1.1.3    jruoho 
    527      1.1.1.3    jruoho ACPI_STATUS
    528          1.1    jruoho DtCompileSlit (
    529          1.1    jruoho     void                    **PFieldList);
    530          1.1    jruoho 
    531          1.1    jruoho ACPI_STATUS
    532          1.1    jruoho DtCompileSrat (
    533          1.1    jruoho     void                    **PFieldList);
    534          1.1    jruoho 
    535          1.1    jruoho ACPI_STATUS
    536  1.1.1.5.2.2     skrll DtCompileStao (
    537  1.1.1.5.2.2     skrll     void                    **PFieldList);
    538  1.1.1.5.2.2     skrll 
    539  1.1.1.5.2.2     skrll ACPI_STATUS
    540  1.1.1.5.2.2     skrll DtCompileTcpa (
    541  1.1.1.5.2.2     skrll     void                    **PFieldList);
    542  1.1.1.5.2.2     skrll 
    543  1.1.1.5.2.2     skrll ACPI_STATUS
    544      1.1.1.2    jruoho DtCompileUefi (
    545      1.1.1.2    jruoho     void                    **PFieldList);
    546      1.1.1.2    jruoho 
    547      1.1.1.2    jruoho ACPI_STATUS
    548      1.1.1.4  christos DtCompileVrtc (
    549      1.1.1.4  christos     void                    **PFieldList);
    550      1.1.1.4  christos 
    551      1.1.1.4  christos ACPI_STATUS
    552          1.1    jruoho DtCompileWdat (
    553          1.1    jruoho     void                    **PFieldList);
    554          1.1    jruoho 
    555          1.1    jruoho ACPI_STATUS
    556  1.1.1.5.2.2     skrll DtCompileWpbt (
    557  1.1.1.5.2.2     skrll     void                    **PFieldList);
    558  1.1.1.5.2.2     skrll 
    559  1.1.1.5.2.2     skrll ACPI_STATUS
    560          1.1    jruoho DtCompileXsdt (
    561          1.1    jruoho     void                    **PFieldList);
    562          1.1    jruoho 
    563      1.1.1.3    jruoho ACPI_STATUS
    564      1.1.1.3    jruoho DtCompileGeneric (
    565  1.1.1.5.2.2     skrll     void                    **PFieldList,
    566  1.1.1.5.2.2     skrll     char                    *TermFieldName,
    567  1.1.1.5.2.2     skrll     UINT32                  *PFieldLength);
    568      1.1.1.3    jruoho 
    569      1.1.1.2    jruoho ACPI_DMTABLE_INFO *
    570      1.1.1.2    jruoho DtGetGenericTableInfo (
    571      1.1.1.2    jruoho     char                    *Name);
    572          1.1    jruoho 
    573      1.1.1.2    jruoho /* ACPI Table templates */
    574          1.1    jruoho 
    575      1.1.1.2    jruoho extern const unsigned char  TemplateAsf[];
    576      1.1.1.2    jruoho extern const unsigned char  TemplateBoot[];
    577      1.1.1.2    jruoho extern const unsigned char  TemplateBert[];
    578      1.1.1.4  christos extern const unsigned char  TemplateBgrt[];
    579      1.1.1.2    jruoho extern const unsigned char  TemplateCpep[];
    580      1.1.1.4  christos extern const unsigned char  TemplateCsrt[];
    581      1.1.1.4  christos extern const unsigned char  TemplateDbg2[];
    582      1.1.1.2    jruoho extern const unsigned char  TemplateDbgp[];
    583      1.1.1.2    jruoho extern const unsigned char  TemplateDmar[];
    584  1.1.1.5.2.2     skrll extern const unsigned char  TemplateDrtm[];
    585      1.1.1.2    jruoho extern const unsigned char  TemplateEcdt[];
    586      1.1.1.2    jruoho extern const unsigned char  TemplateEinj[];
    587      1.1.1.2    jruoho extern const unsigned char  TemplateErst[];
    588      1.1.1.2    jruoho extern const unsigned char  TemplateFadt[];
    589      1.1.1.4  christos extern const unsigned char  TemplateFpdt[];
    590      1.1.1.4  christos extern const unsigned char  TemplateGtdt[];
    591      1.1.1.2    jruoho extern const unsigned char  TemplateHest[];
    592      1.1.1.2    jruoho extern const unsigned char  TemplateHpet[];
    593  1.1.1.5.2.2     skrll extern const unsigned char  TemplateIort[];
    594      1.1.1.2    jruoho extern const unsigned char  TemplateIvrs[];
    595      1.1.1.5  christos extern const unsigned char  TemplateLpit[];
    596      1.1.1.2    jruoho extern const unsigned char  TemplateMadt[];
    597      1.1.1.2    jruoho extern const unsigned char  TemplateMcfg[];
    598      1.1.1.2    jruoho extern const unsigned char  TemplateMchi[];
    599      1.1.1.4  christos extern const unsigned char  TemplateMpst[];
    600      1.1.1.2    jruoho extern const unsigned char  TemplateMsct[];
    601  1.1.1.5.2.1     skrll extern const unsigned char  TemplateMsdm[];
    602      1.1.1.4  christos extern const unsigned char  TemplateMtmr[];
    603  1.1.1.5.2.2     skrll extern const unsigned char  TemplateNfit[];
    604      1.1.1.4  christos extern const unsigned char  TemplatePcct[];
    605      1.1.1.4  christos extern const unsigned char  TemplatePmtt[];
    606      1.1.1.2    jruoho extern const unsigned char  TemplateRsdt[];
    607      1.1.1.4  christos extern const unsigned char  TemplateS3pt[];
    608      1.1.1.2    jruoho extern const unsigned char  TemplateSbst[];
    609      1.1.1.2    jruoho extern const unsigned char  TemplateSlic[];
    610      1.1.1.2    jruoho extern const unsigned char  TemplateSlit[];
    611      1.1.1.2    jruoho extern const unsigned char  TemplateSpcr[];
    612      1.1.1.2    jruoho extern const unsigned char  TemplateSpmi[];
    613      1.1.1.2    jruoho extern const unsigned char  TemplateSrat[];
    614  1.1.1.5.2.2     skrll extern const unsigned char  TemplateStao[];
    615      1.1.1.2    jruoho extern const unsigned char  TemplateTcpa[];
    616      1.1.1.4  christos extern const unsigned char  TemplateTpm2[];
    617      1.1.1.2    jruoho extern const unsigned char  TemplateUefi[];
    618      1.1.1.4  christos extern const unsigned char  TemplateVrtc[];
    619      1.1.1.2    jruoho extern const unsigned char  TemplateWaet[];
    620      1.1.1.2    jruoho extern const unsigned char  TemplateWdat[];
    621      1.1.1.2    jruoho extern const unsigned char  TemplateWddt[];
    622      1.1.1.2    jruoho extern const unsigned char  TemplateWdrt[];
    623  1.1.1.5.2.2     skrll extern const unsigned char  TemplateWpbt[];
    624  1.1.1.5.2.2     skrll extern const unsigned char  TemplateXenv[];
    625      1.1.1.2    jruoho extern const unsigned char  TemplateXsdt[];
    626          1.1    jruoho 
    627          1.1    jruoho #endif
    628