2 Head file for BDS Platform specific code
4 Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
8 #ifndef PLATFORM_CONSOLE_H_
9 #define PLATFORM_CONSOLE_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>
23 #define IS_PCI_ISA_PDECODE(_p) IS_CLASS3 (_p, PCI_CLASS_BRIDGE, PCI_CLASS_BRIDGE_ISA_PDECODE, 0)
30 // Platform Root Bridge
33 ACPI_HID_DEVICE_PATH PciRootBridge
;
34 EFI_DEVICE_PATH_PROTOCOL End
;
35 } PLATFORM_ROOT_BRIDGE_DEVICE_PATH
;
39 (EFIAPI
*SIMPLE_PROTOCOL_INSTANCE_CALLBACK
)(
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
51 (EFIAPI
*VISIT_PCI_INSTANCE_CALLBACK
)(
53 IN EFI_PCI_IO_PROTOCOL
*PciIo
,
58 Platform console init. Include the platform firmware vendor, revision