]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/Library/PlatformDebugLibIoPort/DebugLibDetectRom.c
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / OvmfPkg / Library / PlatformDebugLibIoPort / DebugLibDetectRom.c
1 /** @file
2 Detection code for hypervisor debug port.
3 SEC instance, cannot cache the result of detection.
4
5 Copyright (c) 2017, Red Hat, Inc.<BR>
6 SPDX-License-Identifier: BSD-2-Clause-Patent
7
8 **/
9
10 #include <Base.h>
11 #include "DebugLibDetect.h"
12
13 /**
14 This constructor function does not have anything to do.
15
16 @retval RETURN_SUCCESS The constructor always returns RETURN_SUCCESS.
17
18 **/
19 RETURN_STATUS
20 EFIAPI
21 PlatformRomDebugLibIoPortConstructor (
22 VOID
23 )
24 {
25 return RETURN_SUCCESS;
26 }
27
28 /**
29 Return the result of detecting the debug I/O port device.
30
31 @retval TRUE if the debug I/O port device was detected.
32 @retval FALSE otherwise
33
34 **/
35 BOOLEAN
36 EFIAPI
37 PlatformDebugLibIoPortFound (
38 VOID
39 )
40 {
41 return PlatformDebugLibIoPortDetect ();
42 }