3 Copyright (c) 2004 - 2006, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
23 #include "EdkIIGlueBase.h"
26 Sends an 32-bit value to a POST card.
28 Sends the 32-bit value specified by Value to a POST card, and returns Value.
29 Some implementations of this library function may perform I/O operations
30 directly to a POST card device. Other implementations may send Value to
31 ReportStatusCode(), and the status code reporting mechanism will eventually
32 display the 32-bit value on the status reporting device.
34 PostCode() must actively prevent recursion. If PostCode() is called while
35 processing another any other Report Status Code Library function, then
36 PostCode() must return Value immediately.
38 @param Value The 32-bit value to write to the POST card.
49 DEBUG((EFI_D_INFO
, "POST %08x\n", Value
));
55 Sends an 32-bit value to a POST and associated ASCII string.
57 Sends the 32-bit value specified by Value to a POST card, and returns Value.
58 If Description is not NULL, then the ASCII string specified by Description is
59 also passed to the handler that displays the POST card value. Some
60 implementations of this library function may perform I/O operations directly
61 to a POST card device. Other implementations may send Value to ReportStatusCode(),
62 and the status code reporting mechanism will eventually display the 32-bit
63 value on the status reporting device.
65 PostCodeWithDescription()must actively prevent recursion. If
66 PostCodeWithDescription() is called while processing another any other Report
67 Status Code Library function, then PostCodeWithDescription() must return Value
70 @param Value The 32-bit value to write to the POST card.
71 @param Description Pointer to an ASCII string that is a description of the
72 POST code value. This is an optional parameter that may
80 GluePostCodeWithDescription (
82 IN CONST CHAR8
*Description OPTIONAL
85 DEBUG((EFI_D_INFO
, "POST %08x - %s\n", Value
, Description
));
91 Returns TRUE if POST Codes are enabled.
93 This function returns TRUE if the POST_CODE_PROPERTY_POST_CODE_ENABLED
94 bit of PcdPostCodePropertyMask is set. Otherwise FALSE is returned.
96 @retval TRUE The POST_CODE_PROPERTY_POST_CODE_ENABLED bit of
97 PcdPostCodeProperyMask is set.
98 @retval FALSE The POST_CODE_PROPERTY_POST_CODE_ENABLED bit of
99 PcdPostCodeProperyMask is clear.
104 GluePostCodeEnabled (
108 return (BOOLEAN
) ((PcdGet8(PcdPostCodePropertyMask
) & POST_CODE_PROPERTY_POST_CODE_ENABLED
) != 0);
113 Returns TRUE if POST code descriptions are enabled.
115 This function returns TRUE if the POST_CODE_PROPERTY_POST_CODE_ENABLED
116 bit of PcdPostCodePropertyMask is set. Otherwise FALSE is returned.
118 @retval TRUE The POST_CODE_PROPERTY_POST_CODE_ENABLED bit of
119 PcdPostCodeProperyMask is set.
120 @retval FALSE The POST_CODE_PROPERTY_POST_CODE_ENABLED bit of
121 PcdPostCodeProperyMask is clear.
126 GluePostCodeDescriptionEnabled (
130 return (BOOLEAN
) ((PcdGet8(PcdPostCodePropertyMask
) & POST_CODE_PROPERTY_POST_CODE_ENABLED
) != 0);