]> git.proxmox.com Git - mirror_edk2.git/blame - UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformConsole.h
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / UefiPayloadPkg / Library / PlatformBootManagerLib / PlatformConsole.h
CommitLineData
04af8bf2
DG
1/** @file\r
2Head file for BDS Platform specific code\r
3\r
4Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>\r
5SPDX-License-Identifier: BSD-2-Clause-Patent\r
6**/\r
7\r
6ef57974
GD
8#ifndef PLATFORM_CONSOLE_H_\r
9#define PLATFORM_CONSOLE_H_\r
04af8bf2
DG
10\r
11#include <PiDxe.h>\r
12#include <IndustryStandard/Pci.h>\r
13#include <Library/DebugLib.h>\r
14#include <Library/BaseMemoryLib.h>\r
15#include <Library/UefiBootServicesTableLib.h>\r
16#include <Library/MemoryAllocationLib.h>\r
17#include <Library/BaseLib.h>\r
18#include <Library/PcdLib.h>\r
19#include <Library/UefiLib.h>\r
20#include <Library/DevicePathLib.h>\r
21#include <Protocol/PciIo.h>\r
22\r
e5efcf8b 23#define IS_PCI_ISA_PDECODE(_p) IS_CLASS3 (_p, PCI_CLASS_BRIDGE, PCI_CLASS_BRIDGE_ISA_PDECODE, 0)\r
04af8bf2
DG
24\r
25//\r
26// Type definitions\r
27//\r
28\r
29//\r
30// Platform Root Bridge\r
31//\r
32typedef struct {\r
e5efcf8b
MK
33 ACPI_HID_DEVICE_PATH PciRootBridge;\r
34 EFI_DEVICE_PATH_PROTOCOL End;\r
04af8bf2
DG
35} PLATFORM_ROOT_BRIDGE_DEVICE_PATH;\r
36\r
37typedef\r
38EFI_STATUS\r
d0efa681 39(EFIAPI *SIMPLE_PROTOCOL_INSTANCE_CALLBACK)(\r
04af8bf2 40 IN EFI_HANDLE Handle,\r
d0efa681 41 IN VOID *Instance\r
e5efcf8b 42 );\r
04af8bf2
DG
43\r
44/**\r
45 @param[in] Handle - Handle of PCI device instance\r
46 @param[in] PciIo - PCI IO protocol instance\r
47 @param[in] Pci - PCI Header register block\r
48**/\r
49typedef\r
50EFI_STATUS\r
51(EFIAPI *VISIT_PCI_INSTANCE_CALLBACK)(\r
52 IN EFI_HANDLE Handle,\r
53 IN EFI_PCI_IO_PROTOCOL *PciIo,\r
54 IN PCI_TYPE00 *Pci\r
e5efcf8b 55 );\r
04af8bf2
DG
56\r
57/**\r
58 Platform console init. Include the platform firmware vendor, revision\r
59 and so crc check.\r
60\r
61**/\r
62VOID\r
63EFIAPI\r
64PlatformConsoleInit (\r
65 VOID\r
e5efcf8b 66 );\r
04af8bf2
DG
67\r
68#endif\r