2 Sample ACPI Platform Driver
4 Copyright (c) 2008 - 2012, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
9 #ifndef _ACPI_PLATFORM_H_INCLUDED_
10 #define _ACPI_PLATFORM_H_INCLUDED_
14 #include <Protocol/AcpiTable.h>
15 #include <Protocol/FirmwareVolume2.h>
16 #include <Protocol/PciIo.h>
18 #include <Library/BaseLib.h>
19 #include <Library/UefiBootServicesTableLib.h>
20 #include <Library/DebugLib.h>
21 #include <Library/PcdLib.h>
22 #include <Library/XenPlatformLib.h>
24 #include <IndustryStandard/Acpi.h>
27 EFI_PCI_IO_PROTOCOL
*PciIo
;
29 } ORIGINAL_ATTRIBUTES
;
31 typedef struct S3_CONTEXT S3_CONTEXT
;
36 IN EFI_ACPI_TABLE_PROTOCOL
*AcpiProtocol
,
37 IN VOID
*AcpiTableBuffer
,
38 IN UINTN AcpiTableBufferSize
,
49 QemuInstallAcpiTable (
50 IN EFI_ACPI_TABLE_PROTOCOL
*AcpiProtocol
,
51 IN VOID
*AcpiTableBuffer
,
52 IN UINTN AcpiTableBufferSize
,
59 IN EFI_ACPI_TABLE_PROTOCOL
*AcpiProtocol
64 InstallQemuFwCfgTables (
65 IN EFI_ACPI_TABLE_PROTOCOL
*AcpiProtocol
71 IN EFI_ACPI_TABLE_PROTOCOL
*AcpiTable
76 OUT ORIGINAL_ATTRIBUTES
**OriginalAttributes
,
82 IN ORIGINAL_ATTRIBUTES
*OriginalAttributes
,
88 OUT S3_CONTEXT
**S3Context
,
89 IN UINTN WritePointerCount
94 IN S3_CONTEXT
*S3Context
98 SaveCondensedWritePointerToS3Context (
99 IN OUT S3_CONTEXT
*S3Context
,
100 IN UINT16 PointerItem
,
101 IN UINT8 PointerSize
,
102 IN UINT32 PointerOffset
,
103 IN UINT64 PointerValue
107 TransferS3ContextToBootScript (
108 IN S3_CONTEXT
*S3Context