summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJames Clarke <[email protected]>2020-02-01 01:07:51 +0000
committerAnup Patel <[email protected]>2020-02-17 17:42:52 +0530
commitc2f23cc6edd7ee2dc6a07991312d44233080ae6b (patch)
tree2c9326e9c0f1c4ac18e0b8f90962a91f0fba543b /include
parentc2bfa2bff30312679cfee986bbed9b974c6760bb (diff)
platform: Add Spike initial support
This patch adds initial platform support Spike emulator. Signed-off-by: James Clarke <[email protected]> Signed-off-by: Anup Patel <[email protected]> Reviewed-by: Bin Meng <[email protected]> Reviewed-by: Atish Patra <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/sbi_utils/sys/htif.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/sbi_utils/sys/htif.h b/include/sbi_utils/sys/htif.h
new file mode 100644
index 00000000..42903e81
--- /dev/null
+++ b/include/sbi_utils/sys/htif.h
@@ -0,0 +1,19 @@
+/*
+ * SPDX-License-Identifier: BSD-3-Clause
+ *
+ * Copyright (c) 2010-2020, The Regents of the University of California
+ * (Regents). All Rights Reserved.
+ */
+
+#ifndef __SYS_HTIF_H__
+#define __SYS_HTIF_H__
+
+#include <sbi/sbi_types.h>
+
+void htif_putc(char ch);
+
+int htif_getc(void);
+
+int htif_system_down(u32 type);
+
+#endif