-
Notifications
You must be signed in to change notification settings - Fork 1
/
AppleBootPath.h
49 lines (40 loc) · 1.4 KB
/
AppleBootPath.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/** @file
*
* Copyright (c) 2021 Vladislav Yaroshchuk. All rights reserved.<BR>
*
* This program and the accompanying materials
* are licensed and made available under the terms and conditions of the BSD License
* which accompanies this distribution. The full text of the license may be found at
* http://opensource.org/licenses/bsd-license.php
*
* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
*
* Module Name:
*
* AppleBootPath.h
*
* Abstract:
*
* Abstraction of Apple's boot.efi bootloader path retrieval
**/
#ifndef _APPLE_BOOT_PATH_PROTOCOL_H_
#define _APPLE_BOOT_PATH_PROTOCOL_H_
#define EFI_APPLE_BOOT_PATH_PROTOCOL_GUID \
{0x85e1deb6, 0xd97a, 0x4bea, {0xa0, 0xa0, 0xe6, 0xa9, 0x43, 0x32, 0x85, 0x09}}
typedef struct _EFI_APPLE_BOOT_PATH_PROTOCOL EFI_APPLE_BOOT_PATH_PROTOCOL;
/**
* Attempts to find Apple's boot.efi bootloader expanding media device path.
* Returns expanded device path if bootloader found, otherwise NULL
*/
typedef
EFI_DEVICE_PATH_PROTOCOL *
(EFIAPI *EFI_APPLE_BOOT_PATH_GET_BOOT_LOADER_PATH) (
IN EFI_APPLE_BOOT_PATH_PROTOCOL *This,
IN EFI_HANDLE Device
);
struct _EFI_APPLE_BOOT_PATH_PROTOCOL {
EFI_APPLE_BOOT_PATH_GET_BOOT_LOADER_PATH GetBootLoaderPath;
};
extern EFI_GUID gEfiAppleBootPathProtocolGuid;
#endif //_APPLE_BOOT_PATH_PROTOCOL_H_