aboutsummaryrefslogtreecommitdiff
path: root/machine/htif.h
diff options
context:
space:
mode:
authorColin Schmidt <colins@eecs.berkeley.edu>2019-08-26 10:40:08 -0700
committerColin Schmidt <colins@eecs.berkeley.edu>2019-08-26 10:40:08 -0700
commit191fc4bfab264bc7aa28c1e07f938e534b474d35 (patch)
treef7e9d3928f5425e92b96498ce2c654d52fba12f6 /machine/htif.h
parentc53de08b9ba719f3e7b02fc1a029d194a190da48 (diff)
parent3d921d3c76db3af7b9ae0b5df0f0790f26222246 (diff)
downloadpk-rocc-enable.zip
pk-rocc-enable.tar.gz
pk-rocc-enable.tar.bz2
Merge commit '3d921d3c76db3af7b9ae0b5df0f0790f26222246' into rocc-enablerocc-enable
Diffstat (limited to 'machine/htif.h')
-rw-r--r--machine/htif.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/machine/htif.h b/machine/htif.h
index 7107ddb..a96bf60 100644
--- a/machine/htif.h
+++ b/machine/htif.h
@@ -15,4 +15,11 @@
#define FROMHOST_CMD(fromhost_value) ((uint64_t)(fromhost_value) << 8 >> 56)
#define FROMHOST_DATA(fromhost_value) ((uint64_t)(fromhost_value) << 16 >> 16)
+extern uintptr_t htif;
+void query_htif(uintptr_t dtb);
+void htif_console_putchar(uint8_t);
+int htif_console_getchar();
+void htif_poweroff() __attribute__((noreturn));
+void htif_syscall(uintptr_t);
+
#endif