opensbi/include/sbi
Andrew Jones bdde2ecd27 lib: sbi: Align system suspend errors with spec
The spec says sbi_system_suspend() will return SBI_ERR_INVALID_PARAM
when "sleep_type is reserved or is platform-specific and unimplemented"
and SBI_ERR_NOT_SUPPORTED when sleep_type "is not reserved and is
implemented, but the platform does not support it due to one or more
missing dependencies." Ensure SBI_ERR_INVALID_PARAM is returned for
reserved sleep types and that the system suspend driver can choose
which of the two error types to return itself by returning an error
from its check function rather than a boolean.

Signed-off-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
2023-06-04 15:18:40 +05:30
..
fw_dynamic.h include: Use static asserts for FW_DYNAMIC_INFO_xxx_OFFSET defines 2022-03-27 09:44:58 +05:30
riscv_asm.h lib: utils: reset: Add T-HEAD sample platform reset driver 2021-04-22 15:13:53 +05:30
riscv_atomic.h include: Use more consistent name for atomic xchg() and cmpxchg() 2020-03-28 13:32:38 +05:30
riscv_barrier.h lib: utils: reset: Add T-HEAD sample platform reset driver 2021-04-22 15:13:53 +05:30
riscv_elf.h firmware: Support position independent execution 2021-03-19 15:00:50 +05:30
riscv_encoding.h lib: sbi_hart: Enable hcontext and scontext 2023-02-27 11:22:11 +05:30
riscv_fp.h lib: sbi: Fix GET_F64_REG inline assembly 2021-06-12 09:53:33 +05:30
riscv_io.h all: run clang-format and update checked-in files 2019-04-24 09:49:46 +05:30
riscv_locks.h lib: sbi: Have spinlock checks return bool 2021-05-14 17:05:20 +05:30
sbi_bitmap.h lib: Simple bitmap library 2020-03-11 15:29:45 +05:30
sbi_bitops.h lib: sbi: Simplify BITS_PER_LONG definition 2023-05-11 12:56:56 +05:30
sbi_byteorder.h include: sbi: Fix BSWAPx() macros for big-endian host 2023-02-09 09:31:10 +05:30
sbi_console.h lib: sbi: Add console_puts() callback in the console device 2023-02-10 10:04:41 +05:30
sbi_const.h include: headers: Replace __ASSEMBLY__ with __ASSEMBLER__ 2021-03-22 16:02:48 +05:30
sbi_cppc.h lib: sbi: Implement SBI CPPC extension 2023-04-07 09:36:01 +05:30
sbi_csr_detect.h lib: fix csr detect support 2021-04-05 13:43:08 +05:30
sbi_domain.h lib: sbi: Fix how to check whether the domain contains fw_region 2023-04-06 16:14:35 +05:30
sbi_ecall.h lib: sbi: Document sbi_ecall_extension members 2023-05-21 16:54:02 +05:30
sbi_ecall_interface.h lib: sbi_pmu: Align the event type offset as per SBI specification 2023-04-07 10:06:59 +05:30
sbi_emulate_csr.h lib: sbi_emulate_csr: Remove scratch and hartid parameter 2020-03-28 13:32:07 +05:30
sbi_error.h lib: sbi: Add PMU support 2021-07-11 10:23:18 +05:30
sbi_fifo.h lib: sbi: Checking fifo validness in sbi_fifo_is_empty and is_full 2021-09-03 11:59:35 +05:30
sbi_hart.h lib: sbi_hart: move hart_features struct to a public location 2022-10-13 09:52:03 +05:30
sbi_hartmask.h include: sbi: Make hartmask pointer const in sbi_hartmask_test_hart() 2020-10-20 11:19:13 +05:30
sbi_hfence.h lib: sbi: Fix GPA passed to __sbi_hfence_gvma_xyz() functions 2021-11-02 16:02:08 +05:30
sbi_hsm.h lib: sbi: Refactor the calls to sbi_hart_switch_mode() 2023-03-10 14:00:36 +05:30
sbi_illegal_insn.h lib: sbi_illegal_insn: Remove mcause, scratch and hartid parameters 2020-03-28 13:32:11 +05:30
sbi_init.h lib: sbi: Introduce sbi_entry_count() function 2023-04-06 18:48:15 +05:30
sbi_ipi.h lib: sbi: Optimize sbi_tlb queue waiting 2023-04-14 13:45:30 +05:30
sbi_irqchip.h lib: sbi: Add a simple external interrupt handling framework 2022-02-28 09:43:12 +05:30
sbi_list.h lib: sbi: Remove unnecessary semicolon 2023-05-11 12:31:34 +05:30
sbi_math.h lib: Create a separate math helper function file 2020-05-10 09:59:24 +05:30
sbi_misaligned_ldst.h lib: sbi_misaligned_ldst: Remove mcause, scratch and hartid parameters 2020-03-28 13:32:14 +05:30
sbi_platform.h include: sbi: Remove extid parameter from vendor_ext_provider() callback 2023-02-27 11:26:37 +05:30
sbi_pmu.h lib: sbi_pmu: Add hartid parameter PMU device ops 2023-03-10 14:00:33 +05:30
sbi_scratch.h firmware: Add RW section offset in scratch 2023-01-23 10:06:14 +05:30
sbi_string.h lib: Add sbi_strncmp implementation 2020-07-29 12:03:45 +05:30
sbi_system.h lib: sbi: Align system suspend errors with spec 2023-06-04 15:18:40 +05:30
sbi_timer.h lib: sbi_timer: Added a conditional wait function which can timeout 2022-07-08 14:51:24 +05:30
sbi_tlb.h lib: sbi: Allow custom local TLB flush function 2021-01-07 09:53:19 +05:30
sbi_trap.h lib: sbi_trap: Add helper to get GVA in sbi_trap_regs 2022-09-13 16:42:59 +05:30
sbi_types.h include: types: Add typedefs for endianness 2023-02-08 18:24:13 +05:30
sbi_unpriv.h lib: Remove scratch parameter from unpriv load/store functions 2020-03-28 13:32:01 +05:30
sbi_version.h include: Bump-up version to 1.2 2022-12-24 11:36:49 +05:30