Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
sbi.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2026 Alexios Lyrakis <alexios.lyrakis@gmail.com>
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
20
21#ifndef ZEPHYR_ARCH_RISCV_INCLUDE_SBI_H_
22#define ZEPHYR_ARCH_RISCV_INCLUDE_SBI_H_
23
25#define SBI_EXT_TIME 0x54494D45
26
28#define SBI_FUNC_SET_TIMER 0
29
31#define SBI_EXT_SRST 0x53525354
32
34#define SBI_FUNC_SYSTEM_RESET 0
35
37#define SBI_SRST_RESET_TYPE_SHUTDOWN 0
39#define SBI_SRST_RESET_TYPE_COLD_REBOOT 1
41#define SBI_SRST_RESET_TYPE_WARM_REBOOT 2
42
44#define SBI_SRST_RESET_REASON_NONE 0
45
47#define SBI_SUCCESS 0
49#define SBI_ERR_NOT_SUPPORTED -1
50
51#endif /* ZEPHYR_ARCH_RISCV_INCLUDE_SBI_H_ */