mirror of https://github.com/acidanthera/audk.git
added ACPI_TIMER_FREQUENCY definition
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1577 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
34a0c84476
commit
148ac238cc
|
@ -2,14 +2,14 @@
|
||||||
This file contains some basic ACPI definitions that are consumed by drivers
|
This file contains some basic ACPI definitions that are consumed by drivers
|
||||||
that do not care about ACPI versions.
|
that do not care about ACPI versions.
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation
|
Copyright (c) 2006, Intel Corporation
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
http://opensource.org/licenses/bsd-license.php
|
http://opensource.org/licenses/bsd-license.php
|
||||||
|
|
||||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
|
||||||
Module Name: Acpi.h
|
Module Name: Acpi.h
|
||||||
|
|
||||||
|
@ -55,6 +55,11 @@ typedef struct {
|
||||||
#define ACPI_ADDRESS_SPACE_TYPE_IO 0x01
|
#define ACPI_ADDRESS_SPACE_TYPE_IO 0x01
|
||||||
#define ACPI_ADDRESS_SPACE_TYPE_BUS 0x02
|
#define ACPI_ADDRESS_SPACE_TYPE_BUS 0x02
|
||||||
|
|
||||||
|
//
|
||||||
|
// Power Management Timer frequency is fixed at 3.579545MHz
|
||||||
|
//
|
||||||
|
#define ACPI_TIMER_FREQUENCY 3579545
|
||||||
|
|
||||||
//
|
//
|
||||||
// Make sure structures match spec
|
// Make sure structures match spec
|
||||||
//
|
//
|
||||||
|
@ -88,29 +93,29 @@ typedef struct {
|
||||||
|
|
||||||
//
|
//
|
||||||
// Resource Type Specific Flags
|
// Resource Type Specific Flags
|
||||||
// Ref ACPI specification 6.4.3.5.5
|
// Ref ACPI specification 6.4.3.5.5
|
||||||
//
|
//
|
||||||
// Bit [0] : Write Status, _RW
|
// Bit [0] : Write Status, _RW
|
||||||
//
|
//
|
||||||
#define EFI_ACPI_MEMORY_RESOURCE_SPECIFIC_FLAG_READ_WRITE (1 << 0)
|
#define EFI_ACPI_MEMORY_RESOURCE_SPECIFIC_FLAG_READ_WRITE (1 << 0)
|
||||||
#define EFI_ACPI_MEMORY_RESOURCE_SPECIFIC_FLAG_READ_ONLY (0 << 0)
|
#define EFI_ACPI_MEMORY_RESOURCE_SPECIFIC_FLAG_READ_ONLY (0 << 0)
|
||||||
//
|
//
|
||||||
// Bit [2:1] : Memory Attributes, _MEM
|
// Bit [2:1] : Memory Attributes, _MEM
|
||||||
//
|
//
|
||||||
#define EFI_ACPI_MEMORY_RESOURCE_SPECIFIC_FLAG_NON_CACHEABLE (0 << 1)
|
#define EFI_ACPI_MEMORY_RESOURCE_SPECIFIC_FLAG_NON_CACHEABLE (0 << 1)
|
||||||
#define EFI_ACPI_MEMORY_RESOURCE_SPECIFIC_FLAG_CACHEABLE (1 << 1)
|
#define EFI_ACPI_MEMORY_RESOURCE_SPECIFIC_FLAG_CACHEABLE (1 << 1)
|
||||||
#define EFI_ACPI_MEMORY_RESOURCE_SPECIFIC_FLAG_CACHEABLE_WRITE_COMBINING (2 << 1)
|
#define EFI_ACPI_MEMORY_RESOURCE_SPECIFIC_FLAG_CACHEABLE_WRITE_COMBINING (2 << 1)
|
||||||
#define EFI_ACPI_MEMORY_RESOURCE_SPECIFIC_FLAG_CACHEABLE_PREFETCHABLE (3 << 1)
|
#define EFI_ACPI_MEMORY_RESOURCE_SPECIFIC_FLAG_CACHEABLE_PREFETCHABLE (3 << 1)
|
||||||
//
|
//
|
||||||
// Bit [4:3] : Memory Attributes, _MTP
|
// Bit [4:3] : Memory Attributes, _MTP
|
||||||
//
|
//
|
||||||
#define EFI_ACPI_MEMORY_RESOURCE_SPECIFIC_FLAG_ADDRESS_RANGE_MEMORY (0 << 3)
|
#define EFI_ACPI_MEMORY_RESOURCE_SPECIFIC_FLAG_ADDRESS_RANGE_MEMORY (0 << 3)
|
||||||
#define EFI_ACPI_MEMORY_RESOURCE_SPECIFIC_FLAG_ADDRESS_RANGE_RESERVED (1 << 3)
|
#define EFI_ACPI_MEMORY_RESOURCE_SPECIFIC_FLAG_ADDRESS_RANGE_RESERVED (1 << 3)
|
||||||
#define EFI_ACPI_MEMORY_RESOURCE_SPECIFIC_FLAG_ADDRESS_RANGE_ACPI (2 << 3)
|
#define EFI_ACPI_MEMORY_RESOURCE_SPECIFIC_FLAG_ADDRESS_RANGE_ACPI (2 << 3)
|
||||||
#define EFI_APCI_MEMORY_RESOURCE_SPECIFIC_FLAG_ADDRESS_RANGE_NVS (3 << 3)
|
#define EFI_APCI_MEMORY_RESOURCE_SPECIFIC_FLAG_ADDRESS_RANGE_NVS (3 << 3)
|
||||||
//
|
//
|
||||||
// Bit [5] : Memory to I/O Translation, _TTP
|
// Bit [5] : Memory to I/O Translation, _TTP
|
||||||
//
|
//
|
||||||
#define EFI_ACPI_MEMORY_RESOURCE_SPECIFIC_FLAG_TYPE_TRANSLATION (1 << 5)
|
#define EFI_ACPI_MEMORY_RESOURCE_SPECIFIC_FLAG_TYPE_TRANSLATION (1 << 5)
|
||||||
#define EFI_ACPI_MEMORY_RESOURCE_SPECIFIC_FLAG_TYPE_STATIC (0 << 5)
|
#define EFI_ACPI_MEMORY_RESOURCE_SPECIFIC_FLAG_TYPE_STATIC (0 << 5)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue