aboutsummaryrefslogtreecommitdiffstats
path: root/roms/opensbi/include/sbi_utils/sys/htif.h
diff options
context:
space:
mode:
Diffstat (limited to 'roms/opensbi/include/sbi_utils/sys/htif.h')
-rw-r--r--roms/opensbi/include/sbi_utils/sys/htif.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/roms/opensbi/include/sbi_utils/sys/htif.h b/roms/opensbi/include/sbi_utils/sys/htif.h
new file mode 100644
index 000000000..a43172348
--- /dev/null
+++ b/roms/opensbi/include/sbi_utils/sys/htif.h
@@ -0,0 +1,21 @@
+/*
+ * 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_reset_check(u32 type, u32 reason);
+
+void htif_system_reset(u32 type, u32 reason);
+
+#endif