EFI IFR ONE OF OPTION

From PhoenixWiki

Jump to: navigation, search

Creates a pre-defined option for a question.

Prototype

#define EFI_IFR_ONE_OF_OPTION_OP 0x09
typedef struct _EFI_IFR_ONE_OF_OPTION {
  EFI_IFR_OP_HEADER  Header;
  EFI_STRING_ID      Option;
  UINT8              Flags;
  UINT8              Type;
  EFI_IFR_TYPE_VALUE Value;
} EFI_IFR_ONE_OF_OPTION;

Members

Member Description
Header The sequence that defines the type of opcode as well as the length of the opcode being defined. Header.OpCode = EFI_IFR_ONE_OF_OPTION_OP.
Option The string token reference to the option description string for this particular opcode.
Flags Specifies the flags associated with the current option.
#define EFI_IFR_OPTION_DEFAULT     0x10
#define EFI_IFR_OPTION_DEFAULT_MFG 0x20

If EFI_IFR_OPTION_DEFAULT is specified, then the option's value is the standard default value for the question in which the option is nested. Only one option nested within a question can have this bit set.

If EFI_IFR_OPTION_DEFAULT_MFG is specified, then the option's value is the manufacturing default value for the question in which the option is nested. Only one option nested within a question can have this bit set.

Type Specifies the type of the option’s value. .
Value The union of all of the different possible values. The actual contents (and size) of the field depends on Type.

Description

Create a selection for use in any of the questions.

The value is encoded within the opcode itself, unless EFI_IFR_TYPE_OTHER is specified in the Type member, in which case the value is determined by a nested EFI_IFR_VALUE.

An image may be associated with the option using a nested EFI_IFR_IMAGE.


Copyright (C) 2008 Phoenix Technologies Ltd. All Rights Reserved. Portions (C) 2007-2008 UEFI Forum, Inc. Used with permission.

Personal tools