1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
/*
* EFI Boot Guard
*
* Copyright (c) Siemens AG, 2017
*
* Authors:
* Andreas Reichel <andreas.reichel.ext@siemens.com>
*
* This work is licensed under the terms of the GNU GPL, version 2. See
* the COPYING file in the top-level directory.
*
* SPDX-License-Identifier: GPL-2.0-only
*/
#pragma once
#include <efi.h>
#include "envdata.h"
/* The following definitions regarding status and error constants are
* implemented the same way the corresponding gnu-efi constants are
* defined. This is done for symmetry reasons and for the sake of
* completeness. */
typedef int BG_STATUS;
#define BGERR(a) (-a)
#define BG_ERROR(a) (((int)a) < 0)
#define BG_SUCCESS 0
#define BG_CONFIG_PARTIALLY_CORRUPTED BGERR(100)
#define BG_CONFIG_ERROR BGERR(110)
#define BG_NOT_IMPLEMENTED BGERR(200)
extern EFI_HANDLE this_image;
typedef struct _BG_LOADER_PARAMS {
CHAR16 *payload_path;
CHAR16 *payload_options;
UINTN timeout;
UINT8 ustate;
} BG_LOADER_PARAMS;
|