summaryrefslogtreecommitdiff
path: root/include/efi_riscv.h
blob: 4bd39c4366fd95149bbf2c202f47f0a7e67f849c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* SPDX-License-Identifier: GPL-2.0+ */
/*
 * RISCV_EFI_BOOT_PROTOCOL
 *
 * Copyright (c) 2022 Ventana Micro Systems Inc
 */

#include <efi_api.h>

#define RISCV_EFI_BOOT_PROTOCOL_REVISION 0x00010000

/**
 * struct riscv_efi_boot_protocol - RISCV_EFI_BOOT_PROTOCOL
 * @revision:		Version of the protocol implemented
 * @get_boot_hartid:	Get the boot hart ID
 */
struct riscv_efi_boot_protocol {
	u64 revision;

	efi_status_t (EFIAPI * get_boot_hartid) (struct riscv_efi_boot_protocol *this,
						 efi_uintn_t *boot_hartid);
};

extern struct riscv_efi_boot_protocol riscv_efi_boot_prot;