]>
Commit | Line | Data |
---|---|---|
467d15ae | 1 | /** @file\r |
2 | Platform hook library. Platform can provide an implementation of this\r | |
d1102dba | 3 | library class to provide hooks that may be required for some type of\r |
467d15ae | 4 | platform initialization.\r |
5 | \r | |
d1102dba | 6 | Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r |
9d510e61 | 7 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
467d15ae | 8 | \r |
9 | **/\r | |
10 | \r | |
11 | #ifndef __PLATFORM_HOOK_LIB__\r | |
12 | #define __PLATFORM_HOOK_LIB__\r | |
13 | \r | |
14 | /**\r | |
15 | Performs platform specific initialization required for the CPU to access\r | |
16 | the hardware associated with a SerialPortLib instance. This function does\r | |
d1102dba LG |
17 | not intiailzie the serial port hardware itself. Instead, it initializes\r |
18 | hardware devices that are required for the CPU to access the serial port\r | |
467d15ae | 19 | hardware. This function may be called more than once.\r |
20 | \r | |
21 | @retval RETURN_SUCCESS The platform specific initialization succeeded.\r | |
22 | @retval RETURN_DEVICE_ERROR The platform specific initialization could not be completed.\r | |
d1102dba | 23 | \r |
467d15ae | 24 | **/\r |
25 | RETURN_STATUS\r | |
26 | EFIAPI\r | |
27 | PlatformHookSerialPortInitialize (\r | |
28 | VOID\r | |
29 | );\r | |
30 | \r | |
31 | #endif // __PLATFORM_HOOK_LIB__\r | |
32 | \r |