EFI IFR ONE OF

From PhoenixWiki

Jump to: navigation, search

Creates a number question.

Prototype

#define EFI_IFR_ONE_OF_OP 0x05
typedef struct _EFI_IFR_ONE_OF {
  EFI_IFR_OP_HEADER       Header;
  EFI_IFR_QUESTION_HEADER Question;
  UINT8                   Flags;
  union {
    struct {
      UINT8               MinValue;
      UINT8               MaxValue;
      UINT8               Step;
    } u8;
    struct {
      UINT16              MinValue;
      UINT16              MaxValue;
      UINT16              Step;
    } u16;
    struct {
      UINT32              MinValue;
      UINT32              MaxValue;
      UINT32              Step;
    } u32;
    struct {
      UINT64              MinValue;
      UINT64              MaxValue;
      UINT64              Step;
    } u64;
  } data;
} EFI_IFR_ONE_OF;

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_OP.
Question The standard question header.
Flags Specifies flags related to the numeric question. See “Related Definitions” in EFI_IFR_NUMERIC.
MinValue The minimum value to be accepted by the browser for this opcode. The size of the data field may vary from 8 to 64 bits.
MaxValue The maximum value to be accepted by the browser for this opcode. The size of the data field may vary from 8 to 64 bits.
Step Defines the amount to increment or decrement the value each time a user requests avalue change. If the step value is 0, then the input mechanism for the numeric value is

to be free-form and require the user to type in the actual value. The size of the data field may vary from 8 to 64 bits.

Description

Creates a numeric question on the current form, with built-in error checking and default information. The storage size depends on the EFI_IFR_NUMERIC_SIZE portion of the Flags field. There are two ways to specify defaults for this question: one or more nested EFI_IFR_ONE_OF_OPTION (lowest priority) or nested EFI_IFR_DEFAULT (highest priority).

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


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

Personal tools