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