aboutsummaryrefslogtreecommitdiff
path: root/include/hw/scsi/emulation.h
blob: 09fba1ff39ce9fc309ee7ca925d3cfb6daa3ad2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef HW_SCSI_EMULATION_H
#define HW_SCSI_EMULATION_H 1

typedef struct SCSIBlockLimits {
    bool wsnz;
    uint16_t min_io_size;
    uint32_t max_unmap_descr;
    uint32_t opt_io_size;
    uint32_t max_unmap_sectors;
    uint32_t unmap_sectors;
    uint32_t max_io_sectors;
} SCSIBlockLimits;

int scsi_emulate_block_limits(uint8_t *outbuf, const SCSIBlockLimits *bl);

#endif