4 #define VIRTIO_SCSI_CDB_SIZE 32
5 #define VIRTIO_SCSI_SENSE_SIZE 96
7 struct virtio_scsi_config
19 } __attribute__((packed));
21 /* This is the first element of the "out" scatter-gather list. */
22 struct virtio_scsi_req_cmd {
28 char cdb[VIRTIO_SCSI_CDB_SIZE];
29 } __attribute__((packed));
31 /* This is the first element of the "in" scatter-gather list. */
32 struct virtio_scsi_resp_cmd {
38 u8 sense[VIRTIO_SCSI_SENSE_SIZE];
39 } __attribute__((packed));
41 #define VIRTIO_SCSI_S_OK 0
44 int virtio_scsi_cmd_data(struct disk_op_s *op, void *cdbcmd, u16 blocksize);
45 void virtio_scsi_setup(void);
47 #endif /* _VIRTIO_SCSI_H */