2018-10-23 00:43:51 +02:00
|
|
|
#ifndef HW_SCSI_EMULATION_H
|
2019-03-15 15:51:22 +01:00
|
|
|
#define HW_SCSI_EMULATION_H
|
2018-10-23 00:43:51 +02:00
|
|
|
|
|
|
|
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
|