diff options
author | Vincent Chen <vincent.chen@sifive.com> | 2021-03-22 15:26:02 +0100 |
---|---|---|
committer | Palmer Dabbelt <palmerdabbelt@google.com> | 2021-04-26 17:24:54 +0200 |
commit | 183787c6fcc2c793ec96e946a4fdd8cd0e6d7aa0 (patch) | |
tree | 4ff6143f4e427f5990a6a5d9c6e43867dce1b117 /arch/riscv/include | |
parent | kbuild: buildtar: add riscv support (diff) | |
download | linux-183787c6fcc2c793ec96e946a4fdd8cd0e6d7aa0.tar.xz linux-183787c6fcc2c793ec96e946a4fdd8cd0e6d7aa0.zip |
riscv: Add 3 SBI wrapper functions to get cpu manufacturer information
Add 3 wrapper functions to get vendor id, architecture id and implement id
from M-mode
Signed-off-by: Vincent Chen <vincent.chen@sifive.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'arch/riscv/include')
-rw-r--r-- | arch/riscv/include/asm/sbi.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/riscv/include/asm/sbi.h b/arch/riscv/include/asm/sbi.h index 99895d9c3bdd..dd2329962ceb 100644 --- a/arch/riscv/include/asm/sbi.h +++ b/arch/riscv/include/asm/sbi.h @@ -97,6 +97,9 @@ struct sbiret sbi_ecall(int ext, int fid, unsigned long arg0, void sbi_console_putchar(int ch); int sbi_console_getchar(void); +long sbi_get_mvendorid(void); +long sbi_get_marchid(void); +long sbi_get_mimpid(void); void sbi_set_timer(uint64_t stime_value); void sbi_shutdown(void); void sbi_clear_ipi(void); |