Rewrite and reorganize the entire codebase

This commit is contained in:
Jozef Nagy 2024-03-29 22:39:42 +01:00
parent 01c1e3aa2e
commit 937e50d0ee
No known key found for this signature in database
GPG key ID: 5B49DC29F09685D6
19 changed files with 1422 additions and 1339 deletions

34
protocols/loaded_image.h Normal file
View file

@ -0,0 +1,34 @@
#ifndef EFI_PROTOCOLS_LOADED_IMAGE_H
#define EFI_PROTOCOLS_LOADED_IMAGE_H
#define EFI_LOADED_IMAGE_PROTOCOL_GUID {0x5b1b31a1,0x9562,0x11d2, {0x8e,0x3f,0x00,0xa0,0xc9,0x69,0x72,0x3b}}
#define EFI_LOADED_IMAGE_PROTOCOL_VERSION 0x1000
typedef
EFI_STATUS
(EFIAPI *EFI_IMAGE_UNLOAD)(
IN EFI_HANDLE ImageHandle
);
typedef struct _EFI_LOADED_IMAGE_PROTOCOL {
UINT32 Revision;
EFI_HANDLE ParentHandle;
EFI_SYSTEM_TABLE *SystemTable;
// Source location of the image
EFI_HANDLE DeviceHandle;
EFI_DEVICE_PATH_PROTOCOL *FilePath;
VOID *Reserved;
UINT32 LoadOptionsSize;
VOID *LoadOptions;
VOID *ImageBase;
UINT64 ImageSize;
EFI_MEMORY_TYPE ImageCodeType;
EFI_MEMORY_TYPE ImageDataType;
EFI_IMAGE_UNLOAD Unload;
} EFI_LOADED_IMAGE_PROTOCOL;
#endif /* EFI_PROTOCOLS_LOADED_IMAGE_H */