EDK2 doxygen online documents - Firmware Encoding Index 1
EDK2 doxygen online documents - Firmware Encoding Index
Functions

EdkCompatibilityPkg/Compatibility/FrameworkHiiOnUefiHiiThunk/UefiIfrParserExpression.h File Reference

Go to the source code of this file.

Functions

VOID ResetScopeStack (VOID)
EFI_STATUS PushScope (IN UINT8 Operand)
EFI_STATUS PopScope (OUT UINT8 *Operand)
VOID ExtendValueToU64 (IN EFI_HII_VALUE *Value)
INTN CompareHiiValue (IN EFI_HII_VALUE *Value1, IN EFI_HII_VALUE *Value2, IN EFI_HII_HANDLE HiiHandle OPTIONAL)

Detailed Description

Internal Function and Macro defintions for IFR Expression evaluation used in Ifr Parsing. This header file should only be included by UefiIfrParserExpression.c and UefiIfrParser.c

Copyright (c) 2008 - 2010, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php

THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

Definition in file UefiIfrParserExpression.h.


Function Documentation

INTN CompareHiiValue ( IN EFI_HII_VALUE Value1,
IN EFI_HII_VALUE Value2,
IN EFI_HII_HANDLE HiiHandle  OPTIONAL 
)

Compare two Hii value.

Parameters:
Value1Expression value to compare on left-hand
Value2Expression value to compare on right-hand
HiiHandleOnly required for string compare
Return values:
EFI_INVALID_PARAMETERCould not perform comparation on two values
0Two operators equeal
0Value1 is greater than Value2
0Value1 is less than Value2

Compare two Hii value.

Parameters:
Value1Expression value to compare on left-hand.
Value2Expression value to compare on right-hand.
HiiHandleOnly required for string compare.
Return values:
EFI_INVALID_PARAMETERCould not perform compare on two values.
0Two operators equal.
Returns:
Positive value if Value1 is greater than Value2.
Return values:
Negativevalue if Value1 is less than Value2.

Definition at line 1385 of file Expression.c.

VOID ExtendValueToU64 ( IN EFI_HII_VALUE Value)

Zero extend integer/boolean/date/time to UINT64 for comparing.

Parameters:
ValueHII Value to be converted.
Returns:
None.

Zero extend integer/boolean/date/time to UINT64 for comparing.

Parameters:
ValueHII Value to be converted.

Definition at line 328 of file UefiIfrParserExpression.c.

EFI_STATUS PopScope ( OUT UINT8 Operand)

Pop an Operand from the Stack

Parameters:
OperandOperand to pop.
Return values:
EFI_SUCCESSThe value was pushed onto the stack.
EFI_OUT_OF_RESOURCESThere is not enough system memory to grow the stack.

Definition at line 240 of file UefiIfrParserExpression.c.

EFI_STATUS PushScope ( IN UINT8  Operand)

Push an Operand onto the Stack

Parameters:
OperandOperand to push.
Return values:
EFI_SUCCESSThe value was pushed onto the stack.
EFI_OUT_OF_RESOURCESThere is not enough system memory to grow the stack.

Definition at line 211 of file UefiIfrParserExpression.c.

VOID ResetScopeStack ( VOID  )

Reset stack pointer to begin of the stack.

Definition at line 192 of file UefiIfrParserExpression.c.

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines