diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/efi_loader.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/efi_loader.h b/include/efi_loader.h index 40f6c89e65..f384cbbe77 100644 --- a/include/efi_loader.h +++ b/include/efi_loader.h @@ -66,6 +66,14 @@ struct efi_object { void *handle; }; +#define EFI_PROTOCOL_OBJECT(_guid, _protocol) (struct efi_object){ \ + .protocols = {{ \ + .guid = &(_guid), \ + .protocol_interface = (void *)(_protocol), \ + }}, \ + .handle = (void *)(_protocol), \ +} + /** * struct efi_event * |