// Up to how many lines does the ordered list display
//
#define ORDERED_LIST_SIZE 4
//
// This is the Input Error Message
//
#define INPUT_ERROR 1
//
// This is the NV RAM update required Message
//
#define NV_UPDATE_REQUIRED 2
//
// Refresh the Status Bar with flags
//
#define REFRESH_STATUS_BAR 0xff
//
// This width is basically the sum of the prompt and option widths
//
#define QUESTION_BLOCK_WIDTH 50
//
// Width of the Language Description (Using ISO-639-2 3 ASCII letter standard)
//
#define LANG_DESC_WIDTH 3
//
// Maximum Number of Binaries we can see
//
#define MAX_BINARIES 255
//
// Invalid Handle
//
#define EFI_HII_INVALID_HANDLE 0xFFFF
//
// Invalid Offset Value
//
#define INVALID_OFFSET_VALUE 0xFFFF
structStringPart{
structStringPart*Next;
CHAR8String[QUESTION_BLOCK_WIDTH+2];
};
//
// The tag definition defines the data associated with a tag (an operation
// in the IFR lingo). The tag is thus a modified union of all the data
// required for tags. The user should be careful to only rely upon information
// relevant to that tag as the contents of other fields is undefined.
//
// The intent here is for this to be all of the data associated with a particular tag.
// Some of this data is extracted from the IFR and left alone. Other data will be derived
// when the page is selected (since that's the first time we really know what language the
// page is to be displayed in) and still other data will vary based on the selection.
// If you'd like to consider alternatives, let me know. This structure has grown somewhat organically.
// It gets a new item stuffed in it when a new item is needed. When I finally decided I needed the
// StringPart structure, items got added here, for example.
//
typedefstruct{
UINT8Operand;// The operand (first byte) of the variable length tag.
EFI_GUIDGuidValue;// Primarily for FormSet data
EFI_PHYSICAL_ADDRESSCallbackHandle;
UINT16Class;
UINT16SubClass;
UINT16NumberOfLines;// The number of lines the tag takes up on the page. Adjusted when we display the page as it can change from language to language.
UINT16PageLine;
UINT16PageColumn;
UINT16OptionWidth;// The option can be wider than the column usually associated with options. This is the width on the last option line
STRING_REFText;// Used for title, subtitle, prompt, etc. This is the string token associated with the string. This token is language independent.
STRING_REFTextTwo;// Used for title, subtitle, prompt, etc. This is the string token associated with the string. This token is language independent.
STRING_REFHelp;// Null means no help Same as above but for languages.
UINT16Consistency;// Do we need to check this opcode against consistency? If > 0, yes.
UINT16Id;
UINT16Id2;// The questions (mainly) have identifiers associated with them. These are filled in from the IFR tags and used by e.g. the RPN calculations. (com1 is set to, versus com2 is set to)
//
// These are the three values that are created to determine where in the variable the data is stored. This should, in general,
// be allocated by the build tool. The one major issue is, once storage is allocated for something, it can't be reallocated or we will get a mess.
//
UINT16StorageStart;
//
// These are the three values that are created to determine where in the variable the data is stored. This should, in general,
// be allocated by the build tool. The one major issue is, once storage is allocated for something, it can't be reallocated or we will get a mess.
//
UINT8StorageWidth;
//
// These are the three values that are created to determine where in the variable the data is stored. This should, in general,
// be allocated by the build tool. The one major issue is, once storage is allocated for something, it can't be reallocated or we will get a mess.
//
UINT16Value;
//
// (Default or current)
//
UINT8Flags;
UINT16Key;
//
// Used to preserve a value during late consistency checking
//
UINT16OldValue;
UINT16Minimum;
UINT16Maximum;
UINT16Step;
UINT16Default;
UINT16NvDataSize;
UINT16ConsistencyId;
BOOLEANGrayOut;
BOOLEANSuppress;
UINT16Encoding;// Data from the tags. The first three are used by the numeric input. Encoding is used by the password stuff (a placeholder today - may go away).
UINT16*IntList;// List of the values possible for a list question
//
// The string is obtained from the string list and formatted into lines and the lines are held in this linked list.
// If we have more than a screen's worth of items, we will end up with cases where we have to display the last couple
// lines of a tag's string above the currently selected one, or, display a few lines of a tag at the bottom of a screen.
//
structStringPart*StringList;
BOOLEANResetRequired;// Primarily used to determine if a reset is required by changing this op-code.
UINT16VariableNumber;// Used to define which variable the StorageStart will be pertinent for (0-based) For single variable VFR this will always be 0.
//
// Used to define which variable the StorageStart will be pertinent for (0-based) This is used for boolean check of ID versus ID
// so that a user can compare the value of one variable.field content versus another variable.field content.