]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BasePostCodeLibPort80/PostCode.c
Checked in part of MDE library instances following PI and UEFI. It includes:
[mirror_edk2.git] / MdePkg / Library / BasePostCodeLibPort80 / PostCode.c
index 93c24d5eb6b4e86fa565d8efcdccd79ad912f027..d3b11e66c7db0ac36542f262d21eb7739640fd0d 100644 (file)
 **/\r
 \r
 \r
+//\r
+// The package level header files this module uses\r
+//\r
+#include <Base.h>\r
+//\r
+// The protocols, PPI and GUID defintions for this module\r
+//\r
+//\r
+// The Library classes this module consumes\r
+//\r
+#include <Library/PostCodeLib.h>\r
+#include <Library/PcdLib.h>\r
+#include <Library/IoLib.h>\r
+\r
 /**\r
   Sends an 32-bit value to a POST card.\r
 \r
@@ -96,7 +110,7 @@ PostCodeEnabled (
   VOID\r
   )\r
 {\r
-  return ((PcdGet8(PcdPostCodePropertyMask) & POST_CODE_PROPERTY_POST_CODE_ENABLED) != 0);\r
+  return (BOOLEAN) ((PcdGet8(PcdPostCodePropertyMask) & POST_CODE_PROPERTY_POST_CODE_ENABLED) != 0);\r
 }\r
 \r
 \r
@@ -119,5 +133,5 @@ PostCodeDescriptionEnabled (
   VOID\r
   )\r
 {\r
-  return ((PcdGet8(PcdPostCodePropertyMask) & POST_CODE_PROPERTY_POST_CODE_ENABLED) != 0);\r
+  return (BOOLEAN) ((PcdGet8(PcdPostCodePropertyMask) & POST_CODE_PROPERTY_POST_CODE_ENABLED) != 0);\r
 }\r