]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Library/BasePlatformHookLibNull/BasePlatformHookLibNull.c
Add generic SerialPortLib instance for 16550 UARTs configured through PCDs. Depends...
[mirror_edk2.git] / MdeModulePkg / Library / BasePlatformHookLibNull / BasePlatformHookLibNull.c
diff --git a/MdeModulePkg/Library/BasePlatformHookLibNull/BasePlatformHookLibNull.c b/MdeModulePkg/Library/BasePlatformHookLibNull/BasePlatformHookLibNull.c
new file mode 100644 (file)
index 0000000..bd1a31a
--- /dev/null
@@ -0,0 +1,37 @@
+/** @file\r
+  Null Platform Hook Library instance.\r
+\r
+  Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>\r
+  This program and the accompanying materials\r
+  are licensed and made available under the terms and conditions of the BSD License\r
+  which accompanies this distribution.  The full text of the license may be found at\r
+  http://opensource.org/licenses/bsd-license.php\r
+\r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+**/\r
+\r
+#include <Base.h>\r
+#include <Library/PlatformHookLib.h>\r
+\r
+/**\r
+  Performs platform specific initialization required for the CPU to access\r
+  the hardware associated with a SerialPortLib instance.  This function does\r
+  not intiailzie the serial port hardware itself.  Instead, it initializes \r
+  hardware devices that are required for the CPU to access the serial port \r
+  hardware.  This function may be called more than once.\r
+\r
+  @retval RETURN_SUCCESS       The platform specific initialization succeeded.\r
+  @retval RETURN_DEVICE_ERROR  The platform specific initialization could not be completed.\r
\r
+**/\r
+RETURN_STATUS\r
+EFIAPI\r
+PlatformHookSerialPortInitialize (\r
+  VOID\r
+  )\r
+{\r
+  return  RETURN_SUCCESS;\r
+}\r
+\r