]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/Library/PlatformDebugLibIoPort/DebugLibDetectRom.c
b950919675d3d67e809a1f29840cad32a046a920
[mirror_edk2.git] / OvmfPkg / Library / PlatformDebugLibIoPort / DebugLibDetectRom.c
1 /** @file
2 Detection code for QEMU debug port.
3 SEC instance, cannot cache the result of detection.
4
5 Copyright (c) 2017, Red Hat, Inc.<BR>
6 This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php.
10
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13
14 **/
15
16 #include <Base.h>
17 #include "DebugLibDetect.h"
18
19 /**
20 This constructor function does not have anything to do.
21
22 @retval RETURN_SUCCESS The constructor always returns RETURN_SUCCESS.
23
24 **/
25 RETURN_STATUS
26 EFIAPI
27 PlatformRomDebugLibIoPortConstructor (
28 VOID
29 )
30 {
31 return RETURN_SUCCESS;
32 }
33
34 /**
35 Return the result of detecting the debug I/O port device.
36
37 @retval TRUE if the debug I/O port device was detected.
38 @retval FALSE otherwise
39
40 **/
41 BOOLEAN
42 EFIAPI
43 PlatformDebugLibIoPortFound (
44 VOID
45 )
46 {
47 return PlatformDebugLibIoPortDetect ();
48 }