Home | History | Annotate | Line # | Download | only in include
amlresrc.h revision 1.1.1.12
      1       1.1    jruoho /******************************************************************************
      2       1.1    jruoho  *
      3       1.1    jruoho  * Module Name: amlresrc.h - AML resource descriptors
      4       1.1    jruoho  *
      5       1.1    jruoho  *****************************************************************************/
      6       1.1    jruoho 
      7   1.1.1.2    jruoho /*
      8  1.1.1.12  christos  * 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.12  christos  * 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 /* acpisrc:StructDefs -- for acpisrc conversion */
     45       1.1    jruoho 
     46       1.1    jruoho #ifndef __AMLRESRC_H
     47       1.1    jruoho #define __AMLRESRC_H
     48       1.1    jruoho 
     49       1.1    jruoho 
     50       1.1    jruoho /*
     51       1.1    jruoho  * Resource descriptor tags, as defined in the ACPI specification.
     52       1.1    jruoho  * Used to symbolically reference fields within a descriptor.
     53       1.1    jruoho  */
     54       1.1    jruoho #define ACPI_RESTAG_ADDRESS                     "_ADR"
     55       1.1    jruoho #define ACPI_RESTAG_ALIGNMENT                   "_ALN"
     56       1.1    jruoho #define ACPI_RESTAG_ADDRESSSPACE                "_ASI"
     57       1.1    jruoho #define ACPI_RESTAG_ACCESSSIZE                  "_ASZ"
     58       1.1    jruoho #define ACPI_RESTAG_TYPESPECIFICATTRIBUTES      "_ATT"
     59       1.1    jruoho #define ACPI_RESTAG_BASEADDRESS                 "_BAS"
     60       1.1    jruoho #define ACPI_RESTAG_BUSMASTER                   "_BM_"  /* Master(1), Slave(0) */
     61   1.1.1.3  christos #define ACPI_RESTAG_DEBOUNCETIME                "_DBT"
     62       1.1    jruoho #define ACPI_RESTAG_DECODE                      "_DEC"
     63   1.1.1.3  christos #define ACPI_RESTAG_DEVICEPOLARITY              "_DPL"
     64       1.1    jruoho #define ACPI_RESTAG_DMA                         "_DMA"
     65       1.1    jruoho #define ACPI_RESTAG_DMATYPE                     "_TYP"  /* Compatible(0), A(1), B(2), F(3) */
     66   1.1.1.3  christos #define ACPI_RESTAG_DRIVESTRENGTH               "_DRS"
     67   1.1.1.3  christos #define ACPI_RESTAG_ENDIANNESS                  "_END"
     68   1.1.1.3  christos #define ACPI_RESTAG_FLOWCONTROL                 "_FLC"
     69   1.1.1.8  christos #define ACPI_RESTAG_FUNCTION                    "_FUN"
     70       1.1    jruoho #define ACPI_RESTAG_GRANULARITY                 "_GRA"
     71       1.1    jruoho #define ACPI_RESTAG_INTERRUPT                   "_INT"
     72       1.1    jruoho #define ACPI_RESTAG_INTERRUPTLEVEL              "_LL_"  /* ActiveLo(1), ActiveHi(0) */
     73       1.1    jruoho #define ACPI_RESTAG_INTERRUPTSHARE              "_SHR"  /* Shareable(1), NoShare(0) */
     74       1.1    jruoho #define ACPI_RESTAG_INTERRUPTTYPE               "_HE_"  /* Edge(1), Level(0) */
     75   1.1.1.3  christos #define ACPI_RESTAG_IORESTRICTION               "_IOR"
     76       1.1    jruoho #define ACPI_RESTAG_LENGTH                      "_LEN"
     77   1.1.1.3  christos #define ACPI_RESTAG_LINE                        "_LIN"
     78  1.1.1.12  christos #define ACPI_RESTAG_LOCALPORT                   "_PRT"
     79       1.1    jruoho #define ACPI_RESTAG_MEMATTRIBUTES               "_MTP"  /* Memory(0), Reserved(1), ACPI(2), NVS(3) */
     80       1.1    jruoho #define ACPI_RESTAG_MEMTYPE                     "_MEM"  /* NonCache(0), Cacheable(1) Cache+combine(2), Cache+prefetch(3) */
     81       1.1    jruoho #define ACPI_RESTAG_MAXADDR                     "_MAX"
     82       1.1    jruoho #define ACPI_RESTAG_MINADDR                     "_MIN"
     83       1.1    jruoho #define ACPI_RESTAG_MAXTYPE                     "_MAF"
     84       1.1    jruoho #define ACPI_RESTAG_MINTYPE                     "_MIF"
     85   1.1.1.3  christos #define ACPI_RESTAG_MODE                        "_MOD"
     86   1.1.1.3  christos #define ACPI_RESTAG_PARITY                      "_PAR"
     87   1.1.1.3  christos #define ACPI_RESTAG_PHASE                       "_PHA"
     88  1.1.1.12  christos #define ACPI_RESTAG_PHYTYPE                     "_PHY"
     89   1.1.1.3  christos #define ACPI_RESTAG_PIN                         "_PIN"
     90   1.1.1.3  christos #define ACPI_RESTAG_PINCONFIG                   "_PPI"
     91   1.1.1.8  christos #define ACPI_RESTAG_PINCONFIG_TYPE              "_TYP"
     92   1.1.1.8  christos #define ACPI_RESTAG_PINCONFIG_VALUE             "_VAL"
     93   1.1.1.3  christos #define ACPI_RESTAG_POLARITY                    "_POL"
     94       1.1    jruoho #define ACPI_RESTAG_REGISTERBITOFFSET           "_RBO"
     95       1.1    jruoho #define ACPI_RESTAG_REGISTERBITWIDTH            "_RBW"
     96       1.1    jruoho #define ACPI_RESTAG_RANGETYPE                   "_RNG"
     97       1.1    jruoho #define ACPI_RESTAG_READWRITETYPE               "_RW_"  /* ReadOnly(0), Writeable (1) */
     98   1.1.1.3  christos #define ACPI_RESTAG_LENGTH_RX                   "_RXL"
     99   1.1.1.3  christos #define ACPI_RESTAG_LENGTH_TX                   "_TXL"
    100   1.1.1.3  christos #define ACPI_RESTAG_SLAVEMODE                   "_SLV"
    101   1.1.1.3  christos #define ACPI_RESTAG_SPEED                       "_SPE"
    102   1.1.1.3  christos #define ACPI_RESTAG_STOPBITS                    "_STB"
    103       1.1    jruoho #define ACPI_RESTAG_TRANSLATION                 "_TRA"
    104       1.1    jruoho #define ACPI_RESTAG_TRANSTYPE                   "_TRS"  /* Sparse(1), Dense(0) */
    105       1.1    jruoho #define ACPI_RESTAG_TYPE                        "_TTP"  /* Translation(1), Static (0) */
    106       1.1    jruoho #define ACPI_RESTAG_XFERTYPE                    "_SIZ"  /* 8(0), 8And16(1), 16(2) */
    107   1.1.1.3  christos #define ACPI_RESTAG_VENDORDATA                  "_VEN"
    108       1.1    jruoho 
    109       1.1    jruoho 
    110       1.1    jruoho /* Default sizes for "small" resource descriptors */
    111       1.1    jruoho 
    112       1.1    jruoho #define ASL_RDESC_IRQ_SIZE                      0x02
    113       1.1    jruoho #define ASL_RDESC_DMA_SIZE                      0x02
    114       1.1    jruoho #define ASL_RDESC_ST_DEPEND_SIZE                0x00
    115       1.1    jruoho #define ASL_RDESC_END_DEPEND_SIZE               0x00
    116       1.1    jruoho #define ASL_RDESC_IO_SIZE                       0x07
    117       1.1    jruoho #define ASL_RDESC_FIXED_IO_SIZE                 0x03
    118   1.1.1.3  christos #define ASL_RDESC_FIXED_DMA_SIZE                0x05
    119       1.1    jruoho #define ASL_RDESC_END_TAG_SIZE                  0x01
    120       1.1    jruoho 
    121       1.1    jruoho 
    122       1.1    jruoho typedef struct asl_resource_node
    123       1.1    jruoho {
    124       1.1    jruoho     UINT32                          BufferLength;
    125       1.1    jruoho     void                            *Buffer;
    126       1.1    jruoho     struct asl_resource_node        *Next;
    127       1.1    jruoho 
    128       1.1    jruoho } ASL_RESOURCE_NODE;
    129       1.1    jruoho 
    130   1.1.1.4  christos typedef struct asl_resource_info
    131   1.1.1.4  christos {
    132   1.1.1.4  christos     ACPI_PARSE_OBJECT               *DescriptorTypeOp;  /* Resource descriptor parse node */
    133   1.1.1.4  christos     ACPI_PARSE_OBJECT               *MappingOp;         /* Used for mapfile support */
    134   1.1.1.4  christos     UINT32                          CurrentByteOffset;  /* Offset in resource template */
    135   1.1.1.4  christos 
    136   1.1.1.4  christos } ASL_RESOURCE_INFO;
    137   1.1.1.4  christos 
    138       1.1    jruoho 
    139       1.1    jruoho /* Macros used to generate AML resource length fields */
    140       1.1    jruoho 
    141       1.1    jruoho #define ACPI_AML_SIZE_LARGE(r)      (sizeof (r) - sizeof (AML_RESOURCE_LARGE_HEADER))
    142       1.1    jruoho #define ACPI_AML_SIZE_SMALL(r)      (sizeof (r) - sizeof (AML_RESOURCE_SMALL_HEADER))
    143       1.1    jruoho 
    144       1.1    jruoho /*
    145       1.1    jruoho  * Resource descriptors defined in the ACPI specification.
    146       1.1    jruoho  *
    147       1.1    jruoho  * Packing/alignment must be BYTE because these descriptors
    148       1.1    jruoho  * are used to overlay the raw AML byte stream.
    149       1.1    jruoho  */
    150       1.1    jruoho #pragma pack(1)
    151       1.1    jruoho 
    152       1.1    jruoho /*
    153       1.1    jruoho  * SMALL descriptors
    154       1.1    jruoho  */
    155       1.1    jruoho #define AML_RESOURCE_SMALL_HEADER_COMMON \
    156       1.1    jruoho     UINT8                           DescriptorType;
    157       1.1    jruoho 
    158       1.1    jruoho typedef struct aml_resource_small_header
    159       1.1    jruoho {
    160       1.1    jruoho     AML_RESOURCE_SMALL_HEADER_COMMON
    161       1.1    jruoho 
    162       1.1    jruoho } AML_RESOURCE_SMALL_HEADER;
    163       1.1    jruoho 
    164       1.1    jruoho 
    165       1.1    jruoho typedef struct aml_resource_irq
    166       1.1    jruoho {
    167       1.1    jruoho     AML_RESOURCE_SMALL_HEADER_COMMON
    168       1.1    jruoho     UINT16                          IrqMask;
    169       1.1    jruoho     UINT8                           Flags;
    170       1.1    jruoho 
    171       1.1    jruoho } AML_RESOURCE_IRQ;
    172       1.1    jruoho 
    173       1.1    jruoho 
    174       1.1    jruoho typedef struct aml_resource_irq_noflags
    175       1.1    jruoho {
    176       1.1    jruoho     AML_RESOURCE_SMALL_HEADER_COMMON
    177       1.1    jruoho     UINT16                          IrqMask;
    178       1.1    jruoho 
    179       1.1    jruoho } AML_RESOURCE_IRQ_NOFLAGS;
    180       1.1    jruoho 
    181       1.1    jruoho 
    182       1.1    jruoho typedef struct aml_resource_dma
    183       1.1    jruoho {
    184       1.1    jruoho     AML_RESOURCE_SMALL_HEADER_COMMON
    185       1.1    jruoho     UINT8                           DmaChannelMask;
    186       1.1    jruoho     UINT8                           Flags;
    187       1.1    jruoho 
    188       1.1    jruoho } AML_RESOURCE_DMA;
    189       1.1    jruoho 
    190       1.1    jruoho 
    191       1.1    jruoho typedef struct aml_resource_start_dependent
    192       1.1    jruoho {
    193       1.1    jruoho     AML_RESOURCE_SMALL_HEADER_COMMON
    194       1.1    jruoho     UINT8                           Flags;
    195       1.1    jruoho 
    196       1.1    jruoho } AML_RESOURCE_START_DEPENDENT;
    197       1.1    jruoho 
    198       1.1    jruoho 
    199       1.1    jruoho typedef struct aml_resource_start_dependent_noprio
    200       1.1    jruoho {
    201       1.1    jruoho     AML_RESOURCE_SMALL_HEADER_COMMON
    202       1.1    jruoho 
    203       1.1    jruoho } AML_RESOURCE_START_DEPENDENT_NOPRIO;
    204       1.1    jruoho 
    205       1.1    jruoho 
    206       1.1    jruoho typedef struct aml_resource_end_dependent
    207       1.1    jruoho {
    208       1.1    jruoho     AML_RESOURCE_SMALL_HEADER_COMMON
    209       1.1    jruoho 
    210       1.1    jruoho } AML_RESOURCE_END_DEPENDENT;
    211       1.1    jruoho 
    212       1.1    jruoho 
    213       1.1    jruoho typedef struct aml_resource_io
    214       1.1    jruoho {
    215       1.1    jruoho     AML_RESOURCE_SMALL_HEADER_COMMON
    216       1.1    jruoho     UINT8                           Flags;
    217       1.1    jruoho     UINT16                          Minimum;
    218       1.1    jruoho     UINT16                          Maximum;
    219       1.1    jruoho     UINT8                           Alignment;
    220       1.1    jruoho     UINT8                           AddressLength;
    221       1.1    jruoho 
    222       1.1    jruoho } AML_RESOURCE_IO;
    223       1.1    jruoho 
    224       1.1    jruoho 
    225       1.1    jruoho typedef struct aml_resource_fixed_io
    226       1.1    jruoho {
    227       1.1    jruoho     AML_RESOURCE_SMALL_HEADER_COMMON
    228       1.1    jruoho     UINT16                          Address;
    229       1.1    jruoho     UINT8                           AddressLength;
    230       1.1    jruoho 
    231       1.1    jruoho } AML_RESOURCE_FIXED_IO;
    232       1.1    jruoho 
    233       1.1    jruoho 
    234       1.1    jruoho typedef struct aml_resource_vendor_small
    235       1.1    jruoho {
    236       1.1    jruoho     AML_RESOURCE_SMALL_HEADER_COMMON
    237       1.1    jruoho 
    238       1.1    jruoho } AML_RESOURCE_VENDOR_SMALL;
    239       1.1    jruoho 
    240       1.1    jruoho 
    241       1.1    jruoho typedef struct aml_resource_end_tag
    242       1.1    jruoho {
    243       1.1    jruoho     AML_RESOURCE_SMALL_HEADER_COMMON
    244       1.1    jruoho     UINT8                           Checksum;
    245       1.1    jruoho 
    246       1.1    jruoho } AML_RESOURCE_END_TAG;
    247       1.1    jruoho 
    248       1.1    jruoho 
    249   1.1.1.3  christos typedef struct aml_resource_fixed_dma
    250   1.1.1.3  christos {
    251   1.1.1.3  christos     AML_RESOURCE_SMALL_HEADER_COMMON
    252   1.1.1.3  christos     UINT16                          RequestLines;
    253   1.1.1.3  christos     UINT16                          Channels;
    254   1.1.1.3  christos     UINT8                           Width;
    255   1.1.1.3  christos 
    256   1.1.1.3  christos } AML_RESOURCE_FIXED_DMA;
    257   1.1.1.3  christos 
    258   1.1.1.3  christos 
    259       1.1    jruoho /*
    260       1.1    jruoho  * LARGE descriptors
    261       1.1    jruoho  */
    262       1.1    jruoho #define AML_RESOURCE_LARGE_HEADER_COMMON \
    263       1.1    jruoho     UINT8                           DescriptorType;\
    264       1.1    jruoho     UINT16                          ResourceLength;
    265       1.1    jruoho 
    266       1.1    jruoho typedef struct aml_resource_large_header
    267       1.1    jruoho {
    268       1.1    jruoho     AML_RESOURCE_LARGE_HEADER_COMMON
    269       1.1    jruoho 
    270       1.1    jruoho } AML_RESOURCE_LARGE_HEADER;
    271       1.1    jruoho 
    272       1.1    jruoho 
    273       1.1    jruoho /* General Flags for address space resource descriptors */
    274       1.1    jruoho 
    275       1.1    jruoho #define ACPI_RESOURCE_FLAG_DEC      2
    276       1.1    jruoho #define ACPI_RESOURCE_FLAG_MIF      4
    277       1.1    jruoho #define ACPI_RESOURCE_FLAG_MAF      8
    278       1.1    jruoho 
    279       1.1    jruoho typedef struct aml_resource_memory24
    280       1.1    jruoho {
    281       1.1    jruoho     AML_RESOURCE_LARGE_HEADER_COMMON
    282       1.1    jruoho     UINT8                           Flags;
    283       1.1    jruoho     UINT16                          Minimum;
    284       1.1    jruoho     UINT16                          Maximum;
    285       1.1    jruoho     UINT16                          Alignment;
    286       1.1    jruoho     UINT16                          AddressLength;
    287       1.1    jruoho 
    288       1.1    jruoho } AML_RESOURCE_MEMORY24;
    289       1.1    jruoho 
    290       1.1    jruoho 
    291       1.1    jruoho typedef struct aml_resource_vendor_large
    292       1.1    jruoho {
    293       1.1    jruoho     AML_RESOURCE_LARGE_HEADER_COMMON
    294       1.1    jruoho 
    295       1.1    jruoho } AML_RESOURCE_VENDOR_LARGE;
    296       1.1    jruoho 
    297       1.1    jruoho 
    298       1.1    jruoho typedef struct aml_resource_memory32
    299       1.1    jruoho {
    300       1.1    jruoho     AML_RESOURCE_LARGE_HEADER_COMMON
    301       1.1    jruoho     UINT8                           Flags;
    302       1.1    jruoho     UINT32                          Minimum;
    303       1.1    jruoho     UINT32                          Maximum;
    304       1.1    jruoho     UINT32                          Alignment;
    305       1.1    jruoho     UINT32                          AddressLength;
    306       1.1    jruoho 
    307       1.1    jruoho } AML_RESOURCE_MEMORY32;
    308       1.1    jruoho 
    309       1.1    jruoho 
    310       1.1    jruoho typedef struct aml_resource_fixed_memory32
    311       1.1    jruoho {
    312       1.1    jruoho     AML_RESOURCE_LARGE_HEADER_COMMON
    313       1.1    jruoho     UINT8                           Flags;
    314       1.1    jruoho     UINT32                          Address;
    315       1.1    jruoho     UINT32                          AddressLength;
    316       1.1    jruoho 
    317       1.1    jruoho } AML_RESOURCE_FIXED_MEMORY32;
    318       1.1    jruoho 
    319       1.1    jruoho 
    320       1.1    jruoho #define AML_RESOURCE_ADDRESS_COMMON \
    321       1.1    jruoho     UINT8                           ResourceType; \
    322       1.1    jruoho     UINT8                           Flags; \
    323       1.1    jruoho     UINT8                           SpecificFlags;
    324       1.1    jruoho 
    325       1.1    jruoho 
    326       1.1    jruoho typedef struct aml_resource_address
    327       1.1    jruoho {
    328       1.1    jruoho     AML_RESOURCE_LARGE_HEADER_COMMON
    329       1.1    jruoho     AML_RESOURCE_ADDRESS_COMMON
    330       1.1    jruoho 
    331       1.1    jruoho } AML_RESOURCE_ADDRESS;
    332       1.1    jruoho 
    333       1.1    jruoho 
    334       1.1    jruoho typedef struct aml_resource_extended_address64
    335       1.1    jruoho {
    336       1.1    jruoho     AML_RESOURCE_LARGE_HEADER_COMMON
    337       1.1    jruoho     AML_RESOURCE_ADDRESS_COMMON
    338       1.1    jruoho     UINT8                           RevisionID;
    339       1.1    jruoho     UINT8                           Reserved;
    340       1.1    jruoho     UINT64                          Granularity;
    341       1.1    jruoho     UINT64                          Minimum;
    342       1.1    jruoho     UINT64                          Maximum;
    343       1.1    jruoho     UINT64                          TranslationOffset;
    344       1.1    jruoho     UINT64                          AddressLength;
    345       1.1    jruoho     UINT64                          TypeSpecific;
    346       1.1    jruoho 
    347       1.1    jruoho } AML_RESOURCE_EXTENDED_ADDRESS64;
    348       1.1    jruoho 
    349       1.1    jruoho #define AML_RESOURCE_EXTENDED_ADDRESS_REVISION          1       /* ACPI 3.0 */
    350       1.1    jruoho 
    351       1.1    jruoho 
    352       1.1    jruoho typedef struct aml_resource_address64
    353       1.1    jruoho {
    354       1.1    jruoho     AML_RESOURCE_LARGE_HEADER_COMMON
    355       1.1    jruoho     AML_RESOURCE_ADDRESS_COMMON
    356       1.1    jruoho     UINT64                          Granularity;
    357       1.1    jruoho     UINT64                          Minimum;
    358       1.1    jruoho     UINT64                          Maximum;
    359       1.1    jruoho     UINT64                          TranslationOffset;
    360       1.1    jruoho     UINT64                          AddressLength;
    361       1.1    jruoho 
    362       1.1    jruoho } AML_RESOURCE_ADDRESS64;
    363       1.1    jruoho 
    364       1.1    jruoho 
    365       1.1    jruoho typedef struct aml_resource_address32
    366       1.1    jruoho {
    367       1.1    jruoho     AML_RESOURCE_LARGE_HEADER_COMMON
    368       1.1    jruoho     AML_RESOURCE_ADDRESS_COMMON
    369       1.1    jruoho     UINT32                          Granularity;
    370       1.1    jruoho     UINT32                          Minimum;
    371       1.1    jruoho     UINT32                          Maximum;
    372       1.1    jruoho     UINT32                          TranslationOffset;
    373       1.1    jruoho     UINT32                          AddressLength;
    374       1.1    jruoho 
    375       1.1    jruoho } AML_RESOURCE_ADDRESS32;
    376       1.1    jruoho 
    377       1.1    jruoho 
    378       1.1    jruoho typedef struct aml_resource_address16
    379       1.1    jruoho {
    380       1.1    jruoho     AML_RESOURCE_LARGE_HEADER_COMMON
    381       1.1    jruoho     AML_RESOURCE_ADDRESS_COMMON
    382       1.1    jruoho     UINT16                          Granularity;
    383       1.1    jruoho     UINT16                          Minimum;
    384       1.1    jruoho     UINT16                          Maximum;
    385       1.1    jruoho     UINT16                          TranslationOffset;
    386       1.1    jruoho     UINT16                          AddressLength;
    387       1.1    jruoho 
    388       1.1    jruoho } AML_RESOURCE_ADDRESS16;
    389       1.1    jruoho 
    390       1.1    jruoho 
    391       1.1    jruoho typedef struct aml_resource_extended_irq
    392       1.1    jruoho {
    393       1.1    jruoho     AML_RESOURCE_LARGE_HEADER_COMMON
    394       1.1    jruoho     UINT8                           Flags;
    395       1.1    jruoho     UINT8                           InterruptCount;
    396       1.1    jruoho     UINT32                          Interrupts[1];
    397       1.1    jruoho     /* ResSourceIndex, ResSource optional fields follow */
    398       1.1    jruoho 
    399       1.1    jruoho } AML_RESOURCE_EXTENDED_IRQ;
    400       1.1    jruoho 
    401       1.1    jruoho 
    402       1.1    jruoho typedef struct aml_resource_generic_register
    403       1.1    jruoho {
    404       1.1    jruoho     AML_RESOURCE_LARGE_HEADER_COMMON
    405       1.1    jruoho     UINT8                           AddressSpaceId;
    406       1.1    jruoho     UINT8                           BitWidth;
    407       1.1    jruoho     UINT8                           BitOffset;
    408       1.1    jruoho     UINT8                           AccessSize; /* ACPI 3.0, was previously Reserved */
    409       1.1    jruoho     UINT64                          Address;
    410       1.1    jruoho 
    411       1.1    jruoho } AML_RESOURCE_GENERIC_REGISTER;
    412       1.1    jruoho 
    413   1.1.1.3  christos 
    414   1.1.1.3  christos /* Common descriptor for GpioInt and GpioIo (ACPI 5.0) */
    415   1.1.1.3  christos 
    416   1.1.1.3  christos typedef struct aml_resource_gpio
    417   1.1.1.3  christos {
    418   1.1.1.3  christos     AML_RESOURCE_LARGE_HEADER_COMMON
    419   1.1.1.3  christos     UINT8                           RevisionId;
    420   1.1.1.3  christos     UINT8                           ConnectionType;
    421   1.1.1.3  christos     UINT16                          Flags;
    422   1.1.1.3  christos     UINT16                          IntFlags;
    423   1.1.1.3  christos     UINT8                           PinConfig;
    424   1.1.1.3  christos     UINT16                          DriveStrength;
    425   1.1.1.3  christos     UINT16                          DebounceTimeout;
    426   1.1.1.3  christos     UINT16                          PinTableOffset;
    427   1.1.1.3  christos     UINT8                           ResSourceIndex;
    428   1.1.1.3  christos     UINT16                          ResSourceOffset;
    429   1.1.1.3  christos     UINT16                          VendorOffset;
    430   1.1.1.3  christos     UINT16                          VendorLength;
    431   1.1.1.3  christos     /*
    432   1.1.1.3  christos      * Optional fields follow immediately:
    433   1.1.1.3  christos      * 1) PIN list (Words)
    434   1.1.1.3  christos      * 2) Resource Source String
    435   1.1.1.3  christos      * 3) Vendor Data bytes
    436   1.1.1.3  christos      */
    437   1.1.1.3  christos 
    438   1.1.1.3  christos } AML_RESOURCE_GPIO;
    439   1.1.1.3  christos 
    440   1.1.1.3  christos #define AML_RESOURCE_GPIO_REVISION              1       /* ACPI 5.0 */
    441   1.1.1.3  christos 
    442   1.1.1.3  christos /* Values for ConnectionType above */
    443   1.1.1.3  christos 
    444   1.1.1.3  christos #define AML_RESOURCE_GPIO_TYPE_INT              0
    445   1.1.1.3  christos #define AML_RESOURCE_GPIO_TYPE_IO               1
    446   1.1.1.3  christos #define AML_RESOURCE_MAX_GPIOTYPE               1
    447   1.1.1.3  christos 
    448   1.1.1.3  christos 
    449   1.1.1.3  christos /* Common preamble for all serial descriptors (ACPI 5.0) */
    450   1.1.1.3  christos 
    451   1.1.1.3  christos #define AML_RESOURCE_SERIAL_COMMON \
    452   1.1.1.3  christos     UINT8                           RevisionId; \
    453   1.1.1.3  christos     UINT8                           ResSourceIndex; \
    454   1.1.1.3  christos     UINT8                           Type; \
    455   1.1.1.3  christos     UINT8                           Flags; \
    456   1.1.1.3  christos     UINT16                          TypeSpecificFlags; \
    457   1.1.1.3  christos     UINT8                           TypeRevisionId; \
    458   1.1.1.3  christos     UINT16                          TypeDataLength; \
    459   1.1.1.3  christos 
    460   1.1.1.3  christos /* Values for the type field above */
    461   1.1.1.3  christos 
    462   1.1.1.3  christos #define AML_RESOURCE_I2C_SERIALBUSTYPE          1
    463   1.1.1.3  christos #define AML_RESOURCE_SPI_SERIALBUSTYPE          2
    464   1.1.1.3  christos #define AML_RESOURCE_UART_SERIALBUSTYPE         3
    465  1.1.1.12  christos #define AML_RESOURCE_CSI2_SERIALBUSTYPE         4
    466  1.1.1.12  christos #define AML_RESOURCE_MAX_SERIALBUSTYPE          4
    467   1.1.1.3  christos #define AML_RESOURCE_VENDOR_SERIALBUSTYPE       192 /* Vendor defined is 0xC0-0xFF (NOT SUPPORTED) */
    468   1.1.1.3  christos 
    469   1.1.1.3  christos typedef struct aml_resource_common_serialbus
    470   1.1.1.3  christos {
    471   1.1.1.3  christos     AML_RESOURCE_LARGE_HEADER_COMMON
    472   1.1.1.3  christos     AML_RESOURCE_SERIAL_COMMON
    473   1.1.1.3  christos 
    474   1.1.1.3  christos } AML_RESOURCE_COMMON_SERIALBUS;
    475   1.1.1.3  christos 
    476  1.1.1.12  christos 
    477  1.1.1.12  christos typedef struct aml_resource_csi2_serialbus
    478  1.1.1.12  christos {
    479  1.1.1.12  christos     AML_RESOURCE_LARGE_HEADER_COMMON
    480  1.1.1.12  christos     AML_RESOURCE_SERIAL_COMMON
    481  1.1.1.12  christos 
    482  1.1.1.12  christos     /*
    483  1.1.1.12  christos      * Optional fields follow immediately:
    484  1.1.1.12  christos      * 1) Vendor Data bytes
    485  1.1.1.12  christos      * 2) Resource Source String
    486  1.1.1.12  christos      */
    487  1.1.1.12  christos 
    488  1.1.1.12  christos } AML_RESOURCE_CSI2_SERIALBUS;
    489  1.1.1.12  christos 
    490  1.1.1.12  christos #define AML_RESOURCE_CSI2_REVISION              1       /* ACPI 6.4 */
    491  1.1.1.12  christos #define AML_RESOURCE_CSI2_TYPE_REVISION         1       /* ACPI 6.4 */
    492  1.1.1.12  christos #define AML_RESOURCE_CSI2_MIN_DATA_LEN          0       /* ACPI 6.4 */
    493  1.1.1.12  christos 
    494   1.1.1.3  christos typedef struct aml_resource_i2c_serialbus
    495   1.1.1.3  christos {
    496   1.1.1.3  christos     AML_RESOURCE_LARGE_HEADER_COMMON
    497   1.1.1.3  christos     AML_RESOURCE_SERIAL_COMMON
    498   1.1.1.3  christos     UINT32                          ConnectionSpeed;
    499   1.1.1.3  christos     UINT16                          SlaveAddress;
    500   1.1.1.3  christos     /*
    501   1.1.1.3  christos      * Optional fields follow immediately:
    502   1.1.1.3  christos      * 1) Vendor Data bytes
    503   1.1.1.3  christos      * 2) Resource Source String
    504   1.1.1.3  christos      */
    505   1.1.1.3  christos 
    506   1.1.1.3  christos } AML_RESOURCE_I2C_SERIALBUS;
    507   1.1.1.3  christos 
    508   1.1.1.3  christos #define AML_RESOURCE_I2C_REVISION               1       /* ACPI 5.0 */
    509   1.1.1.3  christos #define AML_RESOURCE_I2C_TYPE_REVISION          1       /* ACPI 5.0 */
    510   1.1.1.3  christos #define AML_RESOURCE_I2C_MIN_DATA_LEN           6
    511   1.1.1.3  christos 
    512   1.1.1.3  christos typedef struct aml_resource_spi_serialbus
    513   1.1.1.3  christos {
    514   1.1.1.3  christos     AML_RESOURCE_LARGE_HEADER_COMMON
    515   1.1.1.3  christos     AML_RESOURCE_SERIAL_COMMON
    516   1.1.1.3  christos     UINT32                          ConnectionSpeed;
    517   1.1.1.3  christos     UINT8                           DataBitLength;
    518   1.1.1.3  christos     UINT8                           ClockPhase;
    519   1.1.1.3  christos     UINT8                           ClockPolarity;
    520   1.1.1.3  christos     UINT16                          DeviceSelection;
    521   1.1.1.3  christos     /*
    522   1.1.1.3  christos      * Optional fields follow immediately:
    523   1.1.1.3  christos      * 1) Vendor Data bytes
    524   1.1.1.3  christos      * 2) Resource Source String
    525   1.1.1.3  christos      */
    526   1.1.1.3  christos 
    527   1.1.1.3  christos } AML_RESOURCE_SPI_SERIALBUS;
    528   1.1.1.3  christos 
    529   1.1.1.3  christos #define AML_RESOURCE_SPI_REVISION               1       /* ACPI 5.0 */
    530   1.1.1.3  christos #define AML_RESOURCE_SPI_TYPE_REVISION          1       /* ACPI 5.0 */
    531   1.1.1.3  christos #define AML_RESOURCE_SPI_MIN_DATA_LEN           9
    532   1.1.1.3  christos 
    533   1.1.1.3  christos typedef struct aml_resource_uart_serialbus
    534   1.1.1.3  christos {
    535   1.1.1.3  christos     AML_RESOURCE_LARGE_HEADER_COMMON
    536   1.1.1.3  christos     AML_RESOURCE_SERIAL_COMMON
    537   1.1.1.3  christos     UINT32                          DefaultBaudRate;
    538   1.1.1.3  christos     UINT16                          RxFifoSize;
    539   1.1.1.3  christos     UINT16                          TxFifoSize;
    540   1.1.1.3  christos     UINT8                           Parity;
    541   1.1.1.3  christos     UINT8                           LinesEnabled;
    542   1.1.1.3  christos     /*
    543   1.1.1.3  christos      * Optional fields follow immediately:
    544   1.1.1.3  christos      * 1) Vendor Data bytes
    545   1.1.1.3  christos      * 2) Resource Source String
    546   1.1.1.3  christos      */
    547   1.1.1.3  christos 
    548   1.1.1.3  christos } AML_RESOURCE_UART_SERIALBUS;
    549   1.1.1.3  christos 
    550   1.1.1.3  christos #define AML_RESOURCE_UART_REVISION              1       /* ACPI 5.0 */
    551   1.1.1.3  christos #define AML_RESOURCE_UART_TYPE_REVISION         1       /* ACPI 5.0 */
    552   1.1.1.3  christos #define AML_RESOURCE_UART_MIN_DATA_LEN          10
    553   1.1.1.3  christos 
    554   1.1.1.8  christos typedef struct aml_resource_pin_function
    555   1.1.1.8  christos {
    556   1.1.1.8  christos     AML_RESOURCE_LARGE_HEADER_COMMON
    557   1.1.1.8  christos     UINT8                           RevisionId;
    558   1.1.1.8  christos     UINT16                          Flags;
    559   1.1.1.8  christos     UINT8                           PinConfig;
    560   1.1.1.8  christos     UINT16                          FunctionNumber;
    561   1.1.1.8  christos     UINT16                          PinTableOffset;
    562   1.1.1.8  christos     UINT8                           ResSourceIndex;
    563   1.1.1.8  christos     UINT16                          ResSourceOffset;
    564   1.1.1.8  christos     UINT16                          VendorOffset;
    565   1.1.1.8  christos     UINT16                          VendorLength;
    566   1.1.1.8  christos     /*
    567   1.1.1.8  christos      * Optional fields follow immediately:
    568   1.1.1.8  christos      * 1) PIN list (Words)
    569   1.1.1.8  christos      * 2) Resource Source String
    570   1.1.1.8  christos      * 3) Vendor Data bytes
    571   1.1.1.8  christos      */
    572   1.1.1.8  christos 
    573   1.1.1.8  christos } AML_RESOURCE_PIN_FUNCTION;
    574   1.1.1.8  christos 
    575   1.1.1.8  christos #define AML_RESOURCE_PIN_FUNCTION_REVISION      1       /* ACPI 6.2 */
    576   1.1.1.8  christos 
    577   1.1.1.8  christos typedef struct aml_resource_pin_config
    578   1.1.1.8  christos {
    579   1.1.1.8  christos     AML_RESOURCE_LARGE_HEADER_COMMON
    580   1.1.1.8  christos     UINT8                           RevisionId;
    581   1.1.1.8  christos     UINT16                          Flags;
    582   1.1.1.8  christos     UINT8                           PinConfigType;
    583   1.1.1.8  christos     UINT32                          PinConfigValue;
    584   1.1.1.8  christos     UINT16                          PinTableOffset;
    585   1.1.1.8  christos     UINT8                           ResSourceIndex;
    586   1.1.1.8  christos     UINT16                          ResSourceOffset;
    587   1.1.1.8  christos     UINT16                          VendorOffset;
    588   1.1.1.8  christos     UINT16                          VendorLength;
    589   1.1.1.8  christos     /*
    590   1.1.1.8  christos      * Optional fields follow immediately:
    591   1.1.1.8  christos      * 1) PIN list (Words)
    592   1.1.1.8  christos      * 2) Resource Source String
    593   1.1.1.8  christos      * 3) Vendor Data bytes
    594   1.1.1.8  christos      */
    595   1.1.1.8  christos 
    596   1.1.1.8  christos } AML_RESOURCE_PIN_CONFIG;
    597   1.1.1.8  christos 
    598   1.1.1.8  christos #define AML_RESOURCE_PIN_CONFIG_REVISION      1       /* ACPI 6.2 */
    599   1.1.1.8  christos 
    600   1.1.1.8  christos typedef struct aml_resource_pin_group
    601   1.1.1.8  christos {
    602   1.1.1.8  christos     AML_RESOURCE_LARGE_HEADER_COMMON
    603   1.1.1.8  christos     UINT8                           RevisionId;
    604   1.1.1.8  christos     UINT16                          Flags;
    605   1.1.1.8  christos     UINT16                          PinTableOffset;
    606   1.1.1.8  christos     UINT16                          LabelOffset;
    607   1.1.1.8  christos     UINT16                          VendorOffset;
    608   1.1.1.8  christos     UINT16                          VendorLength;
    609   1.1.1.8  christos     /*
    610   1.1.1.8  christos      * Optional fields follow immediately:
    611   1.1.1.8  christos      * 1) PIN list (Words)
    612   1.1.1.8  christos      * 2) Resource Label String
    613   1.1.1.8  christos      * 3) Vendor Data bytes
    614   1.1.1.8  christos      */
    615   1.1.1.8  christos 
    616   1.1.1.8  christos } AML_RESOURCE_PIN_GROUP;
    617   1.1.1.8  christos 
    618   1.1.1.8  christos #define AML_RESOURCE_PIN_GROUP_REVISION      1       /* ACPI 6.2 */
    619   1.1.1.8  christos 
    620   1.1.1.8  christos typedef struct aml_resource_pin_group_function
    621   1.1.1.8  christos {
    622   1.1.1.8  christos     AML_RESOURCE_LARGE_HEADER_COMMON
    623   1.1.1.8  christos     UINT8                           RevisionId;
    624   1.1.1.8  christos     UINT16                          Flags;
    625   1.1.1.8  christos     UINT16                          FunctionNumber;
    626   1.1.1.8  christos     UINT8                           ResSourceIndex;
    627   1.1.1.8  christos     UINT16                          ResSourceOffset;
    628   1.1.1.8  christos     UINT16                          ResSourceLabelOffset;
    629   1.1.1.8  christos     UINT16                          VendorOffset;
    630   1.1.1.8  christos     UINT16                          VendorLength;
    631   1.1.1.8  christos     /*
    632   1.1.1.8  christos      * Optional fields follow immediately:
    633   1.1.1.8  christos      * 1) Resource Source String
    634   1.1.1.8  christos      * 2) Resource Source Label String
    635   1.1.1.8  christos      * 3) Vendor Data bytes
    636   1.1.1.8  christos      */
    637   1.1.1.8  christos 
    638   1.1.1.8  christos } AML_RESOURCE_PIN_GROUP_FUNCTION;
    639   1.1.1.8  christos 
    640   1.1.1.8  christos #define AML_RESOURCE_PIN_GROUP_FUNCTION_REVISION    1       /* ACPI 6.2 */
    641   1.1.1.8  christos 
    642   1.1.1.8  christos typedef struct aml_resource_pin_group_config
    643   1.1.1.8  christos {
    644   1.1.1.8  christos     AML_RESOURCE_LARGE_HEADER_COMMON
    645   1.1.1.8  christos     UINT8                           RevisionId;
    646   1.1.1.8  christos     UINT16                          Flags;
    647   1.1.1.8  christos     UINT8                           PinConfigType;
    648   1.1.1.8  christos     UINT32                          PinConfigValue;
    649   1.1.1.8  christos     UINT8                           ResSourceIndex;
    650   1.1.1.8  christos     UINT16                          ResSourceOffset;
    651   1.1.1.8  christos     UINT16                          ResSourceLabelOffset;
    652   1.1.1.8  christos     UINT16                          VendorOffset;
    653   1.1.1.8  christos     UINT16                          VendorLength;
    654   1.1.1.8  christos     /*
    655   1.1.1.8  christos      * Optional fields follow immediately:
    656   1.1.1.8  christos      * 1) Resource Source String
    657   1.1.1.8  christos      * 2) Resource Source Label String
    658   1.1.1.8  christos      * 3) Vendor Data bytes
    659   1.1.1.8  christos      */
    660   1.1.1.8  christos 
    661   1.1.1.8  christos } AML_RESOURCE_PIN_GROUP_CONFIG;
    662   1.1.1.8  christos 
    663   1.1.1.8  christos #define AML_RESOURCE_PIN_GROUP_CONFIG_REVISION    1       /* ACPI 6.2 */
    664   1.1.1.3  christos 
    665       1.1    jruoho /* restore default alignment */
    666       1.1    jruoho 
    667       1.1    jruoho #pragma pack()
    668       1.1    jruoho 
    669       1.1    jruoho /* Union of all resource descriptors, so we can allocate the worst case */
    670       1.1    jruoho 
    671       1.1    jruoho typedef union aml_resource
    672       1.1    jruoho {
    673       1.1    jruoho     /* Descriptor headers */
    674       1.1    jruoho 
    675       1.1    jruoho     UINT8                                   DescriptorType;
    676       1.1    jruoho     AML_RESOURCE_SMALL_HEADER               SmallHeader;
    677       1.1    jruoho     AML_RESOURCE_LARGE_HEADER               LargeHeader;
    678       1.1    jruoho 
    679       1.1    jruoho     /* Small resource descriptors */
    680       1.1    jruoho 
    681       1.1    jruoho     AML_RESOURCE_IRQ                        Irq;
    682       1.1    jruoho     AML_RESOURCE_DMA                        Dma;
    683       1.1    jruoho     AML_RESOURCE_START_DEPENDENT            StartDpf;
    684       1.1    jruoho     AML_RESOURCE_END_DEPENDENT              EndDpf;
    685       1.1    jruoho     AML_RESOURCE_IO                         Io;
    686       1.1    jruoho     AML_RESOURCE_FIXED_IO                   FixedIo;
    687   1.1.1.3  christos     AML_RESOURCE_FIXED_DMA                  FixedDma;
    688       1.1    jruoho     AML_RESOURCE_VENDOR_SMALL               VendorSmall;
    689       1.1    jruoho     AML_RESOURCE_END_TAG                    EndTag;
    690       1.1    jruoho 
    691       1.1    jruoho     /* Large resource descriptors */
    692       1.1    jruoho 
    693       1.1    jruoho     AML_RESOURCE_MEMORY24                   Memory24;
    694       1.1    jruoho     AML_RESOURCE_GENERIC_REGISTER           GenericReg;
    695       1.1    jruoho     AML_RESOURCE_VENDOR_LARGE               VendorLarge;
    696       1.1    jruoho     AML_RESOURCE_MEMORY32                   Memory32;
    697       1.1    jruoho     AML_RESOURCE_FIXED_MEMORY32             FixedMemory32;
    698       1.1    jruoho     AML_RESOURCE_ADDRESS16                  Address16;
    699       1.1    jruoho     AML_RESOURCE_ADDRESS32                  Address32;
    700       1.1    jruoho     AML_RESOURCE_ADDRESS64                  Address64;
    701       1.1    jruoho     AML_RESOURCE_EXTENDED_ADDRESS64         ExtAddress64;
    702       1.1    jruoho     AML_RESOURCE_EXTENDED_IRQ               ExtendedIrq;
    703   1.1.1.3  christos     AML_RESOURCE_GPIO                       Gpio;
    704   1.1.1.3  christos     AML_RESOURCE_I2C_SERIALBUS              I2cSerialBus;
    705   1.1.1.3  christos     AML_RESOURCE_SPI_SERIALBUS              SpiSerialBus;
    706   1.1.1.3  christos     AML_RESOURCE_UART_SERIALBUS             UartSerialBus;
    707  1.1.1.12  christos     AML_RESOURCE_CSI2_SERIALBUS             Csi2SerialBus;
    708   1.1.1.3  christos     AML_RESOURCE_COMMON_SERIALBUS           CommonSerialBus;
    709   1.1.1.8  christos     AML_RESOURCE_PIN_FUNCTION               PinFunction;
    710   1.1.1.8  christos     AML_RESOURCE_PIN_CONFIG                 PinConfig;
    711   1.1.1.8  christos     AML_RESOURCE_PIN_GROUP                  PinGroup;
    712   1.1.1.8  christos     AML_RESOURCE_PIN_GROUP_FUNCTION         PinGroupFunction;
    713   1.1.1.8  christos     AML_RESOURCE_PIN_GROUP_CONFIG           PinGroupConfig;
    714       1.1    jruoho 
    715       1.1    jruoho     /* Utility overlays */
    716       1.1    jruoho 
    717       1.1    jruoho     AML_RESOURCE_ADDRESS                    Address;
    718       1.1    jruoho     UINT32                                  DwordItem;
    719       1.1    jruoho     UINT16                                  WordItem;
    720       1.1    jruoho     UINT8                                   ByteItem;
    721       1.1    jruoho 
    722       1.1    jruoho } AML_RESOURCE;
    723       1.1    jruoho 
    724   1.1.1.4  christos 
    725   1.1.1.4  christos /* Interfaces used by both the disassembler and compiler */
    726   1.1.1.4  christos 
    727   1.1.1.4  christos void
    728   1.1.1.4  christos MpSaveGpioInfo (
    729   1.1.1.4  christos     ACPI_PARSE_OBJECT       *Op,
    730   1.1.1.4  christos     AML_RESOURCE            *Resource,
    731   1.1.1.4  christos     UINT32                  PinCount,
    732   1.1.1.4  christos     UINT16                  *PinList,
    733   1.1.1.4  christos     char                    *DeviceName);
    734   1.1.1.4  christos 
    735   1.1.1.4  christos void
    736   1.1.1.4  christos MpSaveSerialInfo (
    737   1.1.1.4  christos     ACPI_PARSE_OBJECT       *Op,
    738   1.1.1.4  christos     AML_RESOURCE            *Resource,
    739   1.1.1.4  christos     char                    *DeviceName);
    740   1.1.1.4  christos 
    741   1.1.1.4  christos char *
    742   1.1.1.4  christos MpGetHidFromParseTree (
    743   1.1.1.4  christos     ACPI_NAMESPACE_NODE     *HidNode);
    744   1.1.1.4  christos 
    745   1.1.1.4  christos char *
    746   1.1.1.4  christos MpGetHidViaNamestring (
    747   1.1.1.4  christos     char                    *DeviceName);
    748   1.1.1.4  christos 
    749   1.1.1.4  christos char *
    750   1.1.1.4  christos MpGetConnectionInfo (
    751   1.1.1.4  christos     ACPI_PARSE_OBJECT       *Op,
    752   1.1.1.4  christos     UINT32                  PinIndex,
    753   1.1.1.4  christos     ACPI_NAMESPACE_NODE     **TargetNode,
    754   1.1.1.4  christos     char                    **TargetName);
    755   1.1.1.4  christos 
    756   1.1.1.4  christos char *
    757   1.1.1.4  christos MpGetParentDeviceHid (
    758   1.1.1.4  christos     ACPI_PARSE_OBJECT       *Op,
    759   1.1.1.4  christos     ACPI_NAMESPACE_NODE     **TargetNode,
    760   1.1.1.4  christos     char                    **ParentDeviceName);
    761   1.1.1.4  christos 
    762   1.1.1.4  christos char *
    763   1.1.1.4  christos MpGetDdnValue (
    764   1.1.1.4  christos     char                    *DeviceName);
    765   1.1.1.4  christos 
    766   1.1.1.4  christos char *
    767   1.1.1.4  christos MpGetHidValue (
    768   1.1.1.4  christos     ACPI_NAMESPACE_NODE     *DeviceNode);
    769   1.1.1.4  christos 
    770       1.1    jruoho #endif
    771