4 struct virtio_blk_config
13 u8 physical_block_exp;
17 } __attribute__((packed));
19 /* These two define direction. */
20 #define VIRTIO_BLK_T_IN 0
21 #define VIRTIO_BLK_T_OUT 1
23 /* This is the first element of the read scatter-gather list. */
24 struct virtio_blk_outhdr {
29 /* Sector (ie. 512 byte offset) */
33 #define VIRTIO_BLK_S_OK 0
34 #define VIRTIO_BLK_S_IOERR 1
35 #define VIRTIO_BLK_S_UNSUPP 2
37 int process_virtio_op(struct disk_op_s *op);
38 void virtio_blk_setup(void);
40 #endif /* _VIRTIO_BLK_H */