OpenCore
1.0.4
OpenCore Bootloader
|
Go to the source code of this file.
Data Structures | |
struct | APPLE_DISK_IMAGE_PROTOCOL |
Macros | |
#define | APPLE_DISK_IMAGE_PROTOCOL_GUID |
#define | APPLE_DISK_IMAGE_PROTOCOL_REVISION 2 |
Typedefs | |
typedef EFI_STATUS(EFIAPI * | APPLE_DISK_IMAGE_SUPPORTED) (IN EFI_DEVICE_PATH_PROTOCOL *DevicePath) |
typedef EFI_STATUS(EFIAPI * | APPLE_DISK_IMAGE_MOUNT_IMAGE) (IN EFI_DEVICE_PATH_PROTOCOL *DevicePath, OUT EFI_HANDLE *Handle OPTIONAL) |
typedef EFI_STATUS(EFIAPI * | APPLE_DISK_IMAGE_UNMOUNT_IMAGE) (IN EFI_HANDLE Handle) |
Variables | |
EFI_GUID | gAppleDiskImageProtocolGuid |
Apple Disk Image protocol.
Copyright (C) 2019, vit9696. All rights reserved.
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.
Definition in file AppleDiskImage.h.
#define APPLE_DISK_IMAGE_PROTOCOL_GUID |
Apple Disk Image protocol GUID. 004B07E8-0B9C-427E-B0D4-A466E6E57A62
Definition at line 22 of file AppleDiskImage.h.
#define APPLE_DISK_IMAGE_PROTOCOL_REVISION 2 |
Apple Disk Image protocol revision.
Definition at line 29 of file AppleDiskImage.h.
typedef EFI_STATUS(EFIAPI * APPLE_DISK_IMAGE_MOUNT_IMAGE) (IN EFI_DEVICE_PATH_PROTOCOL *DevicePath, OUT EFI_HANDLE *Handle OPTIONAL) |
Mounts dmg file at DevicePath providing relevant protocols:
Note, that DiskImage protocol does not protect DMG memory from the kernel. It only works in UEFI scope. For the kernel to boot the parent protocol, namely RamDisk, should have us covered by allocating DMG extent memory as wired (EfiACPIMemoryNVS).
[in] | DevicePath | Path to dmg file. |
[out] | Handle | Dmg handle. |
EFI_SUCCESS | Dmg was mounted with relevant protocols. |
EFI_INVALID_PARAMETER | Dmg is not valid. |
EFI_UNSUPPORTED | Dmg is less than 512 bytes. |
EFI_NOT_FOUND | Dmg was not found at this device path. |
EFI_OUT_OF_RESOURCES | Memory allocation error happened. |
Definition at line 73 of file AppleDiskImage.h.
typedef EFI_STATUS(EFIAPI * APPLE_DISK_IMAGE_SUPPORTED) (IN EFI_DEVICE_PATH_PROTOCOL *DevicePath) |
Checks whether dmg file at DevicePath is valid. Essentially this is done by verifying last 512 bytes of the file.
[in] | DevicePath | Path to dmg file. |
EFI_SUCCESS | Dmg looks valid and can be loaded. |
EFI_UNSUPPORTED | Dmg is unsupported. |
EFI_NOT_FOUND | Dmg was not found at this device path. |
EFI_OUT_OF_RESOURCES | Memory allocation error happened. |
Definition at line 44 of file AppleDiskImage.h.
typedef EFI_STATUS(EFIAPI * APPLE_DISK_IMAGE_UNMOUNT_IMAGE) (IN EFI_HANDLE Handle) |
Unmounts dmg file at handle and uninstalls the following protocols:
[in] | Handle | Dmg handle. |
EFI_SUCCESS | Dmg was unmounted with relevant protocols. |
EFI_INVALID_PARAMETER | Dmg handle is not valid. |
EFI_NOT_FOUND | Relevant protocols were not found. |
Definition at line 93 of file AppleDiskImage.h.
|
extern |