blob: 4bd39c4366fd95149bbf2c202f47f0a7e67f849c [file] [log] [blame]
Sunil V L1ccf8712022-01-28 20:48:44 +05301/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * RISCV_EFI_BOOT_PROTOCOL
4 *
5 * Copyright (c) 2022 Ventana Micro Systems Inc
6 */
7
8#include <efi_api.h>
9
10#define RISCV_EFI_BOOT_PROTOCOL_REVISION 0x00010000
11
12/**
13 * struct riscv_efi_boot_protocol - RISCV_EFI_BOOT_PROTOCOL
14 * @revision: Version of the protocol implemented
15 * @get_boot_hartid: Get the boot hart ID
16 */
17struct riscv_efi_boot_protocol {
18 u64 revision;
19
20 efi_status_t (EFIAPI * get_boot_hartid) (struct riscv_efi_boot_protocol *this,
21 efi_uintn_t *boot_hartid);
22};
23
24extern struct riscv_efi_boot_protocol riscv_efi_boot_prot;