2 Head file for BDS Platform specific code
4 Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
14 #ifndef _PLATFORM_CONSOLE_H
15 #define _PLATFORM_CONSOLE_H
18 #include <IndustryStandard/Pci.h>
19 #include <Library/DebugLib.h>
20 #include <Library/BaseMemoryLib.h>
21 #include <Library/UefiBootServicesTableLib.h>
22 #include <Library/MemoryAllocationLib.h>
23 #include <Library/BaseLib.h>
24 #include <Library/PcdLib.h>
25 #include <Library/UefiLib.h>
26 #include <Library/DevicePathLib.h>
27 #include <Protocol/PciIo.h>
29 #define IS_PCI_ISA_PDECODE(_p) IS_CLASS3 (_p, PCI_CLASS_BRIDGE, PCI_CLASS_BRIDGE_ISA_PDECODE, 0)
30 #define IS_PCI_16550SERIAL(_p) IS_CLASS3 (_p, PCI_CLASS_SCC, PCI_SUBCLASS_SERIAL, PCI_IF_16550)
37 // Platform Root Bridge
40 ACPI_HID_DEVICE_PATH PciRootBridge
;
41 EFI_DEVICE_PATH_PROTOCOL End
;
42 } PLATFORM_ROOT_BRIDGE_DEVICE_PATH
;
46 (EFIAPI
*PROTOCOL_INSTANCE_CALLBACK
)(
53 @param[in] Handle - Handle of PCI device instance
54 @param[in] PciIo - PCI IO protocol instance
55 @param[in] Pci - PCI Header register block
59 (EFIAPI
*VISIT_PCI_INSTANCE_CALLBACK
)(
61 IN EFI_PCI_IO_PROTOCOL
*PciIo
,
66 Platform console init. Include the platform firmware vendor, revision