summaryrefslogtreecommitdiff
path: root/include/sbi/sbi_ecall.h
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2020-04-17 12:40:10 +0300
committerAnup Patel <anup@brainfault.org>2020-04-19 14:30:05 +0300
commit66d018499cf928e0c8c8a15e0a896e7f80ad5f99 (patch)
treebd990d2469f467d41965624085b199a5ad1a2c14 /include/sbi/sbi_ecall.h
parent615587c336091140a515ff59fed932a2100814c2 (diff)
downloadopensbi-66d018499cf928e0c8c8a15e0a896e7f80ad5f99.tar.xz
lib: Allow overriding SBI implementation ID
Ideally, the SBI implementation ID for OpenSBI should always be 0x1 (as mentioned in SBI v0.2 spec) but external firmware (such as EDK2) which use OpenSBI as library might want to override the SBI implementation ID with their custom implementation ID. Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'include/sbi/sbi_ecall.h')
-rw-r--r--include/sbi/sbi_ecall.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sbi/sbi_ecall.h b/include/sbi/sbi_ecall.h
index 0b92e67..3273ba6 100644
--- a/include/sbi/sbi_ecall.h
+++ b/include/sbi/sbi_ecall.h
@@ -42,6 +42,10 @@ u16 sbi_ecall_version_major(void);
u16 sbi_ecall_version_minor(void);
+unsigned long sbi_ecall_get_impid(void);
+
+void sbi_ecall_set_impid(unsigned long impid);
+
struct sbi_ecall_extension *sbi_ecall_find_extension(unsigned long extid);
int sbi_ecall_register_extension(struct sbi_ecall_extension *ext);