);\r
\r
\r
-/**\r
- Returns a boolean indicating if the firmware configuration interface is\r
- available for library-internal purposes.\r
-\r
- This function never changes fw_cfg state.\r
-\r
- @retval TRUE The interface is available internally.\r
- @retval FALSE The interface is not available internally.\r
-**/\r
-BOOLEAN\r
-EFIAPI\r
-InternalQemuFwCfgIsAvailable (\r
- VOID\r
- );\r
-\r
-\r
/**\r
Determine if S3 support is explicitly enabled.\r
\r
#include <Library/MemoryAllocationLib.h>\r
#include <Library/UefiBootServicesTableLib.h>\r
\r
+#include "QemuFwCfgLibInternal.h"\r
+\r
\r
/**\r
Reads an 8-bit I/O port fifo into a block of memory.\r
--- /dev/null
+/** @file\r
+ Internal interfaces specific to the QemuFwCfgLib instances in OvmfPkg.\r
+\r
+ Copyright (C) 2016, Red Hat, Inc.\r
+\r
+ This program and the accompanying materials are licensed and made available\r
+ under the terms and conditions of the BSD License which accompanies this\r
+ 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, WITHOUT\r
+ WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+**/\r
+\r
+#ifndef __QEMU_FW_CFG_LIB_INTERNAL_H__\r
+#define __QEMU_FW_CFG_LIB_INTERNAL_H__\r
+\r
+/**\r
+ Returns a boolean indicating if the firmware configuration interface is\r
+ available for library-internal purposes.\r
+\r
+ This function never changes fw_cfg state.\r
+\r
+ @retval TRUE The interface is available internally.\r
+ @retval FALSE The interface is not available internally.\r
+**/\r
+BOOLEAN\r
+InternalQemuFwCfgIsAvailable (\r
+ VOID\r
+ );\r
+\r
+#endif\r
#include <Library/DebugLib.h>\r
#include <Library/QemuFwCfgLib.h>\r
\r
+#include "QemuFwCfgLibInternal.h"\r
+\r
STATIC BOOLEAN mQemuFwCfgSupported = FALSE;\r
\r
\r
@retval FALSE The interface is not available internally.\r
**/\r
BOOLEAN\r
-EFIAPI\r
InternalQemuFwCfgIsAvailable (\r
VOID\r
)\r
#include <Library/DebugLib.h>\r
#include <Library/QemuFwCfgLib.h>\r
\r
+#include "QemuFwCfgLibInternal.h"\r
\r
/**\r
Returns a boolean indicating if the firmware configuration interface\r
@retval FALSE The interface is not available internally.\r
**/\r
BOOLEAN\r
-EFIAPI\r
InternalQemuFwCfgIsAvailable (\r
VOID\r
)\r