summaryrefslogtreecommitdiff
path: root/include/sbi/sbi_fwft.h
blob: 2148820e93f2175ee9fe543a877d02973e4f807f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * SPDX-License-Identifier: BSD-2-Clause
 *
 * Copyright (c) 2024 Rivos Inc.
 *
 * Authors:
 *   Clément Léger <cleger@rivosinc.com>
 */

#ifndef __SBI_FW_FEATURE_H__
#define __SBI_FW_FEATURE_H__

#include <sbi/sbi_ecall_interface.h>

struct sbi_scratch;

int sbi_fwft_set(enum sbi_fwft_feature_t feature, unsigned long value,
		 unsigned long flags);
int sbi_fwft_get(enum sbi_fwft_feature_t feature, unsigned long *out_val);

int sbi_fwft_init(struct sbi_scratch *scratch, bool cold_boot);

#endif