OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
OcAfterBootCompatLib.h
Go to the documentation of this file.
1
15#ifndef OC_AFTER_BOOT_COMPAT_LIB_H
16#define OC_AFTER_BOOT_COMPAT_LIB_H
17
18#include <Library/OcCryptoLib.h>
19#include <Library/OcCpuLib.h>
20
24typedef struct OC_BOOTER_PATCH_ {
25 //
26 // Comment from user.
27 //
28 CHAR8 *Comment;
29 //
30 // Target architecture.
31 //
32 CONST CHAR8 *Arch;
33 //
34 // Find bytes.
35 //
36 CONST UINT8 *Find;
37 //
38 // Replace bytes.
39 //
40 CONST UINT8 *Replace;
41 //
42 // Find mask or NULL.
43 //
44 CONST UINT8 *Mask;
45 //
46 // Replace mask or NULL.
47 //
48 CONST UINT8 *ReplaceMask;
49 //
50 // Patch size.
51 //
52 UINT32 Size;
53 //
54 // Replace count or 0 for all.
55 //
56 UINT32 Count;
57 //
58 // Skip count or 0 to start from 1 match.
59 //
60 UINT32 Skip;
61 //
62 // Limit replacement size to this value or 0, which assumes booter file size.
63 //
64 UINT32 Limit;
65 //
66 // Identifier for bootloader type. (e.g. Apple for boot.efi, or file name suffix for other possible booters)
67 //
68 CONST CHAR8 *Identifier;
70
220
230EFI_STATUS
232 IN OC_ABC_SETTINGS *Settings,
233 IN OC_CPU_INFO *CpuInfo
234 );
235
236#endif // OC_AFTER_BOOT_COMPAT_LIB_H
struct OC_ABC_SETTINGS_ OC_ABC_SETTINGS
struct OC_BOOTER_PATCH_ OC_BOOTER_PATCH
EFI_STATUS OcAbcInitialize(IN OC_ABC_SETTINGS *Settings, IN OC_CPU_INFO *CpuInfo)
#define SHA1_DIGEST_SIZE
Definition OcCryptoLib.h:44
EFI_EVENT_NOTIFY * ExitBootServicesHandlers
EFI_PHYSICAL_ADDRESS * MmioWhitelist
UINT8 BooterSignature[SHA1_DIGEST_SIZE]
VOID ** ExitBootServicesHandlerContexts
OC_BOOTER_PATCH * BooterPatches
CONST UINT8 * ReplaceMask