]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BasePostCodeLibPort80/PostCode.c
Add check before use to make code run more safer.
[mirror_edk2.git] / MdePkg / Library / BasePostCodeLibPort80 / PostCode.c
index 358c9ba1da0f66592fc10819a0f8c0beef764ea8..925c7404bc39b7f8db57fca10b5b1af50f1d15cd 100644 (file)
@@ -1,22 +1,19 @@
 /** @file\r
   Post Code Library instance that writes post code values to I/O port 0x80.\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
-  All rights reserved. This program and the accompanying materials                          \r
+  Copyright (c) 2006 - 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
+  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
-\r
-\r
 #include <Base.h>\r
 \r
-\r
 #include <Library/PostCodeLib.h>\r
 #include <Library/PcdLib.h>\r
 #include <Library/IoLib.h>\r
@@ -36,7 +33,7 @@
 \r
   @param  Value  The 32-bit value to write to the POST card.\r
 \r
-  @return  Value The 32-bit value to write to the POST card.\r
+  @return The 32-bit value to write to the POST card.\r
 \r
 **/\r
 UINT32\r
@@ -67,11 +64,11 @@ PostCode (
   immediately.\r
 \r
   @param  Value        The 32-bit value to write to the POST card.\r
-  @param  Description  Pointer to an ASCII string that is a description of the \r
+  @param  Description  The pointer to an ASCII string that is a description of the \r
                        POST code value.  This is an optional parameter that may \r
-                       be NULL. Ihis parameter is ignored in this implementation. \r
+                       be NULL.\r
 \r
-  @return  Value       The 32-bit value to write to the POST card.\r
+  @return The 32-bit value to write to the POST card.\r
 \r
 **/\r
 UINT32\r