OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
AppleBless.h
Go to the documentation of this file.
1
13#ifndef APPLE_BLESS_H
14#define APPLE_BLESS_H
15
16//
17// These GUIDs allow to retrieve parsed finderInfo fields out of HFSPlusVolumeHeader
18// via HFSPlus.efi driver. The fields are reads from the following structure in Big Endian:
19//
20// struct HFSPlusVolumeFinderInfo {
21// uint32_t blessedSystemFolderID; // for OpenFirmware systems
22// uint32_t blessedSystemFileID; // for EFI systems
23// uint32_t openWindowFolderID; // deprecated, first link in linked list of folders to open at mount
24// uint32_t blessedAlternateOSID; // currently used for FV2 recovery, inaccessible from UEFI
25// uint32_t unused; // formerly PowerTalk Inbox
26// uint32_t blessedOSXFolderID; // currently used for normal recovery
27// uint64_t volumeID;
28// };
29//
30// References:
31// https://opensource.apple.com/source/hfs/hfs-407.30.1/core/hfs_format.h.auto.html
32// https://opensource.apple.com/source/bless/bless-166/handleInfo.c.auto.html
33// https://opensource.apple.com/source/bless/bless-166/libbless/FinderInfo/BLGetVolumeFinderInfo.c.auto.html
34// https://opensource.apple.com/source/bless/bless-166/libbless/HFS/BLLookupFileIDOnMount.c.auto.html
35//
36// TODO: Implement this in an opensource HFSPlus EFI driver.
37//
38
39// APPLE_BLESSED_SYSTEM_FILE_INFO_GUID
41#define APPLE_BLESSED_SYSTEM_FILE_INFO_GUID \
42 { 0xCA7E4814, 0x2ADC, 0x4ADD, \
43 { 0xAB, 0xFF, 0x73, 0x4E, 0x3C, 0xFE, 0x13, 0xF3 } }
44
45// APPLE_BLESSED_SYSTEM_FOLDER_INFO_GUID
47#define APPLE_BLESSED_SYSTEM_FOLDER_INFO_GUID \
48 { 0x7BD1F02D, 0x9C2F, 0x4581, \
49 { 0xBF, 0x12, 0xD5, 0x4a, 0xBA, 0x0D, 0x98, 0xD6 } }
50
51// APPLE_BLESSED_OSX_FOLDER_INFO_GUID
53#define APPLE_BLESSED_OSX_FOLDER_INFO_GUID \
54 { 0x893CA450, 0x5F5E, 0x48BA, \
55 { 0x85, 0x8F, 0x08, 0xC4, 0x5D, 0x80, 0x23, 0x18 } }
56
57// gAppleBlessedSystemFileInfoGuid
60
61// gAppleBlessedSystemFolderInfoGuid
64
65// gAppleBlessedOsxFolderInfoGuid
67extern EFI_GUID gAppleBlessedOsxFolderInfoGuid;
68
69#endif // APPLE_BLESS_H
EFI_GUID gAppleBlessedOsxFolderInfoGuid
A global variable storing the GUID of the APPLE_BLESSED_OSX_FOLDER_INFO_GUID.
EFI_GUID gAppleBlessedSystemFileInfoGuid
A global variable storing the GUID of the APPLE_BLESSED_SYSTEM_FILE_INFO_GUID.
EFI_GUID gAppleBlessedSystemFolderInfoGuid
A global variable storing the GUID of the APPLE_BLESSED_SYSTEM_FOLDER_INFO_GUID.