aboutsummaryrefslogtreecommitdiff
path: root/machine/htif.h
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2017-02-15 18:59:21 -0800
committerAndrew Waterman <andrew@sifive.com>2017-02-15 18:59:21 -0800
commit611290ccde8d76c1973a37d82a5d4b3e4b7b90c4 (patch)
treed8b19a464a043d362663d8207daeae1f31d226d1 /machine/htif.h
parent15a111444d6819021328e990eb5308155a9def6a (diff)
downloadpk-611290ccde8d76c1973a37d82a5d4b3e4b7b90c4.zip
pk-611290ccde8d76c1973a37d82a5d4b3e4b7b90c4.tar.gz
pk-611290ccde8d76c1973a37d82a5d4b3e4b7b90c4.tar.bz2
Cleanly separate HTIF code; don't poll keyboard on timer interrupt
Diffstat (limited to 'machine/htif.h')
-rw-r--r--machine/htif.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/machine/htif.h b/machine/htif.h
index 7107ddb..f47e965 100644
--- a/machine/htif.h
+++ b/machine/htif.h
@@ -15,4 +15,9 @@
#define FROMHOST_CMD(fromhost_value) ((uint64_t)(fromhost_value) << 8 >> 56)
#define FROMHOST_DATA(fromhost_value) ((uint64_t)(fromhost_value) << 16 >> 16)
+void htif_console_putchar(uint8_t);
+int htif_console_getchar();
+void htif_poweroff() __attribute__((noreturn));
+uintptr_t htif_syscall(uintptr_t);
+
#endif