]>
Commit | Line | Data |
---|---|---|
878ddf1f | 1 | /** @file\r |
2 | This file contains some basic ACPI definitions that are consumed by drivers\r | |
3 | that do not care about ACPI versions.\r | |
4 | \r | |
5 | Copyright (c) 2006, Intel Corporation \r | |
6 | All rights reserved. This program and the accompanying materials \r | |
7 | are licensed and made available under the terms and conditions of the BSD License \r | |
8 | which accompanies this distribution. The full text of the license may be found at \r | |
9 | http://opensource.org/licenses/bsd-license.php \r | |
10 | \r | |
11 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
12 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
13 | \r | |
14 | Module Name: Acpi.h\r | |
15 | \r | |
16 | **/\r | |
17 | \r | |
18 | #ifndef _ACPI_H_\r | |
19 | #define _ACPI_H_\r | |
20 | \r | |
21 | //\r | |
22 | // Common table header, this prefaces all ACPI tables, including FACS, but\r | |
23 | // excluding the RSD PTR structure\r | |
24 | //\r | |
25 | typedef struct {\r | |
26 | UINT32 Signature;\r | |
27 | UINT32 Length;\r | |
28 | } EFI_ACPI_COMMON_HEADER;\r | |
29 | \r | |
30 | //\r | |
31 | // Common ACPI description table header. This structure prefaces most ACPI tables.\r | |
32 | //\r | |
33 | #pragma pack(1)\r | |
34 | \r | |
35 | typedef struct {\r | |
36 | UINT32 Signature;\r | |
37 | UINT32 Length;\r | |
38 | UINT8 Revision;\r | |
39 | UINT8 Checksum;\r | |
40 | UINT8 OemId[6];\r | |
41 | UINT64 OemTableId;\r | |
42 | UINT32 OemRevision;\r | |
43 | UINT32 CreatorId;\r | |
44 | UINT32 CreatorRevision;\r | |
45 | } EFI_ACPI_DESCRIPTION_HEADER;\r | |
46 | \r | |
47 | #pragma pack()\r | |
48 | //\r | |
49 | // Define for Pci Host Bridge Resource Allocation\r | |
50 | //\r | |
51 | #define ACPI_ADDRESS_SPACE_DESCRIPTOR 0x8A\r | |
52 | #define ACPI_END_TAG_DESCRIPTOR 0x79\r | |
53 | \r | |
54 | #define ACPI_ADDRESS_SPACE_TYPE_MEM 0x00\r | |
55 | #define ACPI_ADDRESS_SPACE_TYPE_IO 0x01\r | |
56 | #define ACPI_ADDRESS_SPACE_TYPE_BUS 0x02\r | |
57 | \r | |
58 | //\r | |
59 | // Make sure structures match spec\r | |
60 | //\r | |
61 | #pragma pack(1)\r | |
62 | \r | |
63 | typedef struct {\r | |
64 | UINT8 Desc;\r | |
65 | UINT16 Len;\r | |
66 | UINT8 ResType;\r | |
67 | UINT8 GenFlag;\r | |
68 | UINT8 SpecificFlag;\r | |
69 | UINT64 AddrSpaceGranularity;\r | |
70 | UINT64 AddrRangeMin;\r | |
71 | UINT64 AddrRangeMax;\r | |
72 | UINT64 AddrTranslationOffset;\r | |
73 | UINT64 AddrLen;\r | |
74 | } EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR;\r | |
75 | \r | |
76 | typedef struct {\r | |
77 | UINT8 Desc;\r | |
78 | UINT8 Checksum;\r | |
79 | } EFI_ACPI_END_TAG_DESCRIPTOR;\r | |
80 | \r | |
81 | //\r | |
82 | // General use definitions\r | |
83 | //\r | |
84 | #define EFI_ACPI_RESERVED_BYTE 0x00\r | |
85 | #define EFI_ACPI_RESERVED_WORD 0x0000\r | |
86 | #define EFI_ACPI_RESERVED_DWORD 0x00000000\r | |
87 | #define EFI_ACPI_RESERVED_QWORD 0x0000000000000000\r | |
88 | \r | |
89 | #pragma pack()\r | |
90 | \r | |
91 | #endif\r |