[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 02/11] scsi-disk: add new quirks bitmap to SCSIDiskState
From: |
Mark Cave-Ayland |
Subject: |
[PATCH v2 02/11] scsi-disk: add new quirks bitmap to SCSIDiskState |
Date: |
Sun, 24 Apr 2022 17:49:26 +0100 |
Since the MacOS SCSI implementation is quite old (and Apple added some firmware
customisations to their drives for m68k Macs) there is need to add a mechanism
to correctly handle Apple-specific quirks.
Add a new quirks bitmap to SCSIDiskState that can be used to enable these
features as required.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
---
hw/scsi/scsi-disk.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/scsi/scsi-disk.c b/hw/scsi/scsi-disk.c
index 090679f3b5..d89cdd4e4a 100644
--- a/hw/scsi/scsi-disk.c
+++ b/hw/scsi/scsi-disk.c
@@ -94,6 +94,7 @@ struct SCSIDiskState {
uint16_t port_index;
uint64_t max_unmap_size;
uint64_t max_io_size;
+ uint32_t quirks;
QEMUBH *bh;
char *version;
char *serial;
--
2.20.1
- [PATCH v2 00/11] scsi: add quirks and features to support m68k Macs, Mark Cave-Ayland, 2022/04/24
- [PATCH v2 01/11] scsi-disk: add FORMAT UNIT command, Mark Cave-Ayland, 2022/04/24
- [PATCH v2 02/11] scsi-disk: add new quirks bitmap to SCSIDiskState,
Mark Cave-Ayland <=
- [PATCH v2 03/11] scsi-disk: add MODE_PAGE_APPLE_VENDOR quirk for Macintosh, Mark Cave-Ayland, 2022/04/24
- [PATCH v2 07/11] scsi-disk: allow truncated MODE SELECT requests, Mark Cave-Ayland, 2022/04/24
- [PATCH v2 06/11] q800: implement compat_props to enable quirk_mode_sense_rom_force_dbd for scsi-cd devices, Mark Cave-Ayland, 2022/04/24
- [PATCH v2 05/11] scsi-disk: add SCSI_DISK_QUIRK_MODE_SENSE_ROM_FORCE_DBD quirk for Macintosh, Mark Cave-Ayland, 2022/04/24
- [PATCH v2 04/11] q800: implement compat_props to enable quirk_mode_page_apple_vendor for scsi-hd devices, Mark Cave-Ayland, 2022/04/24
- [PATCH v2 08/11] scsi-disk: allow the MODE_PAGE_R_W_ERROR AWRE bit to be changeable for CDROM drives, Mark Cave-Ayland, 2022/04/24
- [PATCH v2 10/11] q800: add default vendor and product information for scsi-hd devices, Mark Cave-Ayland, 2022/04/24
- [PATCH v2 09/11] scsi-disk: allow MODE SELECT block descriptor to set the ROM device block size, Mark Cave-Ayland, 2022/04/24
- [PATCH v2 11/11] q800: add default vendor and product information for scsi-cd devices, Mark Cave-Ayland, 2022/04/24