3 Copyright (c) 2007, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 This file contains some basic ACPI definitions that are consumed by drivers
19 that do not care about ACPI versions.
23 #ifndef _ACPI_COMMON_H_
24 #define _ACPI_COMMON_H_
29 // Common table header, this prefaces all ACPI tables, including FACS, but
30 // excluding the RSD PTR structure
35 } EFI_ACPI_COMMON_HEADER
;
38 // Common ACPI description table header. This structure prefaces most ACPI tables.
51 UINT32 CreatorRevision
;
52 } EFI_ACPI_DESCRIPTION_HEADER
;
56 // Define for Pci Host Bridge Resource Allocation
58 #define ACPI_ADDRESS_SPACE_DESCRIPTOR 0x8A
59 #define ACPI_END_TAG_DESCRIPTOR 0x79
61 #define ACPI_ADDRESS_SPACE_TYPE_MEM 0x00
62 #define ACPI_ADDRESS_SPACE_TYPE_IO 0x01
63 #define ACPI_ADDRESS_SPACE_TYPE_BUS 0x02
66 // Make sure structures match spec
76 UINT64 AddrSpaceGranularity
;
79 UINT64 AddrTranslationOffset
;
81 } EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR
;
86 } EFI_ACPI_END_TAG_DESCRIPTOR
;
89 // General use definitions
91 #define EFI_ACPI_RESERVED_BYTE 0x00
92 #define EFI_ACPI_RESERVED_WORD 0x0000
93 #define EFI_ACPI_RESERVED_DWORD 0x00000000
94 #define EFI_ACPI_RESERVED_QWORD 0x0000000000000000