summaryrefslogtreecommitdiffstats
path: root/DuetPkg/Include
diff options
context:
space:
mode:
authorniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>2010-02-21 09:30:01 +0000
committerniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>2010-02-21 09:30:01 +0000
commit0e047a2a83d3e4c04f73d26f3978a4efde0b2bc4 (patch)
treeb36827e00942f134465e3defa8f747f93ecefd73 /DuetPkg/Include
parent450ec0ed87d34dd325b66515dd7530fc59ac6267 (diff)
downloadedk2-0e047a2a83d3e4c04f73d26f3978a4efde0b2bc4.tar.gz
edk2-0e047a2a83d3e4c04f73d26f3978a4efde0b2bc4.tar.bz2
edk2-0e047a2a83d3e4c04f73d26f3978a4efde0b2bc4.zip
Port AcpiResetDxe from EDK to EDKII to enable reset function on DUET above legacy free platform.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10034 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'DuetPkg/Include')
-rw-r--r--DuetPkg/Include/Guid/AcpiDescription.h42
1 files changed, 12 insertions, 30 deletions
diff --git a/DuetPkg/Include/Guid/AcpiDescription.h b/DuetPkg/Include/Guid/AcpiDescription.h
index d8095b896b..8f0becd7cf 100644
--- a/DuetPkg/Include/Guid/AcpiDescription.h
+++ b/DuetPkg/Include/Guid/AcpiDescription.h
@@ -1,6 +1,6 @@
/** @file
-Copyright (c) 2006 - 2007, Intel Corporation
+Copyright (c) 2006 - 2010, Intel Corporation
All rights reserved. This program and the accompanying materials
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
@@ -23,31 +23,13 @@ Abstract:
#ifndef _EFI_ACPI_DESCRIPTION_H_
#define _EFI_ACPI_DESCRIPTION_H_
+#include <IndustryStandard/Acpi.h>
+
#define EFI_ACPI_DESCRIPTION_GUID \
{ \
0x3c699197, 0x93c, 0x4c69, {0xb0, 0x6b, 0x12, 0x8a, 0xe3, 0x48, 0x1d, 0xc9} \
}
-typedef struct {
- UINT8 AddressSpaceId;
- UINT8 RegisterBitWidth;
- UINT8 RegisterBitOffset;
- UINT8 AccessSize;
- UINT64 Address;
-} EFI_ACPI_GENERIC_ADDRESS_STRUCTURE;
-
-#define ACPI_ADDRESS_ID_MEMORY 0
-#define ACPI_ADDRESS_ID_IO 1
-#define ACPI_ADDRESS_ID_PCI 2
-#define ACPI_ADDRESS_ID_EC 3
-#define ACPI_ADDRESS_ID_SMBUS 4
-
-#define ACPI_ADDRESS_ACCESS_ANY 0
-#define ACPI_ADDRESS_ACCESS_BYTE 1
-#define ACPI_ADDRESS_ACCESS_WORD 2
-#define ACPI_ADDRESS_ACCESS_DWORD 3
-#define ACPI_ADDRESS_ACCESS_QWORD 4
-
//
// Following structure defines ACPI Description information.
// This information is platform specific, may be consumed by DXE generic driver.
@@ -57,7 +39,7 @@ typedef struct _EFI_ACPI_DESCRIPTION {
//
// For Timer
//
- EFI_ACPI_GENERIC_ADDRESS_STRUCTURE PM_TMR_BLK;
+ EFI_ACPI_3_0_GENERIC_ADDRESS_STRUCTURE PM_TMR_BLK;
UINT8 PM_TMR_LEN;
UINT8 TMR_VAL_EXT;
@@ -71,17 +53,17 @@ typedef struct _EFI_ACPI_DESCRIPTION {
//
// For Reset
//
- EFI_ACPI_GENERIC_ADDRESS_STRUCTURE RESET_REG;
+ EFI_ACPI_3_0_GENERIC_ADDRESS_STRUCTURE RESET_REG;
UINT8 RESET_VALUE;
//
// For Shutdown
//
- EFI_ACPI_GENERIC_ADDRESS_STRUCTURE PM1a_EVT_BLK;
- EFI_ACPI_GENERIC_ADDRESS_STRUCTURE PM1b_EVT_BLK;
- EFI_ACPI_GENERIC_ADDRESS_STRUCTURE PM1a_CNT_BLK;
- EFI_ACPI_GENERIC_ADDRESS_STRUCTURE PM1b_CNT_BLK;
- EFI_ACPI_GENERIC_ADDRESS_STRUCTURE PM2_CNT_BLK;
+ EFI_ACPI_3_0_GENERIC_ADDRESS_STRUCTURE PM1a_EVT_BLK;
+ EFI_ACPI_3_0_GENERIC_ADDRESS_STRUCTURE PM1b_EVT_BLK;
+ EFI_ACPI_3_0_GENERIC_ADDRESS_STRUCTURE PM1a_CNT_BLK;
+ EFI_ACPI_3_0_GENERIC_ADDRESS_STRUCTURE PM1b_CNT_BLK;
+ EFI_ACPI_3_0_GENERIC_ADDRESS_STRUCTURE PM2_CNT_BLK;
UINT8 PM1_EVT_LEN;
UINT8 PM1_CNT_LEN;
UINT8 PM2_CNT_LEN;
@@ -103,8 +85,8 @@ typedef struct _EFI_ACPI_DESCRIPTION {
//
// GPE
//
- EFI_ACPI_GENERIC_ADDRESS_STRUCTURE GPE0_BLK;
- EFI_ACPI_GENERIC_ADDRESS_STRUCTURE GPE1_BLK;
+ EFI_ACPI_3_0_GENERIC_ADDRESS_STRUCTURE GPE0_BLK;
+ EFI_ACPI_3_0_GENERIC_ADDRESS_STRUCTURE GPE1_BLK;
UINT8 GPE0_BLK_LEN;
UINT8 GPE1_BLK_LEN;
UINT8 GPE1_BASE;