summaryrefslogtreecommitdiff
path: root/include/sbi/sbi_hsm.h
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2020-03-02 13:43:50 +0300
committerAnup Patel <anup@brainfault.org>2020-03-11 13:00:16 +0300
commit2db381fc7401c3ca1637e18ec0258b9e1eff3f93 (patch)
treecd0da8298a6269ef18cbb19276fe064a70744dcb /include/sbi/sbi_hsm.h
parent44ce5b99e97eb0c3695414cdb64c61f07d9a76a4 (diff)
downloadopensbi-2db381fc7401c3ca1637e18ec0258b9e1eff3f93.tar.xz
lib: Introduce sbi_hsm_hart_started_mask() API
This patch introduce sbi_hsm_hart_started_mask() API as a replacement of sbi_hart_available_mask() API. Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include/sbi/sbi_hsm.h')
-rw-r--r--include/sbi/sbi_hsm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sbi/sbi_hsm.h b/include/sbi/sbi_hsm.h
index a68eafb..227bb6b 100644
--- a/include/sbi/sbi_hsm.h
+++ b/include/sbi/sbi_hsm.h
@@ -27,5 +27,8 @@ int sbi_hsm_hart_stop(struct sbi_scratch *scratch, bool exitnow);
int sbi_hsm_hart_get_state(struct sbi_scratch *scratch, u32 hartid);
int sbi_hsm_hart_state_to_status(int state);
bool sbi_hsm_hart_started(struct sbi_scratch *scratch, u32 hartid);
+int sbi_hsm_hart_started_mask(struct sbi_scratch *scratch,
+ ulong hbase, ulong *out_hmask);
void sbi_hsm_prepare_next_jump(struct sbi_scratch *scratch, u32 hartid);
+
#endif