2 Sample ACPI Platform Driver
4 Copyright (c) 2008 - 2012, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15 #ifndef _ACPI_PLATFORM_H_INCLUDED_
16 #define _ACPI_PLATFORM_H_INCLUDED_
20 #include <Protocol/AcpiTable.h>
21 #include <Protocol/FirmwareVolume2.h>
22 #include <Protocol/PciIo.h>
24 #include <Library/BaseLib.h>
25 #include <Library/UefiBootServicesTableLib.h>
26 #include <Library/DebugLib.h>
27 #include <Library/PcdLib.h>
29 #include <IndustryStandard/Acpi.h>
32 EFI_PCI_IO_PROTOCOL
*PciIo
;
34 } ORIGINAL_ATTRIBUTES
;
36 typedef struct S3_CONTEXT S3_CONTEXT
;
41 IN EFI_ACPI_TABLE_PROTOCOL
*AcpiProtocol
,
42 IN VOID
*AcpiTableBuffer
,
43 IN UINTN AcpiTableBufferSize
,
54 QemuInstallAcpiTable (
55 IN EFI_ACPI_TABLE_PROTOCOL
*AcpiProtocol
,
56 IN VOID
*AcpiTableBuffer
,
57 IN UINTN AcpiTableBufferSize
,
69 IN EFI_ACPI_TABLE_PROTOCOL
*AcpiProtocol
74 InstallQemuFwCfgTables (
75 IN EFI_ACPI_TABLE_PROTOCOL
*AcpiProtocol
81 IN EFI_ACPI_TABLE_PROTOCOL
*AcpiTable
86 OUT ORIGINAL_ATTRIBUTES
**OriginalAttributes
,
92 IN ORIGINAL_ATTRIBUTES
*OriginalAttributes
,
98 OUT S3_CONTEXT
**S3Context
,
99 IN UINTN WritePointerCount
104 IN S3_CONTEXT
*S3Context
108 SaveCondensedWritePointerToS3Context (
109 IN OUT S3_CONTEXT
*S3Context
,
110 IN UINT16 PointerItem
,
111 IN UINT8 PointerSize
,
112 IN UINT32 PointerOffset
,
113 IN UINT64 PointerValue
117 TransferS3ContextToBootScript (
118 IN S3_CONTEXT
*S3Context