Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aienux/blob/main/vendor/uefi-raw/src/protocol/hii/ifr.rs # aienux Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aienux / vendor / uefi-raw / src / protocol / hii / ifr.rs` 1449 lines ยท 32085 bytes Raw Blame History 1 // SPDX-License-Identifier: MIT OR Apache-2.0 2 3 //! Internal Forms Representation (IFR) data types 4 5 use super::{ 6 AnimationId, DefaultId, FormId, HiiDate, HiiRef, HiiTime, ImageId, QuestionId, StringId, 7 VarstoreId, 8 }; 9 use crate::{Boolean, Guid, newtype_enum}; 10 use bitflags::bitflags; 11 use core::fmt; 12 13 newtype_enum! { 14 /// IFR types (`EFI_IFR_TYPE_*`) 15 pub enum IfrType: u8 => { 16 NUM_SIZE_8 = 0x00, 17 NUM_SIZE_16 = 0x01, 18 NUM_SIZE_32 = 0x02, 19 NUM_SIZE_64 = 0x03, 20 BOOLEAN = 0x04, 21 TIME = 0x05, 22 DATE = 0x06, 23 STRING = 0x07, 24 OTHER = 0x08, 25 UNDEFINED = 0x09, 26 ACTION = 0x0A, 27 BUFFER = 0x0B, 28 REF = 0x0C, 29 } 30 } 31 32 /// `EFI_IFR_TYPE_VALUE` 33 #[repr(C, packed)] 34 #[derive(Copy, Clone)] 35 pub union IfrTypeValue { 36 pub u8: u8, // EFI_IFR_TYPE_NUM_SIZE_8 37 pub u16: u16, // EFI_IFR_TYPE_NUM_SIZE_16 38 pub u32: u32, // EFI_IFR_TYPE_NUM_SIZE_32 39 pub u64: u64, // EFI_IFR_TYPE_NUM_SIZE_64 40 pub b: Boolean, // EFI_IFR_TYPE_BOOLEAN 41 pub time: HiiTime, // EFI_IFR_TYPE_TIME 42 pub date: HiiDate, // EFI_IFR_TYPE_DATE 43 pub string: StringId, // EFI_IFR_TYPE_STRING, EFI_IFR_TYPE_ACTION 44 pub hii_ref: HiiRef, // EFI_IFR_TYPE_REF 45 } 46 47 impl fmt::Debug for IfrTypeValue { 48 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { 49 f.debug_struct("IfrTypeValue").finish() 50 } 51 } 52 53 newtype_enum! { 54 /// IFR opcode values (`EFI_IFR_*_OP`) 55 pub enum IfrOpcode: u8 => { 56 FORM = 0x01, 57 SUBTITLE = 0x02, 58 TEXT = 0x03, 59 IMAGE = 0x04, 60 ONE_OF = 0x05, 61 CHECKBOX = 0x06, 62 NUMERIC = 0x07, 63 PASSWORD = 0x08, 64 ONE_OF_OPTION = 0x09, 65 SUPPRESS_IF = 0x0A, 66 LOCKED = 0x0B, 67 ACTION = 0x0C, 68 RESET_BUTTON = 0x0D, 69 FORM_SET = 0x0E, 70 REF = 0x0F, 71 NO_SUBMIT_IF = 0x10, 72 INCONSISTENT_IF = 0x11, 73 EQ_ID_VAL = 0x12, 74 EQ_ID_ID = 0x13, 75 EQ_ID_VAL_LIST = 0x14, 76 AND = 0x15, 77 OR = 0x16, 78 NOT = 0x17, 79 RULE = 0x18, 80 GRAY_OUT_IF = 0x19, 81 DATE = 0x1A, 82 TIME = 0x1B, 83 STRING = 0x1C, 84 REFRESH = 0x1D, 85 DISABLE_IF = 0x1E, 86 ANIMATION = 0x1F, 87 TO_LOWER = 0x20, 88 TO_UPPER = 0x21, 89 MAP = 0x22, 90 ORDERED_LIST = 0x23, 91 VARSTORE = 0x24, 92 VARSTORE_NAME_VALUE = 0x25, 93 VARSTORE_EFI = 0x26, 94 VARSTORE_DEVICE = 0x27, 95 VERSION = 0x28, 96 END = 0x29, 97 MATCH = 0x2A, 98 GET = 0x2B, 99 SET = 0x2C, 100 READ = 0x2D, 101 WRITE = 0x2E, 102 EQUAL = 0x2F, 103 NOT_EQUAL = 0x30, 104 GREATER_THAN = 0x31, 105 GREATER_EQUAL = 0x32, 106 LESS_THAN = 0x33, 107 LESS_EQUAL = 0x34, 108 BITWISE_AND = 0x35, 109 BITWISE_OR = 0x36, 110 BITWISE_NOT = 0x37, 111 SHIFT_LEFT = 0x38, 112 SHIFT_RIGHT = 0x39, 113 ADD = 0x3A, 114 SUBTRACT = 0x3B, 115 MULTIPLY = 0x3C, 116 DIVIDE = 0x3D, 117 MODULO = 0x3E, 118 RULE_REF = 0x3F, 119 QUESTION_REF1 = 0x40, 120 QUESTION_REF2 = 0x41, 121 UINT8 = 0x42, 122 UINT16 = 0x43, 123 UINT32 = 0x44, 124 UINT64 = 0x45, 125 TRUE = 0x46, 126 FALSE = 0x47, 127 TO_UINT = 0x48, 128 TO_STRING = 0x49, 129 TO_BOOLEAN = 0x4A, 130 MID = 0x4B, 131 FIND = 0x4C, 132 TOKEN = 0x4D, 133 STRING_REF1 = 0x4E, 134 STRING_REF2 = 0x4F, 135 CONDITIONAL = 0x50, 136 QUESTION_REF3 = 0x51, 137 ZERO = 0x52, 138 ONE = 0x53, 139 ONES = 0x54, 140 UNDEFINED = 0x55, 141 LENGTH = 0x56, 142 DUP = 0x57, 143 THIS = 0x58, 144 SPAN = 0x59, 145 VALUE = 0x5A, 146 DEFAULT = 0x5B, 147 DEFAULTSTORE = 0x5C, 148 FORM_MAP = 0x5D, 149 CATENATE = 0x5E, 150 GUID = 0x5F, 151 SECURITY = 0x60, 152 MODAL_TAG = 0x61, 153 REFRESH_ID = 0x62, 154 WARNING_IF = 0x63, 155 MATCH2 = 0x64, 156 } 157 } 158 159 /// `EFI_IFR_OP_HEADER` 160 #[derive(Debug, Clone, Copy)] 161 #[repr(C, packed)] 162 pub struct IfrOpHeader { 163 pub opcode: IfrOpcode, 164 pub length_and_scope: u8, 165 } 166 167 /// `EFI_IFR_STATEMENT_HEADER` 168 #[derive(Debug, Clone, Copy)] 169 #[repr(C, packed)] 170 pub struct IfrStatementHeader { 171 pub prompt: StringId, 172 pub help: StringId, 173 } 174 175 /// Describes how to access a variable store from an associated `VarstoreId` in 176 /// [`IfrQuestionHeader`], [`IfrGet`], and [`IfrSet`]. 177 #[derive(Clone, Copy)] 178 #[repr(C, packed)] 179 pub union VarstoreInfo { 180 pub var_name: StringId, 181 pub var_offset: u16, 182 } 183 184 impl fmt::Debug for VarstoreInfo { 185 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { 186 f.debug_struct("VarstoreInfo").finish() 187 } 188 } 189 190 bitflags! { 191 /// `EFI_IFR_FLAG_*` 192 #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 193 #[repr(transparent)] 194 pub struct IfrQuestionFlags: u8 { 195 const READ_ONLY = 1 << 0; 196 const CALLBACK = 1 << 2; 197 const RESET_REQUIRED = 1 << 4; 198 const REST_STYLE = 1 << 5; 199 const RECONNECT_REQUIRED = 1 << 6; 200 const OPTIONS_ONLY = 1 << 7; 201 } 202 } 203 204 /// `EFI_IFR_QUESTION_HEADER` 205 #[derive(Debug, Clone, Copy)] 206 #[repr(C, packed)] 207 pub struct IfrQuestionHeader { 208 pub header: IfrStatementHeader, 209 pub question_id: QuestionId, 210 pub varstore_id: VarstoreId, 211 pub varstore_info: VarstoreInfo, 212 pub flags: IfrQuestionFlags, 213 } 214 215 /// `EFI_IFR_ACTION` 216 #[derive(Debug, Clone, Copy)] 217 #[repr(C, packed)] 218 pub struct IfrAction { 219 pub header: IfrOpHeader, 220 pub question: IfrQuestionHeader, 221 pub question_config: StringId, 222 } 223 224 /// `EFI_IFR_ACTION_1` 225 #[derive(Debug, Clone, Copy)] 226 #[repr(C, packed)] 227 pub struct IfrAction1 { 228 pub header: IfrOpHeader, 229 pub question: IfrQuestionHeader, 230 } 231 232 /// `EFI_IFR_ANIMATION` 233 #[derive(Debug, Clone, Copy)] 234 #[repr(C, packed)] 235 pub struct IfrAnimation { 236 pub header: IfrOpHeader, 237 pub id: AnimationId, 238 } 239 240 /// `EFI_IFR_ADD` 241 #[derive(Debug, Clone, Copy)] 242 #[repr(C, packed)] 243 pub struct IfrAdd { 244 pub header: IfrOpHeader, 245 } 246 247 /// `EFI_IFR_AND` 248 #[derive(Debug, Clone, Copy)] 249 #[repr(C, packed)] 250 pub struct IfrAnd { 251 pub header: IfrOpHeader, 252 } 253 254 /// `EFI_IFR_BITWISE_AND` 255 #[derive(Debug, Clone, Copy)] 256 #[repr(C, packed)] 257 pub struct IfrBitwiseAnd { 258 pub header: IfrOpHeader, 259 } 260 261 /// `EFI_IFR_BITWISE_NOT` 262 #[derive(Debug, Clone, Copy)] 263 #[repr(C, packed)] 264 pub struct IfrBitwiseNot { 265 pub header: IfrOpHeader, 266 } 267 268 /// `EFI_IFR_BITWISE_OR` 269 #[derive(Debug, Clone, Copy)] 270 #[repr(C, packed)] 271 pub struct IfrBitwiseOr { 272 pub header: IfrOpHeader, 273 } 274 275 /// `EFI_IFR_CATENATE` 276 #[derive(Debug, Clone, Copy)] 277 #[repr(C, packed)] 278 pub struct IfrCatenate { 279 pub header: IfrOpHeader, 280 } 281 282 bitflags! { 283 /// Processing options for [`IfrCheckbox`]. 284 #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 285 #[repr(transparent)] 286 pub struct IfrCheckboxFlags: u8 { 287 const DEFAULT = 1 << 0; 288 const DEFAULT_MFG = 1 << 1; 289 } 290 } 291 292 /// `EFI_IFR_CHECKBOX` 293 #[derive(Debug, Clone, Copy)] 294 #[repr(C, packed)] 295 pub struct IfrCheckbox { 296 pub header: IfrOpHeader, 297 pub question: IfrQuestionHeader, 298 pub flags: IfrCheckboxFlags, 299 } 300 301 /// `EFI_IFR_CONDITIONAL` 302 #[derive(Debug, Clone, Copy)] 303 #[repr(C, packed)] 304 pub struct IfrConditional { 305 pub header: IfrOpHeader, 306 } 307 308 bitflags! { 309 /// Processing options for [`IfrDate`]. 310 #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 311 #[repr(transparent)] 312 pub struct IfrDateFlags: u8 { 313 const YEAR_SUPPRESS = 1 << 0; 314 const MONTH_SUPPRESS = 1 << 1; 315 const DAY_SUPPRESS = 1 << 2; 316 /// Mask of the storage selector. 317 const STORAGE = 0x30; 318 } 319 } 320 321 newtype_enum! { 322 /// Storage selector of [`IfrDateFlags`] (`EFI_QF_DATE_STORAGE`). 323 pub enum IfrDateStorage: u8 => { 324 NORMAL = 0x00, 325 TIME = 0x10, 326 WAKEUP = 0x20, 327 } 328 } 329 330 impl IfrDateFlags { 331 #[must_use] 332 pub const fn storage(self) -> IfrDateStorage { 333 IfrDateStorage(self.bits() & Self::STORAGE.bits()) 334 } 335 } 336 337 /// `EFI_IFR_DATE` 338 #[derive(Debug, Clone, Copy)] 339 #[repr(C, packed)] 340 pub struct IfrDate { 341 pub header: IfrOpHeader, 342 pub question: IfrQuestionHeader, 343 pub flags: IfrDateFlags, 344 } 345 346 /// `EFI_IFR_DEFAULT` 347 #[derive(Debug, Clone, Copy)] 348 #[repr(C, packed)] 349 pub struct IfrDefault { 350 pub header: IfrOpHeader, 351 pub default_id: DefaultId, 352 pub r#type: IfrType, 353 pub value: IfrTypeValue, 354 } 355 356 /// `EFI_IFR_DEFAULT_2` 357 #[derive(Debug, Clone, Copy)] 358 #[repr(C, packed)] 359 pub struct IfrDefault2 { 360 pub header: IfrOpHeader, 361 pub default_id: DefaultId, 362 pub r#type: IfrType, 363 } 364 365 /// `EFI_IFR_DEFAULTSTORE` 366 #[derive(Debug, Clone, Copy)] 367 #[repr(C, packed)] 368 pub struct IfrDefaultStore { 369 pub header: IfrOpHeader, 370 pub default_name: StringId, 371 pub default_id: DefaultId, 372 } 373 374 /// `EFI_IFR_DISABLE_IF` 375 #[derive(Debug, Clone, Copy)] 376 #[repr(C, packed)] 377 pub struct IfrDisableIf { 378 pub header: IfrOpHeader, 379 } 380 381 /// `EFI_IFR_DIVIDE` 382 #[derive(Debug, Clone, Copy)] 383 #[repr(C, packed)] 384 pub struct IfrDivide { 385 pub header: IfrOpHeader, 386 } 387 388 /// `EFI_IFR_DUP` 389 #[derive(Debug, Clone, Copy)] 390 #[repr(C, packed)] 391 pub struct IfrDup { 392 pub header: IfrOpHeader, 393 } 394 395 /// `EFI_IFR_END` 396 #[derive(Debug, Clone, Copy)] 397 #[repr(C, packed)] 398 pub struct IfrEnd { 399 pub header: IfrOpHeader, 400 } 401 402 /// `EFI_IFR_EQUAL` 403 #[derive(Debug, Clone, Copy)] 404 #[repr(C, packed)] 405 pub struct IfrEqual { 406 pub header: IfrOpHeader, 407 } 408 409 /// `EFI_IFR_EQ_ID_ID` 410 #[derive(Debug, Clone, Copy)] 411 #[repr(C, packed)] 412 pub struct IfrEqIdId { 413 pub header: IfrOpHeader, 414 pub question_id1: QuestionId, 415 pub question_id2: QuestionId, 416 } 417 418 /// `EFI_IFR_EQ_ID_VAL_LIST` 419 #[derive(Debug, Clone, Copy)] 420 #[repr(C, packed)] 421 pub struct IfrEqIdValList { 422 pub header: IfrOpHeader, 423 pub question_id: QuestionId, 424 pub list_length: u16, 425 pub value_list: [u16; 0], 426 } 427 428 /// `EFI_IFR_EQ_ID_VAL` 429 #[derive(Debug, Clone, Copy)] 430 #[repr(C, packed)] 431 pub struct IfrEqIdVal { 432 pub header: IfrOpHeader, 433 pub question_id: QuestionId, 434 pub value: u16, 435 } 436 437 /// `EFI_IFR_FALSE` 438 #[derive(Debug, Clone, Copy)] 439 #[repr(C, packed)] 440 pub struct IfrFalse { 441 pub header: IfrOpHeader, 442 } 443 444 newtype_enum! { 445 /// Case sensitivity for [`IfrFind`] operation. 446 pub enum IfrFindFormat: u8 => { 447 SENSITIVE = 0, 448 INSENSITIVE = 1, 449 } 450 } 451 452 /// `EFI_IFR_FIND` 453 #[derive(Debug, Clone, Copy)] 454 #[repr(C, packed)] 455 pub struct IfrFind { 456 pub header: IfrOpHeader, 457 pub format: IfrFindFormat, 458 } 459 460 /// `EFI_IFR_FORM` 461 #[derive(Debug, Clone, Copy)] 462 #[repr(C, packed)] 463 pub struct IfrForm { 464 pub header: IfrOpHeader, 465 pub form_id: FormId, 466 pub form_title: StringId, 467 } 468 469 /// `EFI_IFR_FORM_MAP_METHOD` 470 #[derive(Debug, Clone, Copy)] 471 #[repr(C, packed)] 472 pub struct IfrFormMapMethod { 473 pub method_title: StringId, 474 pub method_identifier: Guid, 475 } 476 477 /// `EFI_IFR_FORM_MAP` 478 #[derive(Debug, Clone, Copy)] 479 #[repr(C, packed)] 480 pub struct IfrFormMap { 481 pub header: IfrOpHeader, 482 pub form_id: FormId, 483 pub methods: [IfrFormMapMethod; 0], 484 } 485 486 /// `EFI_IFR_FORM_SET` 487 #[derive(Debug, Clone, Copy)] 488 #[repr(C, packed)] 489 pub struct IfrFormSet { 490 pub header: IfrOpHeader, 491 pub guid: Guid, 492 pub formset_title: StringId, 493 pub help: StringId, 494 pub flags: u8, 495 pub class_guid: [Guid; 0], 496 } 497 498 /// `EFI_IFR_GET` 499 #[derive(Debug, Clone, Copy)] 500 #[repr(C, packed)] 501 pub struct IfrGet { 502 pub header: IfrOpHeader, 503 pub varstore_id: VarstoreId, 504 pub varstore_info: VarstoreInfo, 505 pub varstore_type: IfrType, 506 } 507 508 /// `EFI_IFR_GRAY_OUT_IF` 509 #[derive(Debug, Clone, Copy)] 510 #[repr(C, packed)] 511 pub struct IfrGrayOutIf { 512 pub header: IfrOpHeader, 513 } 514 515 /// `EFI_IFR_GREATER_EQUAL` 516 #[derive(Debug, Clone, Copy)] 517 #[repr(C, packed)] 518 pub struct IfrGreaterEqual { 519 pub header: IfrOpHeader, 520 } 521 522 /// `EFI_IFR_GREATER_THAN` 523 #[derive(Debug, Clone, Copy)] 524 #[repr(C, packed)] 525 pub struct IfrGreaterThan { 526 pub header: IfrOpHeader, 527 } 528 529 /// `EFI_IFR_GUID` 530 #[derive(Debug, Clone, Copy)] 531 #[repr(C, packed)] 532 pub struct IfrGuid { 533 pub header: IfrOpHeader, 534 pub guid: Guid, 535 } 536 537 /// `EFI_IFR_IMAGE` 538 #[derive(Debug, Clone, Copy)] 539 #[repr(C, packed)] 540 pub struct IfrImage { 541 pub header: IfrOpHeader, 542 pub id: ImageId, 543 } 544 545 /// `EFI_IFR_INCONSISTENT_IF` 546 #[derive(Debug, Clone, Copy)] 547 #[repr(C, packed)] 548 pub struct IfrInconsistentIf { 549 pub header: IfrOpHeader, 550 pub error: StringId, 551 } 552 553 /// `EFI_IFR_LENGTH` 554 #[derive(Debug, Clone, Copy)] 555 #[repr(C, packed)] 556 pub struct IfrLength { 557 pub header: IfrOpHeader, 558 } 559 560 /// `EFI_IFR_LESS_EQUAL` 561 #[derive(Debug, Clone, Copy)] 562 #[repr(C, packed)] 563 pub struct IfrLessEqual { 564 pub header: IfrOpHeader, 565 } 566 567 /// `EFI_IFR_LESS_THAN` 568 #[derive(Debug, Clone, Copy)] 569 #[repr(C, packed)] 570 pub struct IfrLessThan { 571 pub header: IfrOpHeader, 572 } 573 574 /// `EFI_IFR_LOCKED` 575 #[derive(Debug, Clone, Copy)] 576 #[repr(C, packed)] 577 pub struct IfrLocked { 578 pub header: IfrOpHeader, 579 } 580 581 /// `EFI_IFR_MAP` 582 #[derive(Debug, Clone, Copy)] 583 #[repr(C, packed)] 584 pub struct IfrMap { 585 pub header: IfrOpHeader, 586 } 587 588 /// `EFI_IFR_MATCH` 589 #[derive(Debug, Clone, Copy)] 590 #[repr(C, packed)] 591 pub struct IfrMatch { 592 pub header: IfrOpHeader, 593 } 594 595 /// `EFI_IFR_MATCH2` 596 #[derive(Debug, Clone, Copy)] 597 #[repr(C, packed)] 598 pub struct IfrMatch2 { 599 pub header: IfrOpHeader, 600 pub syntax_type: Guid, 601 } 602 603 /// `EFI_IFR_MID` 604 #[derive(Debug, Clone, Copy)] 605 #[repr(C, packed)] 606 pub struct IfrMid { 607 pub header: IfrOpHeader, 608 } 609 610 /// `EFI_IFR_MODAL_TAG` 611 #[derive(Debug, Clone, Copy)] 612 #[repr(C, packed)] 613 pub struct IfrModalTag { 614 pub header: IfrOpHeader, 615 } 616 617 /// `EFI_IFR_MODULO` 618 #[derive(Debug, Clone, Copy)] 619 #[repr(C, packed)] 620 pub struct IfrModulo { 621 pub header: IfrOpHeader, 622 } 623 624 /// `EFI_IFR_MULTIPLY` 625 #[derive(Debug, Clone, Copy)] 626 #[repr(C, packed)] 627 pub struct IfrMultiply { 628 pub header: IfrOpHeader, 629 } 630 631 /// `EFI_IFR_NOT` 632 #[derive(Debug, Clone, Copy)] 633 #[repr(C, packed)] 634 pub struct IfrNot { 635 pub header: IfrOpHeader, 636 } 637 638 /// `EFI_IFR_NOT_EQUAL` 639 #[derive(Debug, Clone, Copy)] 640 #[repr(C, packed)] 641 pub struct IfrNotEqual { 642 pub header: IfrOpHeader, 643 } 644 645 /// `EFI_IFR_NO_SUBMIT_IF` 646 #[derive(Debug, Clone, Copy)] 647 #[repr(C, packed)] 648 pub struct IfrNoSubmitIf { 649 pub header: IfrOpHeader, 650 pub error: StringId, 651 } 652 653 /// Numeric info for an 8-bit value in [`IfrNumericData`]. 654 #[derive(Debug, Clone, Copy)] 655 #[repr(C, packed)] 656 pub struct IfrNumericU8 { 657 pub min_value: u8, 658 pub max_value: u8, 659 pub step: u8, 660 } 661 662 /// Numeric info for a 16-bit value in [`IfrNumericData`]. 663 #[derive(Debug, Clone, Copy)] 664 #[repr(C, packed)] 665 pub struct IfrNumericU16 { 666 pub min_value: u16, 667 pub max_value: u16, 668 pub step: u16, 669 } 670 671 /// Numeric info for a 32-bit value in [`IfrNumericData`]. 672 #[derive(Debug, Clone, Copy)] 673 #[repr(C, packed)] 674 pub struct IfrNumericU32 { 675 pub min_value: u32, 676 pub max_value: u32, 677 pub step: u32, 678 } 679 680 /// Numeric info for a 64-bit value in [`IfrNumericData`]. 681 #[derive(Debug, Clone, Copy)] 682 #[repr(C, packed)] 683 pub struct IfrNumericU64 { 684 pub min_value: u64, 685 pub max_value: u64, 686 pub step: u64, 687 } 688 689 /// Numeric data for [`IfrNumeric`] and [`IfrOneOf`]. 690 #[derive(Clone, Copy)] 691 #[repr(C, packed)] 692 pub union IfrNumericData { 693 pub u8: IfrNumericU8, 694 pub u16: IfrNumericU16, 695 pub u32: IfrNumericU32, 696 pub u64: IfrNumericU64, 697 } 698 699 impl fmt::Debug for IfrNumericData { 700 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { 701 f.debug_struct("IfrNumericData").finish() 702 } 703 } 704 705 newtype_enum! { 706 /// Size component of [`IfrNumericFlags`]. 707 pub enum IfrNumericSize: u8 => { 708 /// Value size is 1 byte (`u8`). 709 SIZE_1 = 0x00, 710 /// Value size is 2 bytes (`u16`). 711 SIZE_2 = 0x01, 712 /// Value size is 4 bytes (`u32`). 713 SIZE_4 = 0x02, 714 /// Value size is 8 bytes (`u64`). 715 SIZE_8 = 0x03, 716 } 717 } 718 719 newtype_enum! { 720 /// Display component of [`IfrNumericFlags`]. 721 pub enum IfrNumericDisplay: u8 => { 722 /// Display as a signed decimal integer. 723 INT_DEC = 0x00, 724 /// Display as an unsigned decimal integer. 725 UINT_DEC = 0x10, 726 /// Display as an unsigned hexadecimal integer. 727 UINT_HEX = 0x20, 728 } 729 } 730 731 /// Specifies the size of a numeric value and how it is displayed. 732 #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 733 #[repr(transparent)] 734 pub struct IfrNumericFlags(pub u8); 735 736 impl IfrNumericFlags { 737 pub const SIZE_MASK: u8 = 0x03; 738 pub const DISPLAY_MASK: u8 = 0x30; 739 740 /// Returns the value size for accessing [`IfrNumericData`]. 741 #[must_use] 742 pub const fn size(&self) -> IfrNumericSize { 743 IfrNumericSize(self.0 & Self::SIZE_MASK) 744 } 745 746 /// Returns how to display the value. 747 #[must_use] 748 pub const fn display(&self) -> IfrNumericDisplay { 749 IfrNumericDisplay(self.0 & Self::DISPLAY_MASK) 750 } 751 } 752 753 /// `EFI_IFR_NUMERIC` 754 #[derive(Debug, Clone, Copy)] 755 #[repr(C, packed)] 756 pub struct IfrNumeric { 757 pub header: IfrOpHeader, 758 pub question: IfrQuestionHeader, 759 pub flags: IfrNumericFlags, 760 pub data: IfrNumericData, 761 } 762 763 /// `EFI_IFR_ONE` 764 #[derive(Debug, Clone, Copy)] 765 #[repr(C, packed)] 766 pub struct IfrOne { 767 pub header: IfrOpHeader, 768 } 769 770 /// `EFI_IFR_ONES` 771 #[derive(Debug, Clone, Copy)] 772 #[repr(C, packed)] 773 pub struct IfrOnes { 774 pub header: IfrOpHeader, 775 } 776 777 /// `EFI_IFR_ONE_OF` 778 #[derive(Debug, Clone, Copy)] 779 #[repr(C, packed)] 780 pub struct IfrOneOf { 781 pub header: IfrOpHeader, 782 pub question: IfrQuestionHeader, 783 pub flags: IfrNumericFlags, 784 pub data: IfrNumericData, 785 } 786 787 bitflags! { 788 /// Processing options for [`IfrOneOfOption`]. 789 #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 790 #[repr(transparent)] 791 pub struct IfrOptionFlags: u8 { 792 const DEFAULT = 1 << 4; 793 const DEFAULT_MFG = 1 << 5; 794 } 795 } 796 797 /// `EFI_IFR_ONE_OF_OPTION` 798 #[derive(Debug, Clone, Copy)] 799 #[repr(C, packed)] 800 pub struct IfrOneOfOption { 801 pub header: IfrOpHeader, 802 pub option: StringId, 803 pub flags: IfrOptionFlags, 804 pub r#type: IfrType, 805 pub value: IfrTypeValue, 806 } 807 808 /// `EFI_IFR_OR` 809 #[derive(Debug, Clone, Copy)] 810 #[repr(C, packed)] 811 pub struct IfrOr { 812 pub header: IfrOpHeader, 813 } 814 815 bitflags! { 816 /// Processing options for [`IfrOrderedList`]. 817 #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 818 #[repr(transparent)] 819 pub struct IfrOrderedListFlags: u8 { 820 const UNIQUE_SET = 1 << 0; 821 const NO_EMPTY_SET = 1 << 1; 822 } 823 } 824 825 /// `EFI_IFR_ORDERED_LIST` 826 #[derive(Debug, Clone, Copy)] 827 #[repr(C, packed)] 828 pub struct IfrOrderedList { 829 pub header: IfrOpHeader, 830 pub question: IfrQuestionHeader, 831 pub max_containers: u8, 832 pub flags: IfrOrderedListFlags, 833 } 834 835 /// `EFI_IFR_PASSWORD` 836 #[derive(Debug, Clone, Copy)] 837 #[repr(C, packed)] 838 pub struct IfrPassword { 839 pub header: IfrOpHeader, 840 pub question: IfrQuestionHeader, 841 pub min_size: u16, 842 pub max_size: u16, 843 } 844 845 /// `EFI_IFR_QUESTION_REF1` 846 #[derive(Debug, Clone, Copy)] 847 #[repr(C, packed)] 848 pub struct IfrQuestionRef1 { 849 pub header: IfrOpHeader, 850 pub question_id: QuestionId, 851 } 852 853 /// `EFI_IFR_QUESTION_REF2` 854 #[derive(Debug, Clone, Copy)] 855 #[repr(C, packed)] 856 pub struct IfrQuestionRef2 { 857 pub header: IfrOpHeader, 858 } 859 860 /// `EFI_IFR_QUESTION_REF3` 861 #[derive(Debug, Clone, Copy)] 862 #[repr(C, packed)] 863 pub struct IfrQuestionRef3 { 864 pub header: IfrOpHeader, 865 } 866 867 /// `EFI_IFR_QUESTION_REF3_2` 868 #[derive(Debug, Clone, Copy)] 869 #[repr(C, packed)] 870 pub struct IfrQuestionRef32 { 871 pub header: IfrOpHeader, 872 pub device_path: StringId, 873 } 874 875 /// `EFI_IFR_QUESTION_REF3_3` 876 #[derive(Debug, Clone, Copy)] 877 #[repr(C, packed)] 878 pub struct IfrQuestionRef33 { 879 pub header: IfrOpHeader, 880 pub device_path: StringId, 881 pub guid: Guid, 882 } 883 884 /// `EFI_IFR_READ` 885 #[derive(Debug, Clone, Copy)] 886 #[repr(C, packed)] 887 pub struct IfrRead { 888 pub header: IfrOpHeader, 889 } 890 891 /// `EFI_IFR_REF` 892 #[derive(Debug, Clone, Copy)] 893 #[repr(C, packed)] 894 pub struct IfrRef { 895 pub header: IfrOpHeader, 896 pub question: IfrQuestionHeader, 897 pub form_id: FormId, 898 } 899 900 /// `EFI_IFR_REF2` 901 #[derive(Debug, Clone, Copy)] 902 #[repr(C, packed)] 903 pub struct IfrRef2 { 904 pub header: IfrOpHeader, 905 pub question: IfrQuestionHeader, 906 pub form_id: FormId, 907 pub question_id: QuestionId, 908 } 909 910 /// `EFI_IFR_REF3` 911 #[derive(Debug, Clone, Copy)] 912 #[repr(C, packed)] 913 pub struct IfrRef3 { 914 pub header: IfrOpHeader, 915 pub question: IfrQuestionHeader, 916 pub form_id: FormId, 917 pub question_id: QuestionId, 918 pub formset_id: Guid, 919 } 920 921 /// `EFI_IFR_REF4` 922 #[derive(Debug, Clone, Copy)] 923 #[repr(C, packed)] 924 pub struct IfrRef4 { 925 pub header: IfrOpHeader, 926 pub question: IfrQuestionHeader, 927 pub form_id: FormId, 928 pub question_id: QuestionId, 929 pub formset_id: Guid, 930 pub device_path: StringId, 931 } 932 933 /// `EFI_IFR_REF5` 934 #[derive(Debug, Clone, Copy)] 935 #[repr(C, packed)] 936 pub struct IfrRef5 { 937 pub header: IfrOpHeader, 938 pub question: IfrQuestionHeader, 939 } 940 941 /// `EFI_IFR_REFRESH` 942 #[derive(Debug, Clone, Copy)] 943 #[repr(C, packed)] 944 pub struct IfrRefresh { 945 pub header: IfrOpHeader, 946 pub refresh_interval: u8, 947 } 948 949 /// `EFI_IFR_REFRESH_ID` 950 #[derive(Debug, Clone, Copy)] 951 #[repr(C, packed)] 952 pub struct IfrRefreshId { 953 pub header: IfrOpHeader, 954 pub refresh_event_group_id: Guid, 955 } 956 957 /// `EFI_IFR_RESET_BUTTON` 958 #[derive(Debug, Clone, Copy)] 959 #[repr(C, packed)] 960 pub struct IfrResetButton { 961 pub header: IfrOpHeader, 962 pub statement: IfrStatementHeader, 963 pub default_id: DefaultId, 964 } 965 966 /// `EFI_IFR_RULE` 967 #[derive(Debug, Clone, Copy)] 968 #[repr(C, packed)] 969 pub struct IfrRule { 970 pub header: IfrOpHeader, 971 pub rule_id: u8, 972 } 973 974 /// `EFI_IFR_RULE_REF` 975 #[derive(Debug, Clone, Copy)] 976 #[repr(C, packed)] 977 pub struct IfrRuleRef { 978 pub header: IfrOpHeader, 979 pub rule_id: u8, 980 } 981 982 /// `EFI_IFR_SECURITY` 983 #[derive(Debug, Clone, Copy)] 984 #[repr(C, packed)] 985 pub struct IfrSecurity { 986 pub header: IfrOpHeader, 987 pub permissions: Guid, 988 } 989 990 /// `EFI_IFR_SET` 991 #[derive(Debug, Clone, Copy)] 992 #[repr(C, packed)] 993 pub struct IfrSet { 994 pub header: IfrOpHeader, 995 pub varstore_id: VarstoreId, 996 pub varstore_info: VarstoreInfo, 997 pub varstore_type: IfrType, 998 } 999 1000 /// `EFI_IFR_SHIFT_LEFT` 1001 #[derive(Debug, Clone, Copy)] 1002 #[repr(C, packed)] 1003 pub struct IfrShiftLeft { 1004 pub header: IfrOpHeader, 1005 } 1006 1007 /// `EFI_IFR_SHIFT_RIGHT` 1008 #[derive(Debug, Clone, Copy)] 1009 #[repr(C, packed)] 1010 pub struct IfrShiftRight { 1011 pub header: IfrOpHeader, 1012 } 1013 1014 /// `EFI_IFR_SPAN` 1015 #[derive(Debug, Clone, Copy)] 1016 #[repr(C, packed)] 1017 pub struct IfrSpan { 1018 pub header: IfrOpHeader, 1019 pub flags: u8, 1020 } 1021 1022 bitflags! { 1023 /// Processing options for [`IfrString`]. 1024 #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 1025 #[repr(transparent)] 1026 pub struct IfrStringFlags: u8 { 1027 /// Hint that multi-line text is allowed. 1028 const MULTI_LINE = 1 << 0; 1029 } 1030 } 1031 1032 /// `EFI_IFR_STRING` 1033 #[derive(Debug, Clone, Copy)] 1034 #[repr(C, packed)] 1035 pub struct IfrString { 1036 pub header: IfrOpHeader, 1037 pub question: IfrQuestionHeader, 1038 pub min_size: u8, 1039 pub max_size: u8, 1040 pub flags: IfrStringFlags, 1041 } 1042 1043 /// `EFI_IFR_STRING_REF1` 1044 #[derive(Debug, Clone, Copy)] 1045 #[repr(C, packed)] 1046 pub struct IfrStringRef1 { 1047 pub header: IfrOpHeader, 1048 pub string_id: StringId, 1049 } 1050 1051 /// `EFI_IFR_STRING_REF2` 1052 #[derive(Debug, Clone, Copy)] 1053 #[repr(C, packed)] 1054 pub struct IfrStringRef2 { 1055 pub header: IfrOpHeader, 1056 } 1057 1058 bitflags! { 1059 /// Processing options for [`IfrSubtitle`]. 1060 #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 1061 #[repr(transparent)] 1062 pub struct IfrSubtitleFlags: u8 { 1063 /// Hint that nested statements should be arranged horizontally. 1064 const HORIZONTAL = 1 << 0; 1065 } 1066 } 1067 1068 /// `EFI_IFR_SUBTITLE` 1069 #[derive(Debug, Clone, Copy)] 1070 #[repr(C, packed)] 1071 pub struct IfrSubtitle { 1072 pub header: IfrOpHeader, 1073 pub statement: IfrStatementHeader, 1074 pub flags: IfrSubtitleFlags, 1075 } 1076 1077 /// `EFI_IFR_SUBTRACT` 1078 #[derive(Debug, Clone, Copy)] 1079 #[repr(C, packed)] 1080 pub struct IfrSubtract { 1081 pub header: IfrOpHeader, 1082 } 1083 1084 /// `EFI_IFR_SUPPRESS_IF` 1085 #[derive(Debug, Clone, Copy)] 1086 #[repr(C, packed)] 1087 pub struct IfrSuppressIf { 1088 pub header: IfrOpHeader, 1089 } 1090 1091 /// `EFI_IFR_TEXT` 1092 #[derive(Debug, Clone, Copy)] 1093 #[repr(C, packed)] 1094 pub struct IfrText { 1095 pub header: IfrOpHeader, 1096 pub statement: IfrStatementHeader, 1097 pub text_two: StringId, 1098 } 1099 1100 /// `EFI_IFR_THIS` 1101 #[derive(Debug, Clone, Copy)] 1102 #[repr(C, packed)] 1103 pub struct IfrThis { 1104 pub header: IfrOpHeader, 1105 } 1106 1107 bitflags! { 1108 /// Processing options for [`IfrTime`]. 1109 #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 1110 #[repr(transparent)] 1111 pub struct IfrTimeFlags: u8 { 1112 const HOUR_SUPPRESS = 1 << 0; 1113 const MINUTE_SUPPRESS = 1 << 1; 1114 const SECOND_SUPPRESS = 1 << 2; 1115 /// Mask of the storage selector. 1116 const STORAGE = 0x30; 1117 } 1118 } 1119 1120 newtype_enum! { 1121 /// Storage selector of [`IfrTimeFlags`] (`QF_TIME_STORAGE`). 1122 pub enum IfrTimeStorage: u8 => { 1123 NORMAL = 0x00, 1124 TIME = 0x10, 1125 WAKEUP = 0x20, 1126 } 1127 } 1128 1129 impl IfrTimeFlags { 1130 #[must_use] 1131 pub const fn storage(self) -> IfrTimeStorage { 1132 IfrTimeStorage(self.bits() & Self::STORAGE.bits()) 1133 } 1134 } 1135 1136 /// `EFI_IFR_TIME` 1137 #[derive(Debug, Clone, Copy)] 1138 #[repr(C, packed)] 1139 pub struct IfrTime { 1140 pub header: IfrOpHeader, 1141 pub question: IfrQuestionHeader, 1142 pub flags: IfrTimeFlags, 1143 } 1144 1145 /// `EFI_IFR_TOKEN` 1146 #[derive(Debug, Clone, Copy)] 1147 #[repr(C, packed)] 1148 pub struct IfrToken { 1149 pub header: IfrOpHeader, 1150 } 1151 1152 /// `EFI_IFR_TO_BOOLEAN` 1153 #[derive(Debug, Clone, Copy)] 1154 #[repr(C, packed)] 1155 pub struct IfrToBoolean { 1156 pub header: IfrOpHeader, 1157 } 1158 1159 /// `EFI_IFR_TO_LOWER` 1160 #[derive(Debug, Clone, Copy)] 1161 #[repr(C, packed)] 1162 pub struct IfrToLower { 1163 pub header: IfrOpHeader, 1164 } 1165 1166 /// `EFI_IFR_TO_STRING` 1167 #[derive(Debug, Clone, Copy)] 1168 #[repr(C, packed)] 1169 pub struct IfrToString { 1170 pub header: IfrOpHeader, 1171 pub format: u8, 1172 } 1173 1174 /// `EFI_IFR_TO_UINT` 1175 #[derive(Debug, Clone, Copy)] 1176 #[repr(C, packed)] 1177 pub struct IfrToUint { 1178 pub header: IfrOpHeader, 1179 } 1180 1181 /// `EFI_IFR_TO_UPPER` 1182 #[derive(Debug, Clone, Copy)] 1183 #[repr(C, packed)] 1184 pub struct IfrToUpper { 1185 pub header: IfrOpHeader, 1186 } 1187 1188 /// `EFI_IFR_TRUE` 1189 #[derive(Debug, Clone, Copy)] 1190 #[repr(C, packed)] 1191 pub struct IfrTrue { 1192 pub header: IfrOpHeader, 1193 } 1194 1195 /// `EFI_IFR_UINT8` 1196 #[derive(Debug, Clone, Copy)] 1197 #[repr(C, packed)] 1198 pub struct IfrUint8 { 1199 pub header: IfrOpHeader, 1200 pub value: u8, 1201 } 1202 1203 /// `EFI_IFR_UINT16` 1204 #[derive(Debug, Clone, Copy)] 1205 #[repr(C, packed)] 1206 pub struct IfrUint16 { 1207 pub header: IfrOpHeader, 1208 pub value: u16, 1209 } 1210 1211 /// `EFI_IFR_UINT32` 1212 #[derive(Debug, Clone, Copy)] 1213 #[repr(C, packed)] 1214 pub struct IfrUint32 { 1215 pub header: IfrOpHeader, 1216 pub value: u32, 1217 } 1218 1219 /// `EFI_IFR_UINT64` 1220 #[derive(Debug, Clone, Copy)] 1221 #[repr(C, packed)] 1222 pub struct IfrUint64 { 1223 pub header: IfrOpHeader, 1224 pub value: u64, 1225 } 1226 1227 /// `EFI_IFR_UNDEFINED` 1228 #[derive(Debug, Clone, Copy)] 1229 #[repr(C, packed)] 1230 pub struct IfrUndefined { 1231 pub header: IfrOpHeader, 1232 } 1233 1234 /// `EFI_IFR_VALUE` 1235 #[derive(Debug, Clone, Copy)] 1236 #[repr(C, packed)] 1237 pub struct IfrValue { 1238 pub header: IfrOpHeader, 1239 } 1240 1241 /// `EFI_IFR_VARSTORE` 1242 #[derive(Debug, Clone, Copy)] 1243 #[repr(C, packed)] 1244 pub struct IfrVarstore { 1245 pub header: IfrOpHeader, 1246 pub guid: Guid, 1247 pub varstore_id: VarstoreId, 1248 pub size: u16, 1249 pub name: [u8; 0], 1250 } 1251 1252 /// `EFI_IFR_VARSTORE_NAME_VALUE` 1253 #[derive(Debug, Clone, Copy)] 1254 #[repr(C, packed)] 1255 pub struct IfrVarstoreNameValue { 1256 pub header: IfrOpHeader, 1257 pub varstore_id: VarstoreId, 1258 pub guid: Guid, 1259 } 1260 1261 /// `EFI_IFR_VARSTORE_EFI` 1262 #[derive(Debug, Clone, Copy)] 1263 #[repr(C, packed)] 1264 pub struct IfrVarstoreEfi { 1265 pub header: IfrOpHeader, 1266 pub varstore_id: VarstoreId, 1267 pub guid: Guid, 1268 pub attributes: u32, 1269 pub size: u16, 1270 pub name: [u8; 0], 1271 } 1272 1273 /// `EFI_IFR_VARSTORE_DEVICE` 1274 #[derive(Debug, Clone, Copy)] 1275 #[repr(C, packed)] 1276 pub struct IfrVarstoreDevice { 1277 pub header: IfrOpHeader, 1278 pub device_path: StringId, 1279 } 1280 1281 /// `EFI_IFR_VERSION` 1282 #[derive(Debug, Clone, Copy)] 1283 #[repr(C, packed)] 1284 pub struct IfrVersion { 1285 pub header: IfrOpHeader, 1286 } 1287 1288 /// `EFI_IFR_WARNING_IF` 1289 #[derive(Debug, Clone, Copy)] 1290 #[repr(C, packed)] 1291 pub struct IfrWarningIf { 1292 pub header: IfrOpHeader, 1293 pub warning: StringId, 1294 pub timeout: u8, 1295 } 1296 1297 /// `EFI_IFR_WRITE` 1298 #[derive(Debug, Clone, Copy)] 1299 #[repr(C, packed)] 1300 pub struct IfrWrite { 1301 pub header: IfrOpHeader, 1302 } 1303 1304 /// `EFI_IFR_ZERO` 1305 #[derive(Debug, Clone, Copy)] 1306 #[repr(C, packed)] 1307 pub struct IfrZero { 1308 pub header: IfrOpHeader, 1309 } 1310 1311 // Compile-time ABI checks. 1312 // 1313 // EDK2 declares all of these C structs inside `#pragma pack(1)`, so each of 1314 // them has an alignment of one byte and a size without any padding. The types 1315 // that end in a zero-length array are smaller than their C counterparts by 1316 // exactly that array, as described in the API guidelines. 1317 const _: () = { 1318 macro_rules! check_abi { 1319 ($($ty:ty => $size:expr),+ $(,)?) => { 1320 $( 1321 assert!(size_of::<$ty>() == $size); 1322 assert!(align_of::<$ty>() == 1); 1323 )+ 1324 }; 1325 } 1326 1327 check_abi! { 1328 IfrAction => 15, 1329 IfrAction1 => 13, 1330 IfrAdd => 2, 1331 IfrAnd => 2, 1332 IfrAnimation => 4, 1333 IfrBitwiseAnd => 2, 1334 IfrBitwiseNot => 2, 1335 IfrBitwiseOr => 2, 1336 IfrCatenate => 2, 1337 IfrCheckbox => 14, 1338 IfrConditional => 2, 1339 IfrDate => 14, 1340 IfrDefault => 27, 1341 IfrDefault2 => 5, 1342 IfrDefaultStore => 6, 1343 IfrDisableIf => 2, 1344 IfrDivide => 2, 1345 IfrDup => 2, 1346 IfrEnd => 2, 1347 IfrEqIdId => 6, 1348 IfrEqIdVal => 6, 1349 IfrEqIdValList => 6, 1350 IfrEqual => 2, 1351 IfrFalse => 2, 1352 IfrFind => 3, 1353 IfrForm => 6, 1354 IfrFormMap => 4, 1355 IfrFormMapMethod => 18, 1356 IfrFormSet => 23, 1357 IfrGet => 7, 1358 IfrGrayOutIf => 2, 1359 IfrGreaterEqual => 2, 1360 IfrGreaterThan => 2, 1361 IfrGuid => 18, 1362 IfrImage => 4, 1363 IfrInconsistentIf => 4, 1364 IfrLength => 2, 1365 IfrLessEqual => 2, 1366 IfrLessThan => 2, 1367 IfrLocked => 2, 1368 IfrMap => 2, 1369 IfrMatch => 2, 1370 IfrMatch2 => 18, 1371 IfrMid => 2, 1372 IfrModalTag => 2, 1373 IfrModulo => 2, 1374 IfrMultiply => 2, 1375 IfrNoSubmitIf => 4, 1376 IfrNot => 2, 1377 IfrNotEqual => 2, 1378 IfrNumeric => 38, 1379 IfrNumericData => 24, 1380 IfrNumericFlags => 1, 1381 IfrNumericU16 => 6, 1382 IfrNumericU32 => 12, 1383 IfrNumericU64 => 24, 1384 IfrNumericU8 => 3, 1385 IfrOne => 2, 1386 IfrOneOf => 38, 1387 IfrOneOfOption => 28, 1388 IfrOnes => 2, 1389 IfrOpHeader => 2, 1390 IfrOr => 2, 1391 IfrOrderedList => 15, 1392 IfrPassword => 17, 1393 IfrQuestionHeader => 11, 1394 IfrQuestionRef1 => 4, 1395 IfrQuestionRef2 => 2, 1396 IfrQuestionRef3 => 2, 1397 IfrQuestionRef32 => 4, 1398 IfrQuestionRef33 => 20, 1399 IfrRead => 2, 1400 IfrRef => 15, 1401 IfrRef2 => 17, 1402 IfrRef3 => 33, 1403 IfrRef4 => 35, 1404 IfrRef5 => 13, 1405 IfrRefresh => 3, 1406 IfrRefreshId => 18, 1407 IfrResetButton => 8, 1408 IfrRule => 3, 1409 IfrRuleRef => 3, 1410 IfrSecurity => 18, 1411 IfrSet => 7, 1412 IfrShiftLeft => 2, 1413 IfrShiftRight => 2, 1414 IfrSpan => 3, 1415 IfrStatementHeader => 4, 1416 IfrString => 16, 1417 IfrStringRef1 => 4, 1418 IfrStringRef2 => 2, 1419 IfrSubtitle => 7, 1420 IfrSubtract => 2, 1421 IfrSuppressIf => 2, 1422 IfrText => 8, 1423 IfrThis => 2, 1424 IfrTime => 14, 1425 IfrToBoolean => 2, 1426 IfrToken => 2, 1427 IfrToLower => 2, 1428 IfrToString => 3, 1429 IfrToUint => 2, 1430 IfrToUpper => 2, 1431 IfrTrue => 2, 1432 IfrTypeValue => 22, 1433 IfrUint16 => 4, 1434 IfrUint32 => 6, 1435 IfrUint64 => 10, 1436 IfrUint8 => 3, 1437 IfrUndefined => 2, 1438 IfrValue => 2, 1439 IfrVarstore => 22, 1440 IfrVarstoreDevice => 4, 1441 IfrVarstoreEfi => 26, 1442 IfrVarstoreNameValue => 20, 1443 IfrVersion => 2, 1444 IfrWarningIf => 5, 1445 IfrWrite => 2, 1446 IfrZero => 2, 1447 VarstoreInfo => 2, 1448 } 1449 };