Root/
Source at commit 2351 created 10 years 5 months ago. By ifabio, more info from dmi tables | |
---|---|
1 | /*␊ |
2 | Copyright (c) 2010, Intel Corporation␊ |
3 | All rights reserved.␊ |
4 | ␊ |
5 | Redistribution and use in source and binary forms, with or without␊ |
6 | modification, are permitted provided that the following conditions are met:␊ |
7 | ␊ |
8 | * Redistributions of source code must retain the above copyright notice,␊ |
9 | this list of conditions and the following disclaimer.␊ |
10 | * Redistributions in binary form must reproduce the above copyright notice,␊ |
11 | this list of conditions and the following disclaimer in the documentation␊ |
12 | and/or other materials provided with the distribution.␊ |
13 | * Neither the name of Intel Corporation nor the names of its contributors␊ |
14 | may be used to endorse or promote products derived from this software␊ |
15 | without specific prior written permission.␊ |
16 | ␊ |
17 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND␊ |
18 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED␊ |
19 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE␊ |
20 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR␊ |
21 | ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES␊ |
22 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;␊ |
23 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON␊ |
24 | ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT␊ |
25 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS␊ |
26 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.␊ |
27 | */␊ |
28 | ␊ |
29 | #ifndef acpi_code_h␊ |
30 | #define acpi_code_h␊ |
31 | ␊ |
32 | #include "datatype.h"␊ |
33 | #include "acpi.h"␊ |
34 | #include "ppm.h"␊ |
35 | ␊ |
36 | void setRsdpchecksum(ACPI_TABLE_RSDP *rsdp);␊ |
37 | void setRsdpXchecksum(ACPI_TABLE_RSDP *rsdp);␊ |
38 | U32 update_rsdp_with_xsdt(ACPI_TABLE_RSDP *rsdp, ACPI_TABLE_XSDT *xsdt);␊ |
39 | U32 update_rsdp_with_rsdt(ACPI_TABLE_RSDP *rsdp, ACPI_TABLE_RSDT *rsdt);␊ |
40 | ␊ |
41 | void SetChecksum(struct acpi_table_header *header);␊ |
42 | U32 ProcessMadtInfo(ACPI_TABLE_MADT * madt, MADT_INFO * madt_info);␊ |
43 | void MoveRsdtInsertSsdt(ACPI_TABLE_RSDP * RsdPointer, ACPI_TABLE_RSDT * OldRsdtPointer, ACPI_TABLE_RSDT * NewRsdtPointer, ACPI_TABLE_SSDT * SsdtPointer);␊ |
44 | void InsertSsdt(ACPI_TABLE_RSDT * RsdtPointer, ACPI_TABLE_SSDT * SsdtPointer);␊ |
45 | void InsertSsdt64(ACPI_TABLE_XSDT * XsdtPointer, ACPI_TABLE_SSDT * SsdtPointer);␊ |
46 | U32 ProcessFadt(ACPI_TABLE_FADT * FadtPointer, U32 pmbase);␊ |
47 | U32 ProcessDsdt(ACPI_TABLE_DSDT * DsdtPointer, U8 * PCIUIDPointer, U8 uid);␊ |
48 | ␊ |
49 | void setByteConst(ACPI_BYTE_CONST * byteConst, U8 byteData);␊ |
50 | void *buildByteConst(void *current, U8 byteData);␊ |
51 | void setWordConst(ACPI_WORD_CONST * wordConst, U16 wordData);␊ |
52 | void *buildWordConst(void *current, U16 wordData);␊ |
53 | void setDwordConst(ACPI_DWORD_CONST * dwordConst, U32 dwordData);␊ |
54 | void *buildDwordConst(void *current, U32 dwordData);␊ |
55 | void *buildSmallBuffer(void *current);␊ |
56 | void *buildEndTag(void *current);␊ |
57 | void *buildGenericRegister(void *current, const ACPI_GENERIC_ADDRESS * gas);␊ |
58 | ␊ |
59 | void *buildSmallMethod(void *current, U32 name, U8 methodFlags);␊ |
60 | void *buildMethod(void *current, U32 name, U8 methodFlags);␊ |
61 | void *buildReturnZero(void *current);␊ |
62 | void *buildReturnOpcode(void *current, U8 opcodeToReturn);␊ |
63 | void *buildReturnPackage(void *current, U8 numElements);␊ |
64 | void *buildNamedDword(void *current, U32 name, U32 dword);␊ |
65 | void *buildOpCode(void *current, U8 opCode);␊ |
66 | ␊ |
67 | void *buildNameSeg(void *current, U32 name);␊ |
68 | void setSmallPackage(ACPI_SMALL_PACKAGE * package, U8 numElements);␊ |
69 | void *buildSmallPackage(void *current, U8 numElements);␊ |
70 | void setPackageLength(ACPI_PACKAGE_LENGTH * packageLength, U32 length);␊ |
71 | void *buildPackageLength(void *current, U32 Length);␊ |
72 | void *buildNamePath(void *current, U32 name);␊ |
73 | void *buildTableHeader(void *current, U32 signature, U64 oemTableId);␊ |
74 | ␊ |
75 | #endif // acpi_code_h␊ |
76 |