summaryrefslogtreecommitdiffstats
path: root/src/boot/efi/proto/load-file.h
blob: 2e01ce5744c023d07bcfd826f805bf8b2d98a882 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once

#include "efi.h"

#define EFI_LOAD_FILE_PROTOCOL_GUID \
        GUID_DEF(0x56EC3091, 0x954C, 0x11d2, 0x8e, 0x3f, 0x00, 0xa0, 0xc9, 0x69, 0x72, 0x3b)
#define EFI_LOAD_FILE2_PROTOCOL_GUID \
        GUID_DEF(0x4006c0c1, 0xfcb3, 0x403e, 0x99, 0x6d, 0x4a, 0x6c, 0x87, 0x24, 0xe0, 0x6d)

typedef struct EFI_LOAD_FILE_PROTOCOL EFI_LOAD_FILE_PROTOCOL;
typedef EFI_LOAD_FILE_PROTOCOL EFI_LOAD_FILE2_PROTOCOL;

struct EFI_LOAD_FILE_PROTOCOL {
        EFI_STATUS (EFIAPI *LoadFile)(
                        EFI_LOAD_FILE_PROTOCOL *This,
                        EFI_DEVICE_PATH *FilePath,
                        bool BootPolicy,
                        size_t *BufferSize,
                        void *Buffer);
};