/** @file Copyright (C) 2019, vit9696. All rights reserved. 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. **/ #ifndef OC_APPLE_KERNEL_LIB_H #define OC_APPLE_KERNEL_LIB_H #include #include /** Read Apple kernel for target architecture (possibly decompressing) into pool allocated buffer. @param[in] File File handle instance. @param[in, out] Kernel Resulting non-fat kernel buffer from pool. @param[out] KernelSize Actual kernel size. @param[out] AllocatedSize Allocated kernel size (AllocatedSize >= KernelSize). @return EFI_SUCCESS on success. **/ EFI_STATUS ReadAppleKernel ( IN EFI_FILE_PROTOCOL *File, IN OUT UINT8 **Kernel, OUT UINT32 *KernelSize, OUT UINT32 *AllocatedSize ); #endif // OC_APPLE_KERNEL_LIB_H