]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Include/Library/PlatformHookLib.h
MdeModulePkg: Clean up source files
[mirror_edk2.git] / MdeModulePkg / Include / Library / PlatformHookLib.h
CommitLineData
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
LG
6Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
7This program and the accompanying materials are licensed and made available under\r
8the terms and conditions of the BSD License that accompanies this distribution.\r
467d15ae 9The full text of the license may be found at\r
d1102dba 10http://opensource.org/licenses/bsd-license.php.\r
467d15ae 11\r
d1102dba 12THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
467d15ae 13WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
14\r
15**/\r
16\r
17#ifndef __PLATFORM_HOOK_LIB__\r
18#define __PLATFORM_HOOK_LIB__\r
19\r
20/**\r
21 Performs platform specific initialization required for the CPU to access\r
22 the hardware associated with a SerialPortLib instance. This function does\r
d1102dba
LG
23 not intiailzie the serial port hardware itself. Instead, it initializes\r
24 hardware devices that are required for the CPU to access the serial port\r
467d15ae 25 hardware. This function may be called more than once.\r
26\r
27 @retval RETURN_SUCCESS The platform specific initialization succeeded.\r
28 @retval RETURN_DEVICE_ERROR The platform specific initialization could not be completed.\r
d1102dba 29\r
467d15ae 30**/\r
31RETURN_STATUS\r
32EFIAPI\r
33PlatformHookSerialPortInitialize (\r
34 VOID\r
35 );\r
36\r
37#endif // __PLATFORM_HOOK_LIB__\r
38\r