Changeset 33540 in vbox for trunk/src/VBox/Devices/EFI
- Timestamp:
- Oct 28, 2010 9:27:05 AM (14 years ago)
- Location:
- trunk/src/VBox/Devices/EFI
- Files:
-
- 48 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/DevEFI.cpp
r32720 r33540 581 581 { 582 582 /* 583 * Sections headers are lays at the begin ing of block it describes,584 * the first section header is located imm idiately after FFS header.583 * Sections headers are lays at the beginning of block it describes, 584 * the first section header is located immediately after FFS header. 585 585 */ 586 586 EFI_FILE_SECTION_POINTER uSecHdrPtr; -
trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/Include/DevEFI.h
r28800 r33540 29 29 */ 30 30 31 /** The base of the I/O ports used for inter faction between the EFI firmware and DevEFI. */31 /** The base of the I/O ports used for interaction between the EFI firmware and DevEFI. */ 32 32 #define EFI_PORT_BASE 0xEF10 33 33 /** The number of ports. */ -
trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/Include/IndustryStandard/PeImage.h
r26446 r33540 98 98 #define EFI_IMAGE_FILE_RELOCS_STRIPPED BIT0 ///< 0x0001 Relocation info stripped from file. 99 99 #define EFI_IMAGE_FILE_EXECUTABLE_IMAGE BIT1 ///< 0x0002 File is executable (i.e. no unresolved externel references). 100 #define EFI_IMAGE_FILE_LINE_NUMS_STRIPPED BIT2 ///< 0x0004 Line nu nbers stripped from file.100 #define EFI_IMAGE_FILE_LINE_NUMS_STRIPPED BIT2 ///< 0x0004 Line numbers stripped from file. 101 101 #define EFI_IMAGE_FILE_LOCAL_SYMS_STRIPPED BIT3 ///< 0x0008 Local symbols stripped from file. 102 102 #define EFI_IMAGE_FILE_BYTES_REVERSED_LO BIT7 ///< 0x0080 Bytes of machine word are reversed. -
trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/Include/Library/GenericBdsLib.h
r26446 r33540 3 3 1) BDS boot policy interface 4 4 2) BDS boot device connect interface 5 3) BDS Misc interfaces for maint ing boot variable, ouput string.5 3) BDS Misc interfaces for maintaining boot variable, output string. 6 6 7 7 Copyright (c) 2004 - 2009, Intel Corporation. <BR> … … 114 114 @param Option The boot option to be processed 115 115 @param DevicePath The device path describing where to load the 116 boot image or the leg cy BBS device path to boot116 boot image or the legacy BBS device path to boot 117 117 the legacy OS 118 118 @param ExitDataSize The size of exit data. … … 362 362 363 363 // 364 // Bds connect and disconnect driver lib func ions364 // Bds connect and disconnect driver lib functions 365 365 // 366 366 /** … … 629 629 Delete all the invalid legacy boot options. 630 630 631 @retval EFI_SUCCESS All invalid elegacy boot options are deleted.631 @retval EFI_SUCCESS All invalid legacy boot options are deleted. 632 632 @retval EFI_OUT_OF_RESOURCES Fail to allocate necessary memory. 633 633 @retval EFI_NOT_FOUND Fail to retrieve variable of boot order. … … 661 661 @retval EFI_SUCCESS The boot devices are added successfully. 662 662 @retval EFI_NOT_FOUND The legacy boot devices are not found. 663 @retval EFI_OUT_OF_RESOURCES Mem mory or storage is not enough.663 @retval EFI_OUT_OF_RESOURCES Memory or storage is not enough. 664 664 @retval EFI_DEVICE_ERROR Fail to add the legacy device boot order into EFI variable 665 665 because of hardware error. … … 687 687 688 688 /** 689 Delete the Boot Option from EFI Variable. The Boot Order Arr ray689 Delete the Boot Option from EFI Variable. The Boot Order Array 690 690 is also updated. 691 691 … … 852 852 @param HardDriveDevicePath EFI Device Path to boot, if it starts with a hard 853 853 drive media device path. 854 @return A Pointer to the full device path or NULL if a valid Hard Drive devic path854 @return A Pointer to the full device path or NULL if a valid Hard Drive device path 855 855 cannot be found. 856 856 … … 951 951 This function checks if a Fv file device path is valid, according to a file GUID. If it is invalid, 952 952 it tries to return the valid device path. 953 FV address maybe changes for memory layout adjust from time to time, use this func iton953 FV address maybe changes for memory layout adjust from time to time, use this function 954 954 could promise the Fv file device path is right. 955 955 -
trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/Include/Library/PeCoffLib.h
r26446 r33540 338 338 339 339 /** 340 Reapply fixups on a fixed up PE32/PE32+ image to allow vir utal calling at EFI340 Reapply fixups on a fixed up PE32/PE32+ image to allow virtual calling at EFI 341 341 runtime. 342 342 -
trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/Include/VBoxMemLayout.h
r28800 r33540 1 1 /* $Id$ */ 2 2 /** @file 3 * VBoxMemLayou .h - Constants defining the memory layout. (Merge with DevEFI?)3 * VBoxMemLayout.h - Constants defining the memory layout. (Merge with DevEFI?) 4 4 */ 5 5 -
trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/Library/VBoxGenericBdsLib/BdsBoot.c
r29125 r33540 38 38 39 39 /// 40 /// This GUID is used for an EFI Variable that stores the front device path es40 /// This GUID is used for an EFI Variable that stores the front device paths 41 41 /// for a partial device path that starts with the HD node. 42 42 /// … … 242 242 243 243 // 244 // If the boot option point to Internal FV shell, make sure it is valid244 // If the boot option points to Internal FV shell, make sure it is valid 245 245 // 246 246 Status = BdsLibUpdateFvFileDevicePath (&DevicePath, PcdGetPtr(PcdShellFile)); … … 356 356 DEBUG((DEBUG_INFO, "%a:%d LoadingImage '%s' - %r\n", __FILE__, __LINE__, DevPathToTxt->ConvertDevicePathToText(DevicePath, TRUE, FALSE), Status)); 357 357 // 358 // If we didn't find an image directly, we need to try as if it is a removable device boot op otion358 // If we didn't find an image directly, we need to try as if it is a removable device boot option 359 359 // and load the image according to the default boot behavior for removable device. 360 360 // … … 461 461 @param HardDriveDevicePath EFI Device Path to boot, if it starts with a hard 462 462 drive media device path. 463 @return A Pointer to the full device path or NULL if a valid Hard Drive devic path463 @return A Pointer to the full device path or NULL if a valid Hard Drive device path 464 464 cannot be found. 465 465 … … 1467 1467 if (EFI_ERROR (Status)) { 1468 1468 // 1469 // Skip the case that the boot option point to a simple file protocol which does not consume block Io protocol,1469 // Skip the case that the boot option points to a simple file protocol which does not consume block Io protocol, 1470 1470 // 1471 1471 Status = gBS->LocateDevicePath (&gEfiSimpleFileSystemProtocolGuid, &UpdatedDevicePath, &Handle); … … 1773 1773 1774 1774 /** 1775 Check whether the Device path in a boot option point to a valid bootable device,1775 Check whether the Device path in a boot option points to a valid bootable device, 1776 1776 And if CheckMedia is true, check the device is ready to boot now. 1777 1777 … … 1794 1794 1795 1795 /** 1796 Check whether the Device path in a boot option point to a valid bootable device,1796 Check whether the Device path in a boot option points to a valid bootable device, 1797 1797 And if CheckMedia is true, check the device is ready to boot now. 1798 1798 If Description is not NULL and the device path point to a fixed BlockIo … … 1863 1863 1864 1864 // 1865 // If the boot option point to a file, it is a valid EFI boot option,1865 // If the boot option points to a file, it is a valid EFI boot option, 1866 1866 // and assume it is ready to boot now 1867 1867 // … … 1880 1880 if (EfiGetNameGuidFromFwVolDevicePathNode ((MEDIA_FW_VOL_FILEPATH_DEVICE_PATH *) LastDeviceNode) != NULL) { 1881 1881 // 1882 // If the boot option point to Internal FV shell, make sure it is valid1882 // If the boot option points to Internal FV shell, make sure it is valid 1883 1883 // 1884 1884 TempDevicePath = DevPath; … … 1895 1895 1896 1896 // 1897 // If the boot option point to a blockIO device:1897 // If the boot option points to a blockIO device: 1898 1898 // if it is a removable blockIo device, it is valid. 1899 1899 // if it is a fixed blockIo device, check its description confliction. … … 1931 1931 } else { 1932 1932 // 1933 // if the boot option point to a simple file protocol which does not consume block Io protocol, it is also a valid EFI boot option,1933 // if the boot option points to a simple file protocol which does not consume block Io protocol, it is also a valid EFI boot option, 1934 1934 // 1935 1935 Status = gBS->LocateDevicePath (&gEfiSimpleFileSystemProtocolGuid, &TempDevicePath, &Handle); -
trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/Library/VBoxGenericBdsLib/BdsConnect.c
r29125 r33540 312 312 Connects all drivers to all controllers. 313 313 This function make sure all the current system driver will manage 314 the correspo inding controllers if have. And at the same time, make314 the corresponding controllers if have. And at the same time, make 315 315 sure all the system controllers have driver to manage it if have. 316 316 -
trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/Library/VBoxGenericBdsLib/BdsConsole.c
r29125 r33540 83 83 @param ConsoleGuid Specified Console protocol GUID. 84 84 @param ConsoleHandle On IN, console handle in System Table to be checked. 85 On OUT, new console han lde in system table.85 On OUT, new console handle in system table. 86 86 @param ProtocolInterface On IN, console protocol on console handle in System Table to be checked. 87 On OUT, new console protocol on new console han lde in system table.87 On OUT, new console protocol on new console handle in system table. 88 88 89 89 @retval TRUE System Table has been updated. … … 184 184 185 185 // 186 // No any available console dev cie found.186 // No any available console device found. 187 187 // 188 188 return FALSE; … … 405 405 if (EFI_ERROR (Status)) { 406 406 // 407 // Delete the instance from the console varia lbe407 // Delete the instance from the console variable 408 408 // 409 409 BdsLibUpdateConsoleVariable (ConVarName, NULL, Instance); … … 427 427 /** 428 428 This function will search every simpletext device in current system, 429 and make every simpletext device as pertantial console device.429 and make every simpletext device as a potential console device. 430 430 431 431 **/ -
trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/Library/VBoxGenericBdsLib/BdsMisc.c
r33110 r33540 153 153 /** 154 154 Get the Option Number that does not used. 155 Try to locate the specific option variable one by one u tilefind a free number.155 Try to locate the specific option variable one by one until find a free number. 156 156 157 157 @param VariableName Indicate if the boot#### or driver#### option … … 1202 1202 /** 1203 1203 1204 This routine is a notification function for lega ycboot or exit boot1204 This routine is a notification function for legacy boot or exit boot 1205 1205 service event. It will adjust the memory information for different 1206 1206 memory type and save them into the variables for next boot. … … 1279 1279 1280 1280 // 1281 // Write next vari ble to 125% * current and Inconsistent Memory Reserved across bootings may lead to S4 fail1281 // Write next variable to 125% * current and Inconsistent Memory Reserved across bootings may lead to S4 fail 1282 1282 // 1283 1283 if (Current > Previous) { -
trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/Library/VBoxGenericBdsLib/DevicePath.c
r29125 r33540 98 98 @param Str The buffer holding the output string. 99 99 This buffer contains the length of the 100 string and the ma ixmum length reserved100 string and the maximum length reserved 101 101 for the string buffer. 102 102 @param DevPath The device path. … … 120 120 @param Str The buffer holding the output string. 121 121 This buffer contains the length of the 122 string and the ma ixmum length reserved122 string and the maximum length reserved 123 123 for the string buffer. 124 124 @param DevPath The device path. … … 142 142 @param Str The buffer holding the output string. 143 143 This buffer contains the length of the 144 string and the ma ixmum length reserved144 string and the maximum length reserved 145 145 for the string buffer. 146 146 @param DevPath The device path. … … 170 170 @param Str The buffer holding the output string. 171 171 This buffer contains the length of the 172 string and the ma ixmum length reserved172 string and the maximum length reserved 173 173 for the string buffer. 174 174 @param DevPath The device path. … … 313 313 @param Str The buffer holding the output string. 314 314 This buffer contains the length of the 315 string and the ma ixmum length reserved315 string and the maximum length reserved 316 316 for the string buffer. 317 317 @param DevPath The device path. … … 339 339 @param Str The buffer holding the output string. 340 340 This buffer contains the length of the 341 string and the ma ixmum length reserved341 string and the maximum length reserved 342 342 for the string buffer. 343 343 @param DevPath The device path. … … 457 457 @param Str The buffer holding the output string. 458 458 This buffer contains the length of the 459 string and the ma ixmum length reserved459 string and the maximum length reserved 460 460 for the string buffer. 461 461 @param DevPath The device path. … … 489 489 @param Str The buffer holding the output string. 490 490 This buffer contains the length of the 491 string and the ma ixmum length reserved491 string and the maximum length reserved 492 492 for the string buffer. 493 493 @param DevPath The device path. … … 516 516 @param Str The buffer holding the output string. 517 517 This buffer contains the length of the 518 string and the ma ixmum length reserved518 string and the maximum length reserved 519 519 for the string buffer. 520 520 @param DevPath The device path. … … 538 538 @param Str The buffer holding the output string. 539 539 This buffer contains the length of the 540 string and the ma ixmum length reserved540 string and the maximum length reserved 541 541 for the string buffer. 542 542 @param DevPath The device path. … … 560 560 @param Str The buffer holding the output string. 561 561 This buffer contains the length of the 562 string and the ma ixmum length reserved562 string and the maximum length reserved 563 563 for the string buffer. 564 564 @param DevPath The device path. … … 582 582 @param Str The buffer holding the output string. 583 583 This buffer contains the length of the 584 string and the ma ixmum length reserved584 string and the maximum length reserved 585 585 for the string buffer. 586 586 @param DevPath The device path. … … 604 604 @param Str The buffer holding the output string. 605 605 This buffer contains the length of the 606 string and the ma ixmum length reserved606 string and the maximum length reserved 607 607 for the string buffer. 608 608 @param DevPath The device path. … … 632 632 @param Str The buffer holding the output string. 633 633 This buffer contains the length of the 634 string and the ma ixmum length reserved634 string and the maximum length reserved 635 635 for the string buffer. 636 636 @param DevPath The device path. … … 654 654 @param Str The buffer holding the output string. 655 655 This buffer contains the length of the 656 string and the ma ixmum length reserved656 string and the maximum length reserved 657 657 for the string buffer. 658 658 @param DevPath The device path. … … 684 684 @param Str The buffer holding the output string. 685 685 This buffer contains the length of the 686 string and the ma ixmum length reserved686 string and the maximum length reserved 687 687 for the string buffer. 688 688 @param DevPath The device path. … … 721 721 @param Str The buffer holding the output string. 722 722 This buffer contains the length of the 723 string and the ma ixmum length reserved723 string and the maximum length reserved 724 724 for the string buffer. 725 725 @param DevPath The device path. … … 743 743 @param Str The buffer holding the output string. 744 744 This buffer contains the length of the 745 string and the ma ixmum length reserved745 string and the maximum length reserved 746 746 for the string buffer. 747 747 @param DevPath The device path. … … 779 779 @param Str The buffer holding the output string. 780 780 This buffer contains the length of the 781 string and the ma ixmum length reserved781 string and the maximum length reserved 782 782 for the string buffer. 783 783 @param DevPath The device path. … … 809 809 @param Str The buffer holding the output string. 810 810 This buffer contains the length of the 811 string and the ma ixmum length reserved811 string and the maximum length reserved 812 812 for the string buffer. 813 813 @param DevPath The device path. … … 850 850 @param Str The buffer holding the output string. 851 851 This buffer contains the length of the 852 string and the ma ixmum length reserved852 string and the maximum length reserved 853 853 for the string buffer. 854 854 @param DevPath The device path. … … 880 880 @param Str The buffer holding the output string. 881 881 This buffer contains the length of the 882 string and the ma ixmum length reserved882 string and the maximum length reserved 883 883 for the string buffer. 884 884 @param DevPath The device path. … … 965 965 @param Str The buffer holding the output string. 966 966 This buffer contains the length of the 967 string and the ma ixmum length reserved967 string and the maximum length reserved 968 968 for the string buffer. 969 969 @param DevPath The device path. … … 1008 1008 @param Str The buffer holding the output string. 1009 1009 This buffer contains the length of the 1010 string and the ma ixmum length reserved1010 string and the maximum length reserved 1011 1011 for the string buffer. 1012 1012 @param DevPath The device path. … … 1058 1058 @param Str The buffer holding the output string. 1059 1059 This buffer contains the length of the 1060 string and the ma ixmum length reserved1060 string and the maximum length reserved 1061 1061 for the string buffer. 1062 1062 @param DevPath The device path. … … 1080 1080 @param Str The buffer holding the output string. 1081 1081 This buffer contains the length of the 1082 string and the ma ixmum length reserved1082 string and the maximum length reserved 1083 1083 for the string buffer. 1084 1084 @param DevPath The device path. … … 1102 1102 @param Str The buffer holding the output string. 1103 1103 This buffer contains the length of the 1104 string and the ma ixmum length reserved1104 string and the maximum length reserved 1105 1105 for the string buffer. 1106 1106 @param DevPath The device path. … … 1124 1124 @param Str The buffer holding the output string. 1125 1125 This buffer contains the length of the 1126 string and the ma ixmum length reserved1126 string and the maximum length reserved 1127 1127 for the string buffer. 1128 1128 @param DevPath The device path. … … 1146 1146 @param Str The buffer holding the output string. 1147 1147 This buffer contains the length of the 1148 string and the ma ixmum length reserved1148 string and the maximum length reserved 1149 1149 for the string buffer. 1150 1150 @param DevPath The device path. … … 1173 1173 @param Str The buffer holding the output string. 1174 1174 This buffer contains the length of the 1175 string and the ma ixmum length reserved1175 string and the maximum length reserved 1176 1176 for the string buffer. 1177 1177 @param DevPath The device path. … … 1229 1229 @param Str The buffer holding the output string. 1230 1230 This buffer contains the length of the 1231 string and the ma ixmum length reserved1231 string and the maximum length reserved 1232 1232 for the string buffer. 1233 1233 @param DevPath The device path. … … 1248 1248 @param Str The buffer holding the output string. 1249 1249 This buffer contains the length of the 1250 string and the ma ixmum length reserved1250 string and the maximum length reserved 1251 1251 for the string buffer. 1252 1252 @param DevPath The device path. … … 1538 1538 } 1539 1539 // 1540 // Put a path sep erator in if needed1540 // Put a path separator in if needed 1541 1541 // 1542 1542 if ((Str.Len != 0) && (DumpNode != DevPathEndInstance)) { -
trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/Library/VBoxGenericBdsLib/Performance.c
r29125 r33540 40 40 41 41 /** 42 Get the short ver ion of PDB file name to be42 Get the short version of PDB file name to be 43 43 used in performance data logging. 44 44 -
trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/Library/VBoxGenericBdsLib/VBoxGenericBdsLib.inf
r29125 r33540 20 20 # 1) BDS boot policy interface; 21 21 # 2) BDS boot device connect interface; 22 # 3) BDS Misc interfaces for maint ing boot variable, ouput string, etc.22 # 3) BDS Misc interfaces for maintaining boot variable, output string, etc. 23 23 # 24 24 # Copyright (c) 2007 - 2009, Intel Corporation. <BR> -
trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/Library/VBoxPeCoffLib/BasePeCoff.c
r29081 r33540 1325 1325 1326 1326 /** 1327 Reapply fixups on a fixed up PE32/PE32+ image to allow vir utal calling at EFI1327 Reapply fixups on a fixed up PE32/PE32+ image to allow virtual calling at EFI 1328 1328 runtime. 1329 1329 -
trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/VBoxAppleSim/ConsoleControl.h
r30013 r33540 1 1 /* $Id$ */ 2 2 /** @file 3 * Conso nleControl.h3 * ConsoleControl.h 4 4 */ 5 5 … … 71 71 Arguments: 72 72 This - Protocol instance pointer. 73 Mode - Are we in text of gra hics mode.74 GopUgaExists - TRUE if Console Split er has found a GOP or UGA device73 Mode - Are we in text of graphics mode. 74 GopUgaExists - TRUE if Console Splitter has found a GOP or UGA device 75 75 StdInLocked - TRUE if StdIn device is keyboard locked 76 76 -
trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/VBoxAppleSim/VBoxAppleSim.inf
r29070 r33540 1 1 # $Id$ 2 2 ## @file 3 # VBoxAppleSim - VBox Apple int refaces simulation support.3 # VBoxAppleSim - VBox Apple interfaces simulation support. 4 4 # 5 5 -
trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/VBoxFsDxe/fsw_core.h
r29125 r33540 337 337 fsw_u64 used_bytes; //!< Bytes actually used by the file on disk 338 338 void (*store_time_posix)(struct fsw_dnode_stat *sb, int which, fsw_u32 posix_time); //!< Callback for storing a Posix-style timestamp 339 void (*store_attr_posix)(struct fsw_dnode_stat *sb, fsw_u16 posix_mode); //!< Callb ock for storing a Posix-style file mode339 void (*store_attr_posix)(struct fsw_dnode_stat *sb, fsw_u16 posix_mode); //!< Callback for storing a Posix-style file mode 340 340 void *host_data; //!< Hook for a host-specific data structure 341 341 }; -
trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/VBoxFsDxe/fsw_efi.h
r29125 r33540 88 88 EFI_FILE FileHandle; //!< Published EFI protocol interface structure 89 89 90 UINTN Type; //!< File type used for dispatchin ng90 UINTN Type; //!< File type used for dispatching 91 91 struct fsw_shandle shand; //!< FSW handle for this file 92 92 -
trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/VBoxFsDxe/fsw_hfs.c
r29125 r33540 7 7 * Current limitations: 8 8 * - Doesn't support permissions 9 * - Complete Unicode case-insens tivness disabled (large tables)9 * - Complete Unicode case-insensitiveness disabled (large tables) 10 10 * - No links 11 11 * - Only supports pure HFS+ (i.e. no HFS, or HFS+ embedded to HFS) -
trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/VBoxFsDxe/fsw_iso9660.c
r29125 r33540 537 537 // has opened a storage handle to the directory's storage and keeps it around between 538 538 // calls. 539 /* (vasily) direc ory nodes are 4096 bytes that is two logical blocks so read dir operation539 /* (vasily) directory nodes are 4096 bytes that is two logical blocks so read dir operation 540 540 * should read both blocks. 541 541 */ -
trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/VBoxFsDxe/fsw_lib.c
r29125 r33540 325 325 #if 0 326 326 /* 327 * Uncomment this along with above hu uuge table (fsw_lower_case_table)327 * Uncomment this along with above huge table (fsw_lower_case_table) 328 328 * for full UTF-16 case insensitivity 329 329 */ … … 459 459 460 460 /** 461 * Splits a string at the first occur ence of the separator character.461 * Splits a string at the first occurrence of the separator character. 462 462 * The buffer string is searched for the separator character. If it is found, the 463 463 * element string descriptor is filled to point at the part of the buffer string -
trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/VBoxFsDxe/hfs_format.h
r29125 r33540 64 64 * 65 65 * This file describes the on-disk format for HFS and HFS Plus volumes. 66 * The HFS Plus volume format is desc iibed in detail in Apple Technote 1150.66 * The HFS Plus volume format is described in detail in Apple Technote 1150. 67 67 * 68 68 * http://developer.apple.com/technotes/tn/tn1150.html … … 517 517 518 518 /* 519 * At rributes B-tree Data Record519 * Attributes B-tree Data Record 520 520 * 521 521 * For small attributes, whose entire value is stored -
trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/VBoxIdeBusDxe/Ata.c
r33027 r33540 30 30 @par Revision Reference: 31 31 2002-6: Add Atapi6 enhancement, support >120GB hard disk, including 32 update - ATAIdenti ty() func32 update - ATAIdentify() func 33 33 update - AtaBlockIoReadBlocks() func 34 34 update - AtaBlockIoWriteBlocks() func … … 51 51 @retval EFI_SUCCESS The disk specified by IdeDev is a Atapi6 supported one and 52 52 48-bit addressing must be used 53 @retval EFI_UNSUPPORTED The disk do sn't not support Atapi6 or it supports but the53 @retval EFI_UNSUPPORTED The disk doesn't not support Atapi6 or it supports but the 54 54 capacity is below 120G, 48bit addressing is not needed 55 55 @retval EFI_DEVICE_ERROR The identify data in IdeDev is incorrect … … 85 85 if ((Atapi6IdentifyStruct->AtapiData.cmd_set_support_83 & BIT10) == 0) { 86 86 // 87 // The device do sn't support 48 bit addressing87 // The device doesn't support 48 bit addressing 88 88 // 89 89 return EFI_UNSUPPORTED; … … 575 575 576 576 // 577 // used to record bytes of currently transfer ed data577 // used to record bytes of currently transferred data 578 578 // 579 579 WordCount = 0; … … 1141 1141 Protocol, supporting ATA/ATAPI-6 standard 1142 1142 1143 Comparing with ATA-3 data in protocol, we have two differen ts here:1143 Comparing with ATA-3 data in protocol, we have two differences here: 1144 1144 1. Do NOT wait for DRQ clear before sending command into IDE device.(the 1145 1145 wait will frequently fail... cause writing function return error) 1146 1146 1147 2. Do NOT wait for DRQ clear after all data read ed.(the wait greatly1147 2. Do NOT wait for DRQ clear after all data read.(the wait greatly 1148 1148 slow down writing performance by 100 times!) 1149 1149 … … 1154 1154 @param AtaCommand value of the Command Register 1155 1155 @param StartLba the start LBA of this transaction 1156 @param SectorCount the count of sectors to be transfer ed1156 @param SectorCount the count of sectors to be transferred 1157 1157 1158 1158 @retval EFI_SUCCESS send out the ATA command and device send required data successfully. … … 1197 1197 1198 1198 // 1199 // Wait for DRDY si ngnal asserting. ATAPI device needn't wait1199 // Wait for DRDY signal asserting. ATAPI device needn't wait 1200 1200 // 1201 1201 if ( (IdeDev->Type == IdeHardDisk) || … … 1259 1259 1260 1260 // 1261 // used to record bytes of currently transfer ed data1261 // used to record bytes of currently transferred data 1262 1262 // 1263 1263 WordCount = 0; … … 1640 1640 // 1641 1641 // SectorCount is used to record the number of sectors to be read 1642 // Max 65536 sectors can be transfer ed at a time.1642 // Max 65536 sectors can be transferred at a time. 1643 1643 // 1644 1644 NumberOfBlocks = MaxDmaCommandSectors; … … 2005 2005 // 2006 2006 // SectorCount is used to record the number of sectors to be read 2007 // Max 65536 sectors can be transfer ed at a time.2007 // Max 65536 sectors can be transferred at a time. 2008 2008 // 2009 2009 SectorCount = 0xffff; … … 2125 2125 if (IdeBlkIoDevice->Type == Ide48bitAddressingHardDisk) { 2126 2126 // 2127 // For ATA/ATAPI-6 device(cap city > 120GB), use ATA-6 read block mechanism2127 // For ATA/ATAPI-6 device(capacity > 120GB), use ATA-6 read block mechanism 2128 2128 // 2129 2129 if (IdeBlkIoDevice->UdmaMode.Valid) { … … 2155 2155 PIO Data Out Protocol, supporting ATA/ATAPI-6 standard 2156 2156 2157 Comparing with ATA-3 data out protocol, we have two differen ts here:<BR>2157 Comparing with ATA-3 data out protocol, we have two differences here:<BR> 2158 2158 1. Do NOT wait for DRQ clear before sending command into IDE device.(the 2159 2159 wait will frequently fail... cause writing function return error) 2160 2160 2161 2. Do NOT wait for DRQ clear after all data read ed.(the wait greatly2161 2. Do NOT wait for DRQ clear after all data read.(the wait greatly 2162 2162 slow down writing performance by 100 times!) 2163 2163 … … 2168 2168 @param AtaCommand value of the Command Register 2169 2169 @param StartLba the start LBA of this transaction 2170 @param SectorCount the count of sectors to be transfer ed2170 @param SectorCount the count of sectors to be transferred 2171 2171 2172 2172 @retval EFI_SUCCESS send out the ATA command and device receive required … … 2212 2212 2213 2213 // 2214 // Wait for DRDY si ngnal asserting.2214 // Wait for DRDY signal asserting. 2215 2215 // 2216 2216 Status = DRDYReady (IdeDev, ATATIMEOUT); … … 2266 2266 2267 2267 // 2268 // used to record bytes of currently transfer ed data2268 // used to record bytes of currently transferred data 2269 2269 // 2270 2270 WordCount = 0; … … 2397 2397 // 2398 2398 // SectorCount is used to record the number of sectors to be written. 2399 // Max 65536 sectors can be transfer ed at a time.2399 // Max 65536 sectors can be transferred at a time. 2400 2400 // 2401 2401 SectorCount = 0xffff; … … 2512 2512 if (IdeBlkIoDevice->Type == Ide48bitAddressingHardDisk) { 2513 2513 // 2514 // For ATA/ATAPI-6 device(cap city > 120GB), use ATA-6 write block mechanism2514 // For ATA/ATAPI-6 device(capacity > 120GB), use ATA-6 write block mechanism 2515 2515 // 2516 2516 if (IdeBlkIoDevice->UdmaMode.Valid) { -
trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/VBoxIdeBusDxe/Atapi.c
r33027 r33540 257 257 258 258 // 259 // No data transfer is p remitted.259 // No data transfer is permitted. 260 260 // 261 261 if (ByteCount == 0) { … … 264 264 // 265 265 // for performance, we assert the ByteCount is an even number 266 // which is actually a re sonable assumption266 // which is actually a reasonable assumption 267 267 ASSERT((ByteCount%2) == 0); 268 268 … … 846 846 // 847 847 // We limit MAX sense data count to 20 in order to avoid dead loop. Some 848 // incompatible ATAPI devices don't retri ve NO_SENSE when there is no media.848 // incompatible ATAPI devices don't retrieve NO_SENSE when there is no media. 849 849 // In this case, dead loop occurs if we don't have a gatekeeper. 20 is 850 850 // supposed to be large enough for any ATAPI device. … … 1154 1154 // 1155 1155 // the Get Media Status Command is only valid 1156 // if a Set Features/Enable Media Status Command has been pr iviously issued.1156 // if a Set Features/Enable Media Status Command has been previously issued. 1157 1157 // 1158 1158 if (LS120GetMediaStatus (IdeDev) == EFI_WRITE_PROTECTED) { -
trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/VBoxIdeBusDxe/DriverConfiguration.c
r33027 r33540 52 52 53 53 /** 54 Interpret ekeyboard input.55 56 @retval EFI_ABORTED Get an 'ESC' key input ed.57 @retval EFI_SUCCESS Get an 'Y' or 'y' input ed.58 @retval EFI_NOT_FOUND Get an 'N' or 'n' input ed..54 Interpret keyboard input. 55 56 @retval EFI_ABORTED Get an 'ESC' key inputted. 57 @retval EFI_SUCCESS Get an 'Y' or 'y' inputted. 58 @retval EFI_NOT_FOUND Get an 'N' or 'n' inputted.. 59 59 60 60 **/ -
trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/VBoxIdeBusDxe/DriverDiagnostics.c
r33027 r33540 17 17 18 18 /** @file 19 Implementation of UEFI driver Dia lnostics protocol which to perform diagnostic on the IDE19 Implementation of UEFI driver Diagnostics protocol which to perform diagnostic on the IDE 20 20 Bus controller. 21 21 -
trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/VBoxIdeBusDxe/Ide.c
r33114 r33540 17 17 18 18 /** @file 19 The file ontaining the helper functions implement of the Ide Bus driver19 The file containing the helper functions implement of the Ide Bus driver 20 20 21 21 Copyright (c) 2006 - 2008, Intel Corporation … … 92 92 93 93 // 94 // Prepare an 16-bit al ligned working buffer. CpuIo will return failure and94 // Prepare an 16-bit aligned working buffer. CpuIo will return failure and 95 95 // not perform actual I/O operations if buffer pointer passed in is not at 96 96 // natural boundary. The "Buffer" argument is passed in by user and may not … … 205 205 206 206 // 207 // Prepare an 16-bit al ligned working buffer. CpuIo will return failure and207 // Prepare an 16-bit aligned working buffer. CpuIo will return failure and 208 208 // not perform actual I/O operations if buffer pointer passed in is not at 209 209 // natural boundary. The "Buffer" argument is passed in by user and may not … … 291 291 @retval EFI_UNSUPPORTED return this value when the BARs is not IO type 292 292 @retval EFI_SUCCESS Get the Base address successfully 293 @retval other read the pci configur eation data error293 @retval other read the pci configuration data error 294 294 295 295 **/ … … 410 410 probably switch between native and legacy modes during the EFI->CSM->OS 411 411 transfer. We do this everytime before an BlkIo operation to ensure its 412 succe ess.412 success. 413 413 414 414 @param IdeDev The BLK_IO private data which specifies the IDE device … … 1234 1234 1235 1235 // 1236 // Release all the resour ses occupied by the IDE_BLK_IO_DEV1236 // Release all the resources occupied by the IDE_BLK_IO_DEV 1237 1237 // 1238 1238 -
trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/VBoxIdeBusDxe/Ide.h
r33027 r33540 174 174 @retval EFI_UNSUPPORTED return this value when the BARs is not IO type 175 175 @retval EFI_SUCCESS Get the Base address successfully 176 @retval other read the pci configur eation data error176 @retval other read the pci configuration data error 177 177 178 178 **/ … … 187 187 probably switch between native and legacy modes during the EFI->CSM->OS 188 188 transfer. We do this everytime before an BlkIo operation to ensure its 189 succe ess.189 success. 190 190 191 191 @param IdeDev The BLK_IO private data which specifies the IDE device -
trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/VBoxIdeBusDxe/IdeBus.c
r33027 r33540 31 31 32 32 @par Revision Reference: 33 This module is modified from DXE\IDE module for Ide Contr iller Init support33 This module is modified from DXE\IDE module for Ide Controller Init support 34 34 35 35 **/ … … 59 59 @param Handle Handle of device to deregister driver on 60 60 61 @retval EFI_SUCCESS Deregi ter a specific IDE device successfully61 @retval EFI_SUCCESS Deregister a specific IDE device successfully 62 62 63 63 … … 475 475 // 476 476 // If RemainingDevicePath is the End of Device Path Node, 477 // skip enumerate any device and return EFI_SUC ESSS477 // skip enumerate any device and return EFI_SUCCESS 478 478 // 479 479 BeginningIdeChannel = IdeMaxChannel; … … 744 744 745 745 // 746 // Set supported DMA mode on this IDE device. Note that UDMA & MDMA cann 't746 // Set supported DMA mode on this IDE device. Note that UDMA & MDMA cannot 747 747 // be set together. Only one DMA mode can be set to a device. If setting 748 748 // DMA mode operation fails, we can continue moving on because we only use … … 840 840 841 841 // 842 // Report status code: device e anbled!842 // Report status code: device enabled! 843 843 // 844 844 REPORT_STATUS_CODE_WITH_DEVICE_PATH ( … … 1259 1259 Flushes all modified data to a physical block devices 1260 1260 1261 @param This Indicates a pointer to the calling context which to s epcify a1262 s epcific block device1261 @param This Indicates a pointer to the calling context which to specify a 1262 specific block device 1263 1263 1264 1264 @retval EFI_SUCCESS Always return success. … … 1287 1287 @retval EFI_NOT_FOUND Device does not support this data class 1288 1288 @retval EFI_DEVICE_ERROR Error reading InquiryData from device 1289 @retval EFI_BUFFER_TOO_SMALL In tquiryDataSize not big enough1289 @retval EFI_BUFFER_TOO_SMALL InquiryDataSize not big enough 1290 1290 1291 1291 **/ … … 1418 1418 1419 1419 @param Event Pointer to this event 1420 @param Context Event han lder private data1420 @param Context Event handler private data 1421 1421 1422 1422 **/ … … 1460 1460 1461 1461 // 1462 // Get base address of IDE Bus Master Status Reg siter1462 // Get base address of IDE Bus Master Status Register 1463 1463 // 1464 1464 if (IdePrimary == IdeDev->Channel) { -
trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/VBoxIdeBusDxe/IdeBus.h
r33027 r33540 445 445 Flushes all modified data to a physical block devices 446 446 447 @param This Indicates a pointer to the calling context which to s epcify a448 s epcific block device447 @param This Indicates a pointer to the calling context which to specify a 448 specific block device 449 449 450 450 @retval EFI_SUCCESS Always return success. … … 466 466 @retval EFI_NOT_FOUND Device does not support this data class 467 467 @retval EFI_DEVICE_ERROR Error reading InquiryData from device 468 @retval EFI_BUFFER_TOO_SMALL In tquiryDataSize not big enough468 @retval EFI_BUFFER_TOO_SMALL InquiryDataSize not big enough 469 469 470 470 **/ … … 546 546 547 547 @param Event Pointer to this event 548 @param Context Event han lder private data548 @param Context Event handler private data 549 549 550 550 **/ -
trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/VBoxIdeControllerDxe/IdeController.c
r33212 r33540 96 96 model. It's called by StartImage() of DXE Core 97 97 98 Arg ments:99 100 ImageH nadle -- While the driver image loaded be the ImageLoader(),98 Arguments: 99 100 ImageHandle -- While the driver image loaded be the ImageLoader(), 101 101 an image handle is assigned to this driver binary, 102 102 all activities of the driver is tied to this ImageHandle … … 104 104 RT(Runtime Services) 105 105 106 Ret runs:107 108 Always call EfiLibInstallDriverBindingProtocol( ) and ret run the result106 Returns: 107 108 Always call EfiLibInstallDriverBindingProtocol( ) and return the result 109 109 110 110 --*/ … … 467 467 468 468 This function is called by IdeBus driver to disqualify unsupported operation 469 mode on spec fic IDE device469 mode on specific IDE device 470 470 471 471 Arguments: -
trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/VBoxMisc/efi-app/Readme.txt
r32404 r33540 17 17 Here could be some help how to manage files on efi-app ISO 18 18 19 VBoxInterceptor - intercepts calls to gBS and gRT, outputs a lot of traffics to dev_efi.e.l2, (please be pa cient ;))19 VBoxInterceptor - intercepts calls to gBS and gRT, outputs a lot of traffics to dev_efi.e.l2, (please be patient ;)) 20 20 Shell> load VBoxInterceptor.efi -
trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/VBoxPkg.dsc
r33028 r33540 407 407 # PCD module loaded in the middle of space grub supposed to load 408 408 # boot images. 409 # this base address cho osen looking at409 # this base address chosen looking at 410 410 # Shell> memmap 411 411 # in the place where Image.c locates the rest of the modules. -
trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/VBoxPkgOSE.dsc
r32394 r33540 404 404 # PCD module loaded in the middle of space grub supposed to load 405 405 # boot images. 406 # this base address cho osen looking at406 # this base address chosen looking at 407 407 # Shell> memmap 408 408 # in the place where Image.c locates the rest of the modules. -
trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/VBoxSysTables/LegacyBiosMpTable.h
r29081 r33540 34 34 35 35 Abstract: 36 Defi ves data structures per Multi Processor Specification Ver 1.4.36 Defines data structures per Multi Processor Specification Ver 1.4. 37 37 38 38 --*/ -
trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/VBoxSysTables/TableConversion.c
r29081 r33540 69 69 70 70 Returns: 71 EFI_SUC EESS - Convert Table successfully71 EFI_SUCCESS - Convert Table successfully 72 72 Other - Failed 73 73 … … 109 109 Routine Description: 110 110 111 Convert Smbios Table if the Location of the SMBios Table is lower than Addres 0x100000111 Convert Smbios Table if the Location of the SMBios Table is lower than Address 0x100000 112 112 Assumption here: 113 113 As in legacy Bios, Smbios table is required to place in E/F Seg, … … 118 118 119 119 Returns: 120 EFI_SUC EESS - Convert Table successfully120 EFI_SUCCESS - Convert Table successfully 121 121 Other - Failed 122 122 … … 195 195 Routine Description: 196 196 197 Convert MP Table if the Location of the SMBios Table is lower than Addres 0x100000197 Convert MP Table if the Location of the SMBios Table is lower than Address 0x100000 198 198 Assumption here: 199 199 As in legacy Bios, MP table is required to place in E/F Seg, … … 204 204 205 205 Returns: 206 EFI_SUC EESS - Convert Table successfully206 EFI_SUCCESS - Convert Table successfully 207 207 Other - Failed 208 208 … … 306 306 307 307 Returns: 308 EFI_SUC EESS - Convert Table successfully308 EFI_SUCCESS - Convert Table successfully 309 309 Other - Failed 310 310 -
trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/VBoxVgaDxe/VBoxVga.c
r33086 r33540 346 346 PciAttributesSaved = FALSE; 347 347 // 348 // Allocate Private context data for UGA Draw inte face.348 // Allocate Private context data for UGA Draw interface. 349 349 // 350 350 Private = AllocateZeroPool (sizeof (VBOX_VGA_PRIVATE_DATA)); -
trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/VBoxVgaDxe/VBoxVgaGraphicsOutput.c
r29081 r33540 34 34 Abstract: 35 35 36 This file produces the graphics abstra tion of Graphics Output Protocol. It is called by36 This file produces the graphics abstraction of Graphics Output Protocol. It is called by 37 37 VBoxVga.c file which deals with the EFI 1.1 driver model. 38 38 This file just does graphics. -
trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/VBoxVgaDxe/VBoxVgaI2c.c
r29081 r33540 143 143 144 144 /** 145 Read/write delay ac oording to I2C Bus Speed.145 Read/write delay according to I2C Bus Speed. 146 146 147 147 **/ … … 296 296 Read one byte data on I2C Bus. 297 297 298 Read one byte data from the slave device connecte tto I2C Bus.298 Read one byte data from the slave device connected to I2C Bus. 299 299 If Data is NULL, then ASSERT(). 300 300 … … 381 381 Write one byte data onto I2C Bus. 382 382 383 Write one byte data to the slave device connecte tto I2C Bus.383 Write one byte data to the slave device connected to I2C Bus. 384 384 If Data is NULL, then ASSERT(). 385 385 -
trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/VBoxVgaDxe/VBoxVgaI2c.h
r29081 r33540 40 40 Read one byte data on I2C Bus. 41 41 42 Read one byte data from the slave device connecte tto I2C Bus.42 Read one byte data from the slave device connected to I2C Bus. 43 43 If Data is NULL, then ASSERT(). 44 44 … … 64 64 Write one byte data onto I2C Bus. 65 65 66 Write one byte data to the slave device connecte tto I2C Bus.66 Write one byte data to the slave device connected to I2C Bus. 67 67 If Data is NULL, then ASSERT(). 68 68 -
trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/VBoxVgaDxe/VBoxVgaUgaDraw.c
r29081 r33540 19 19 This code is based on: 20 20 21 This file produces the graphics abstra tion of UGA Draw. It is called by21 This file produces the graphics abstraction of UGA Draw. It is called by 22 22 VBoxVga.c file which deals with the EFI 1.1 driver model. 23 23 This file just does graphics. -
trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/edk2.patch-idtgdt
r29229 r33540 122 122 123 123 @@ -1015,27 +1016,33 @@ 124 // In tialize IDT124 // Initialize IDT 125 125 // 126 126 CurrentHandler = (UINTN)AsmIdtVector00; -
trunk/src/VBox/Devices/EFI/tools/include/Common/BaseTypes.h
r23119 r33540 27 27 28 28 // 29 // Modifiers to abs ract standard types to aid in debug of problems29 // Modifiers to abstract standard types to aid in debug of problems 30 30 // 31 31 #define CONST const … … 40 40 // 41 41 // Some other envirnments use this construct, so #ifndef to prevent 42 // mul itple definition.42 // multiple definition. 43 43 // 44 44 #define IN … … 53 53 // 54 54 // BugBug: UEFI specification claims 1 and 0. We are concerned about the 55 // comp lier portability so we did it this way.55 // compiler portability so we did it this way. 56 56 // 57 57 #define TRUE ((BOOLEAN)(1==1)) … … 70 70 // 71 71 // Since we are using the ANSI standard we used the standard nameing and 72 // did not fol ow the coding convention72 // did not follow the coding convention 73 73 // 74 74 // VA_LIST - typedef for argument list. 75 75 // VA_START (VA_LIST Marker, argument before the ...) - Init Marker for use. 76 76 // VA_END (VA_LIST Marker) - Clear Marker 77 // VA_ARG (VA_LIST Marker, var arg size) - Use Marker to get an argum net from77 // VA_ARG (VA_LIST Marker, var arg size) - Use Marker to get an argument from 78 78 // the ... list. You must know the size and pass it in this macro. 79 79 // … … 137 137 138 138 /// 139 /// ALIGN_POINTER - aligns a pointer to the lowest bound ry139 /// ALIGN_POINTER - aligns a pointer to the lowest boundary 140 140 /// 141 141 #define ALIGN_POINTER(p, s) ((VOID *) ((UINTN)(p) + (((s) - ((UINTN) (p))) & ((s) - 1)))) 142 142 143 143 /// 144 /// ALIGN_VARIABLE - aligns a variable up to the next natural bound ry for int size of a processor144 /// ALIGN_VARIABLE - aligns a variable up to the next natural boundary for int size of a processor 145 145 /// 146 146 #define ALIGN_VARIABLE(Value, Adjustment) \ -
trunk/src/VBox/Devices/EFI/tools/include/Common/PiFirmwareFile.h
r23119 r33540 211 211 212 212 // 213 // Leaf section which con stains the position-independent-code image.213 // Leaf section which contains the position-independent-code image. 214 214 // 215 215 typedef EFI_COMMON_SECTION_HEADER EFI_TE_SECTION; -
trunk/src/VBox/Devices/EFI/tools/include/Common/UefiBaseTypes.h
r23119 r33540 22 22 23 23 // 24 // Basic aldata type definitions introduced in UEFI.24 // Basic data type definitions introduced in UEFI. 25 25 // 26 26 typedef struct { -
trunk/src/VBox/Devices/EFI/tools/include/Ia32/ProcessorBind.h
r23119 r33540 55 55 56 56 // 57 // ASSERT(FALSE) or while (TRUE) are legal construct es so supress this warning57 // ASSERT(FALSE) or while (TRUE) are legal constructs so suppress this warning 58 58 // 59 59 #pragma warning ( disable : 4127 ) … … 71 71 72 72 // 73 // use Microsoft* C comp lier dependent interger width types73 // use Microsoft* C compiler dependent integer width types 74 74 // 75 75 typedef unsigned __int64 UINT64; … … 142 142 // Modifier to ensure that all protocol member functions and EFI intrinsics 143 143 // use the correct C calling convention. All protocol member functions and 144 // EFI intrinsics are required to modify th ier member functions with EFIAPI.144 // EFI intrinsics are required to modify their member functions with EFIAPI. 145 145 // 146 146 #if _MSC_EXTENSIONS -
trunk/src/VBox/Devices/EFI/tools/include/IndustryStandard/PeImage.h
r23119 r33540 105 105 #define EFI_IMAGE_FILE_RELOCS_STRIPPED 0x0001 // Relocation info stripped from file. 106 106 #define EFI_IMAGE_FILE_EXECUTABLE_IMAGE 0x0002 // File is executable (i.e. no unresolved externel references). 107 #define EFI_IMAGE_FILE_LINE_NUMS_STRIPPED 0x0004 // Line nu nbers stripped from file.107 #define EFI_IMAGE_FILE_LINE_NUMS_STRIPPED 0x0004 // Line numbers stripped from file. 108 108 #define EFI_IMAGE_FILE_LOCAL_SYMS_STRIPPED 0x0008 // Local symbols stripped from file. 109 109 #define EFI_IMAGE_FILE_BYTES_REVERSED_LO 0x0080 // Bytes of machine word are reversed. … … 309 309 310 310 // 311 // This is just to make sure you can cross compile with the EBC compi iler.311 // This is just to make sure you can cross compile with the EBC compiler. 312 312 // It does not make sense to have a PE loader coded in EBC. You need to 313 313 // understand the basic -
trunk/src/VBox/Devices/EFI/tools/include/X64/ProcessorBind.h
r23119 r33540 57 57 58 58 // 59 // ASSERT(FALSE) or while (TRUE) are legal construct es so supress this warning59 // ASSERT(FALSE) or while (TRUE) are legal constructs so suppress this warning 60 60 // 61 61 #pragma warning ( disable : 4127 ) … … 74 74 75 75 // 76 // use Microsoft C comp lier dependent interger width types76 // use Microsoft C compiler dependent integer width types 77 77 // 78 78 typedef unsigned __int64 UINT64; … … 161 161 // Modifier to ensure that all protocol member functions and EFI intrinsics 162 162 // use the correct C calling convention. All protocol member functions and 163 // EFI intrinsics are required to modify th ier member functions with EFIAPI.163 // EFI intrinsics are required to modify their member functions with EFIAPI. 164 164 // 165 165 #if _MSC_EXTENSIONS 166 166 /// 167 /// Define the standard calling convention reg uardless of optimization level.167 /// Define the standard calling convention regardless of optimization level. 168 168 /// __cdecl is Microsoft* specific C extension. 169 169 /// … … 171 171 #elif __GNUC__ 172 172 /// 173 /// Define the standard calling convention reg uardless of optimization level.173 /// Define the standard calling convention regardless of optimization level. 174 174 /// efidecl is an extension to GCC that supports the differnece between x64 175 175 /// GCC ABI and x64 Microsoft* ABI. EFI is closer to the Microsoft* ABI and
Note:
See TracChangeset
for help on using the changeset viewer.