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