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)
24 #define IS_PCI_16550SERIAL(_p) IS_CLASS3 (_p, PCI_CLASS_SCC, PCI_SUBCLASS_SERIAL, PCI_IF_16550)
31 // Platform Root Bridge
34 ACPI_HID_DEVICE_PATH PciRootBridge
;
35 EFI_DEVICE_PATH_PROTOCOL End
;
36 } PLATFORM_ROOT_BRIDGE_DEVICE_PATH
;
40 (EFIAPI
*PROTOCOL_INSTANCE_CALLBACK
)(
47 @param[in] Handle - Handle of PCI device instance
48 @param[in] PciIo - PCI IO protocol instance
49 @param[in] Pci - PCI Header register block
53 (EFIAPI
*VISIT_PCI_INSTANCE_CALLBACK
)(
55 IN EFI_PCI_IO_PROTOCOL
*PciIo
,
60 Platform console init. Include the platform firmware vendor, revision