4 struct virtio_blk_config
13 u8 physical_block_exp;
17 } __attribute__((packed));
19 #define VIRTIO_BLK_F_BLK_SIZE 6
21 /* These two define direction. */
22 #define VIRTIO_BLK_T_IN 0
23 #define VIRTIO_BLK_T_OUT 1
25 /* This is the first element of the read scatter-gather list. */
26 struct virtio_blk_outhdr {
31 /* Sector (ie. 512 byte offset) */
35 #define VIRTIO_BLK_S_OK 0
36 #define VIRTIO_BLK_S_IOERR 1
37 #define VIRTIO_BLK_S_UNSUPP 2
40 int process_virtio_blk_op(struct disk_op_s *op);
41 void virtio_blk_setup(void);
43 #endif /* _VIRTIO_BLK_H */