virtio disk driver

This commit is contained in:
Robert Morris 2019-06-13 06:49:02 -04:00
parent 5753553213
commit de9d72c908
12 changed files with 357 additions and 9 deletions

View file

@ -201,5 +201,10 @@ uint64 plic_pending(void);
int plic_claim(void);
void plic_complete(int);
// virtio_disk.c
void virtio_disk_init(void);
void virtio_disk_rw(struct buf *);
void virtio_disk_intr();
// number of elements in fixed-size array
#define NELEM(x) (sizeof(x)/sizeof((x)[0]))