aboutsummaryrefslogtreecommitdiff
path: root/machine/htif.h
diff options
context:
space:
mode:
authorHoward Mao <zhehao.mao@gmail.com>2017-05-23 15:44:27 -0700
committerHoward Mao <zhehao.mao@gmail.com>2017-10-04 13:29:16 -0700
commit4c64d29a8b1c5aecc8a08782b7ad39c6d2fb3387 (patch)
tree09af529e13af183d0449811a63b7865be42778cc /machine/htif.h
parentfb4e31229fb072297dad9fcdf2c67b053c5d0322 (diff)
downloadriscv-pk-new-sbi-disk.zip
riscv-pk-new-sbi-disk.tar.gz
riscv-pk-new-sbi-disk.tar.bz2
add sbi-disk mcall routinesnew-sbi-disk
Diffstat (limited to 'machine/htif.h')
-rw-r--r--machine/htif.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/machine/htif.h b/machine/htif.h
index fa768d8..09b99e2 100644
--- a/machine/htif.h
+++ b/machine/htif.h
@@ -2,6 +2,7 @@
#define _RISCV_HTIF_H
#include <stdint.h>
+#include <stdlib.h>
#if __riscv_xlen == 64
# define TOHOST_CMD(dev, cmd, payload) \
@@ -19,5 +20,8 @@ void htif_console_putchar(uint8_t);
int htif_console_getchar();
void htif_poweroff() __attribute__((noreturn));
void htif_syscall(uintptr_t);
+void htif_disk_read(uintptr_t addr, uintptr_t offset, size_t size);
+void htif_disk_write(uintptr_t addr, uintptr_t offset, size_t size);
+unsigned long htif_disk_size(void);
#endif