]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Include/Library/PlatformHookLib.h
MdeModulePkg: Add match2 opcode support in SetupBrowserDxe and sample code in DriverS...
[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
3 library class to provide hooks that may be required for some type of \r
4 platform initialization.\r
5\r
6Copyright (c) 2010, 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
9The full text of the license may be found at\r
10http://opensource.org/licenses/bsd-license.php. \r
11\r
12THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
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
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
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
29 \r
30**/\r
31RETURN_STATUS\r
32EFIAPI\r
33PlatformHookSerialPortInitialize (\r
34 VOID\r
35 );\r
36\r
37#endif // __PLATFORM_HOOK_LIB__\r
38\r