aboutsummaryrefslogtreecommitdiff
path: root/pk/hcall.h
diff options
context:
space:
mode:
Diffstat (limited to 'pk/hcall.h')
-rw-r--r--pk/hcall.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/pk/hcall.h b/pk/hcall.h
new file mode 100644
index 0000000..7e89f2b
--- /dev/null
+++ b/pk/hcall.h
@@ -0,0 +1,15 @@
+#ifndef _PK_HCALL_H
+#define _PK_HCALL_H
+
+#define HCALL_HART_ID 0
+#define HCALL_CONSOLE_PUTCHAR 1
+#define HCALL_SEND_DEVICE_REQUEST 2
+#define HCALL_RECEIVE_DEVICE_RESPONSE 3
+
+#ifndef __ASSEMBLER__
+
+extern uintptr_t do_hcall(uintptr_t which, ...);
+
+#endif
+
+#endif