2008-04-09 07:46:57 +02:00
|
|
|
/** @file
|
2009-01-09 07:26:42 +01:00
|
|
|
EDKII extented HII IFR guid opcodes.
|
2008-01-21 15:39:56 +01:00
|
|
|
|
2010-04-24 11:49:11 +02:00
|
|
|
Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
|
2010-03-17 21:48:52 +01:00
|
|
|
This program and the accompanying materials are licensed and made available under
|
|
|
|
the terms and conditions of the BSD License that accompanies this distribution.
|
|
|
|
The full text of the license may be found at
|
|
|
|
http://opensource.org/licenses/bsd-license.php.
|
2008-01-21 15:39:56 +01:00
|
|
|
|
2010-03-17 21:48:52 +01:00
|
|
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
2008-01-21 15:39:56 +01:00
|
|
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
|
|
|
|
|
|
**/
|
|
|
|
|
2008-07-08 15:29:42 +02:00
|
|
|
#ifndef __MDEMODULE_HII_H__
|
|
|
|
#define __MDEMODULE_HII_H__
|
2008-01-21 15:39:56 +01:00
|
|
|
|
|
|
|
#define NARROW_CHAR 0xFFF0
|
|
|
|
#define WIDE_CHAR 0xFFF1
|
|
|
|
#define NON_BREAKING_CHAR 0xFFF2
|
|
|
|
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
2010-03-17 21:48:52 +01:00
|
|
|
/// State defined for password statemachine .
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
2008-01-21 15:39:56 +01:00
|
|
|
#define BROWSER_STATE_VALIDATE_PASSWORD 0
|
|
|
|
#define BROWSER_STATE_SET_PASSWORD 1
|
|
|
|
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
2010-03-17 21:48:52 +01:00
|
|
|
/// GUIDed opcodes defined for EDKII implementation.
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
2008-01-21 15:39:56 +01:00
|
|
|
#define EFI_IFR_TIANO_GUID \
|
|
|
|
{ 0xf0b1735, 0x87a0, 0x4193, {0xb2, 0x66, 0x53, 0x8c, 0x38, 0xaf, 0x48, 0xce} }
|
|
|
|
|
|
|
|
#pragma pack(1)
|
|
|
|
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
|
|
|
/// EDKII implementation extension opcodes, new extension can be added here later.
|
|
|
|
///
|
2008-01-21 15:39:56 +01:00
|
|
|
#define EFI_IFR_EXTEND_OP_LABEL 0x0
|
|
|
|
#define EFI_IFR_EXTEND_OP_BANNER 0x1
|
|
|
|
#define EFI_IFR_EXTEND_OP_TIMEOUT 0x2
|
|
|
|
#define EFI_IFR_EXTEND_OP_CLASS 0x3
|
|
|
|
#define EFI_IFR_EXTEND_OP_SUBCLASS 0x4
|
|
|
|
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
2010-03-17 21:48:52 +01:00
|
|
|
/// Label opcode.
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
2008-01-21 15:39:56 +01:00
|
|
|
typedef struct _EFI_IFR_GUID_LABEL {
|
|
|
|
EFI_IFR_OP_HEADER Header;
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
2010-03-17 21:48:52 +01:00
|
|
|
/// EFI_IFR_TIANO_GUID.
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
2008-01-21 15:39:56 +01:00
|
|
|
EFI_GUID Guid;
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
2010-03-17 21:48:52 +01:00
|
|
|
/// EFI_IFR_EXTEND_OP_LABEL.
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
2008-01-21 15:39:56 +01:00
|
|
|
UINT8 ExtendOpCode;
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
2010-03-17 21:48:52 +01:00
|
|
|
/// Label Number.
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
2008-01-21 15:39:56 +01:00
|
|
|
UINT16 Number;
|
|
|
|
} EFI_IFR_GUID_LABEL;
|
|
|
|
|
|
|
|
#define EFI_IFR_BANNER_ALIGN_LEFT 0
|
|
|
|
#define EFI_IFR_BANNER_ALIGN_CENTER 1
|
|
|
|
#define EFI_IFR_BANNER_ALIGN_RIGHT 2
|
|
|
|
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
2010-03-17 21:48:52 +01:00
|
|
|
/// Banner opcode.
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
2008-01-21 15:39:56 +01:00
|
|
|
typedef struct _EFI_IFR_GUID_BANNER {
|
|
|
|
EFI_IFR_OP_HEADER Header;
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
2010-03-17 21:48:52 +01:00
|
|
|
/// EFI_IFR_TIANO_GUID.
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
2008-01-21 15:39:56 +01:00
|
|
|
EFI_GUID Guid;
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
|
|
|
/// EFI_IFR_EXTEND_OP_BANNER
|
|
|
|
///
|
|
|
|
UINT8 ExtendOpCode;
|
2010-03-17 21:48:52 +01:00
|
|
|
EFI_STRING_ID Title; ///< The string token for the banner title.
|
|
|
|
UINT16 LineNumber; ///< 1-based line number.
|
|
|
|
UINT8 Alignment; ///< left, center, or right-aligned.
|
2008-01-21 15:39:56 +01:00
|
|
|
} EFI_IFR_GUID_BANNER;
|
|
|
|
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
2010-03-17 21:48:52 +01:00
|
|
|
/// Timeout opcode.
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
2008-01-21 15:39:56 +01:00
|
|
|
typedef struct _EFI_IFR_GUID_TIMEOUT {
|
|
|
|
EFI_IFR_OP_HEADER Header;
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
2010-03-17 21:48:52 +01:00
|
|
|
/// EFI_IFR_TIANO_GUID.
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
2008-01-21 15:39:56 +01:00
|
|
|
EFI_GUID Guid;
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
2010-03-17 21:48:52 +01:00
|
|
|
/// EFI_IFR_EXTEND_OP_TIMEOUT.
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
2008-01-21 15:39:56 +01:00
|
|
|
UINT8 ExtendOpCode;
|
2010-03-17 21:48:52 +01:00
|
|
|
UINT16 TimeOut; ///< TimeOut Value.
|
2008-01-21 15:39:56 +01:00
|
|
|
} EFI_IFR_GUID_TIMEOUT;
|
|
|
|
|
|
|
|
#define EFI_NON_DEVICE_CLASS 0x00
|
|
|
|
#define EFI_DISK_DEVICE_CLASS 0x01
|
|
|
|
#define EFI_VIDEO_DEVICE_CLASS 0x02
|
|
|
|
#define EFI_NETWORK_DEVICE_CLASS 0x04
|
|
|
|
#define EFI_INPUT_DEVICE_CLASS 0x08
|
|
|
|
#define EFI_ON_BOARD_DEVICE_CLASS 0x10
|
|
|
|
#define EFI_OTHER_DEVICE_CLASS 0x20
|
|
|
|
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
2010-03-17 21:48:52 +01:00
|
|
|
/// Device Class opcode.
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
2008-01-21 15:39:56 +01:00
|
|
|
typedef struct _EFI_IFR_GUID_CLASS {
|
|
|
|
EFI_IFR_OP_HEADER Header;
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
2010-03-17 21:48:52 +01:00
|
|
|
/// EFI_IFR_TIANO_GUID.
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
2008-01-21 15:39:56 +01:00
|
|
|
EFI_GUID Guid;
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
2010-03-17 21:48:52 +01:00
|
|
|
/// EFI_IFR_EXTEND_OP_CLASS.
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
2008-01-21 15:39:56 +01:00
|
|
|
UINT8 ExtendOpCode;
|
2010-03-17 21:48:52 +01:00
|
|
|
UINT16 Class; ///< Device Class from the above.
|
2008-01-21 15:39:56 +01:00
|
|
|
} EFI_IFR_GUID_CLASS;
|
|
|
|
|
|
|
|
#define EFI_SETUP_APPLICATION_SUBCLASS 0x00
|
|
|
|
#define EFI_GENERAL_APPLICATION_SUBCLASS 0x01
|
|
|
|
#define EFI_FRONT_PAGE_SUBCLASS 0x02
|
|
|
|
#define EFI_SINGLE_USE_SUBCLASS 0x03
|
|
|
|
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
|
|
|
/// SubClass opcode
|
|
|
|
///
|
2008-01-21 15:39:56 +01:00
|
|
|
typedef struct _EFI_IFR_GUID_SUBCLASS {
|
|
|
|
EFI_IFR_OP_HEADER Header;
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
2010-03-17 21:48:52 +01:00
|
|
|
/// EFI_IFR_TIANO_GUID.
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
2008-01-21 15:39:56 +01:00
|
|
|
EFI_GUID Guid;
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
2010-03-17 21:48:52 +01:00
|
|
|
/// EFI_IFR_EXTEND_OP_SUBCLASS.
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
2008-01-21 15:39:56 +01:00
|
|
|
UINT8 ExtendOpCode;
|
2010-03-17 21:48:52 +01:00
|
|
|
UINT16 SubClass; ///< Sub Class type from the above.
|
2008-01-21 15:39:56 +01:00
|
|
|
} EFI_IFR_GUID_SUBCLASS;
|
|
|
|
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
|
|
|
/// GUIDed opcodes support for framework vfr.
|
|
|
|
///
|
2008-08-18 10:16:40 +02:00
|
|
|
#define EFI_IFR_FRAMEWORK_GUID \
|
|
|
|
{ 0x31ca5d1a, 0xd511, 0x4931, { 0xb7, 0x82, 0xae, 0x6b, 0x2b, 0x17, 0x8c, 0xd7 } }
|
|
|
|
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
2009-06-11 16:17:23 +02:00
|
|
|
/// Two extended opcodes are added, and new extensions can be added here later.
|
2010-03-17 21:48:52 +01:00
|
|
|
/// One is for framework OneOf question Option Key value;
|
|
|
|
/// another is for framework vareqval.
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
2008-08-18 10:16:40 +02:00
|
|
|
#define EFI_IFR_EXTEND_OP_OPTIONKEY 0x0
|
|
|
|
#define EFI_IFR_EXTEND_OP_VAREQNAME 0x1
|
|
|
|
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
2010-03-17 21:48:52 +01:00
|
|
|
/// Store the framework vfr option key value.
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
2008-07-28 07:51:09 +02:00
|
|
|
typedef struct _EFI_IFR_GUID_OPTIONKEY {
|
|
|
|
EFI_IFR_OP_HEADER Header;
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
2010-03-17 21:48:52 +01:00
|
|
|
/// EFI_IFR_FRAMEWORK_GUID.
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
2008-07-28 07:51:09 +02:00
|
|
|
EFI_GUID Guid;
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
2010-03-17 21:48:52 +01:00
|
|
|
/// EFI_IFR_EXTEND_OP_OPTIONKEY.
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
2008-07-28 07:51:09 +02:00
|
|
|
UINT8 ExtendOpCode;
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
2010-03-17 21:48:52 +01:00
|
|
|
/// OneOf Questiond ID binded by OneOf Option.
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
2008-07-28 07:51:09 +02:00
|
|
|
EFI_QUESTION_ID QuestionId;
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
|
|
|
/// The OneOf Option Value.
|
|
|
|
///
|
2008-07-28 07:51:09 +02:00
|
|
|
EFI_IFR_TYPE_VALUE OptionValue;
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
|
|
|
/// The Framework OneOf Option Key Value.
|
|
|
|
///
|
2008-08-18 10:16:40 +02:00
|
|
|
UINT16 KeyValue;
|
2008-07-28 07:51:09 +02:00
|
|
|
} EFI_IFR_GUID_OPTIONKEY;
|
|
|
|
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
2010-03-17 21:48:52 +01:00
|
|
|
/// Store the framework vfr vareqval name number.
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
2008-08-18 10:16:40 +02:00
|
|
|
typedef struct _EFI_IFR_GUID_VAREQNAME {
|
|
|
|
EFI_IFR_OP_HEADER Header;
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
2010-03-17 21:48:52 +01:00
|
|
|
/// EFI_IFR_FRAMEWORK_GUID.
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
2008-08-18 10:16:40 +02:00
|
|
|
EFI_GUID Guid;
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
2010-03-17 21:48:52 +01:00
|
|
|
/// EFI_IFR_EXTEND_OP_VAREQNAME.
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
2008-08-18 10:16:40 +02:00
|
|
|
UINT8 ExtendOpCode;
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
|
|
|
/// Question ID of the Numeric Opcode created.
|
|
|
|
///
|
2008-08-18 10:16:40 +02:00
|
|
|
EFI_QUESTION_ID QuestionId;
|
2008-11-27 05:53:43 +01:00
|
|
|
///
|
|
|
|
/// For vareqval (0x100), NameId is 0x100.
|
2010-03-17 21:48:52 +01:00
|
|
|
/// This value will convert to a Unicode String following this rule;
|
|
|
|
/// sprintf(StringBuffer, "%d", NameId) .
|
2008-11-27 05:53:43 +01:00
|
|
|
/// The the Unicode String will be used as a EFI Variable Name.
|
|
|
|
///
|
2008-11-18 07:30:49 +01:00
|
|
|
UINT16 NameId;
|
2008-08-18 10:16:40 +02:00
|
|
|
} EFI_IFR_GUID_VAREQNAME;
|
|
|
|
|
2008-01-21 15:39:56 +01:00
|
|
|
#pragma pack()
|
|
|
|
|
2009-02-23 16:18:48 +01:00
|
|
|
extern EFI_GUID gEfiIfrTianoGuid;
|
|
|
|
extern EFI_GUID gEfiIfrFrameworkGuid;
|
|
|
|
|
2008-01-21 15:39:56 +01:00
|
|
|
#endif
|
|
|
|
|