diff options
| author | Simon Rettberg | 2026-01-28 12:53:53 +0100 |
|---|---|---|
| committer | Simon Rettberg | 2026-01-28 12:53:53 +0100 |
| commit | 8e82785c584dc13e20f9229decb95bd17bbe9cd1 (patch) | |
| tree | a8b359e59196be5b2e3862bed189107f4bc9975f /src/config/defaults/sbi.h | |
| parent | Merge branch 'master' into openslx (diff) | |
| parent | [prefix] Make unlzma.S compatible with 386 class CPUs (diff) | |
| download | ipxe-openslx.tar.gz ipxe-openslx.tar.xz ipxe-openslx.zip | |
Merge branch 'master' into openslxopenslx
Diffstat (limited to 'src/config/defaults/sbi.h')
| -rw-r--r-- | src/config/defaults/sbi.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/config/defaults/sbi.h b/src/config/defaults/sbi.h new file mode 100644 index 000000000..f9361c926 --- /dev/null +++ b/src/config/defaults/sbi.h @@ -0,0 +1,39 @@ +#ifndef CONFIG_DEFAULTS_SBI_H +#define CONFIG_DEFAULTS_SBI_H + +/** @file + * + * Configuration defaults for RISC-V SBI + * + */ + +FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); + +#define IOAPI_RISCV +#define UACCESS_OFFSET +#define TIMER_ZICNTR +#define ENTROPY_ZKR + +#if __riscv_xlen == 64 +#define IOMAP_SVPAGE +#define DMAAPI_RISCV +#else +#define IOMAP_VIRT +#define DMAAPI_FLAT +#endif + +#define FDT_SBI +#define REBOOT_SBI +#define UMALLOC_UHEAP +#define MEMMAP_FDT +#define SERIAL_FDT + +#define ACPI_NULL +#define MPAPI_NULL +#define NAP_NULL +#define PCIAPI_NULL +#define SANBOOT_NULL +#define SMBIOS_NULL +#define TIME_NULL + +#endif /* CONFIG_DEFAULTS_SBI_H */ |
