[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 4/6] q800: implement compat_props to enable quirk_mode_page_apple
From: |
Mark Cave-Ayland |
Subject: |
[PATCH 4/6] q800: implement compat_props to enable quirk_mode_page_apple for scsi-hd devices |
Date: |
Thu, 21 Apr 2022 07:51:53 +0100 |
By default quirk_mode_page_apple should be enabled for all scsi-hd devices
connected to the q800 machine to enable MacOS to detect and use them.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
---
hw/m68k/q800.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/hw/m68k/q800.c b/hw/m68k/q800.c
index 099a758c6f..cfab0c54fc 100644
--- a/hw/m68k/q800.c
+++ b/hw/m68k/q800.c
@@ -686,6 +686,11 @@ static void q800_init(MachineState *machine)
}
}
+static GlobalProperty hw_compat_q800[] = {
+ { "scsi-hd", "quirk_mode_page_apple", "on"},
+};
+static const size_t hw_compat_q800_len = G_N_ELEMENTS(hw_compat_q800);
+
static void q800_machine_class_init(ObjectClass *oc, void *data)
{
MachineClass *mc = MACHINE_CLASS(oc);
@@ -695,6 +700,7 @@ static void q800_machine_class_init(ObjectClass *oc, void
*data)
mc->max_cpus = 1;
mc->block_default_type = IF_SCSI;
mc->default_ram_id = "m68k_mac.ram";
+ compat_props_add(mc->compat_props, hw_compat_q800, hw_compat_q800_len);
}
static const TypeInfo q800_machine_typeinfo = {
--
2.20.1
[PATCH 5/6] q800: add default vendor, product and version information for scsi-hd devices, Mark Cave-Ayland, 2022/04/21
[PATCH 4/6] q800: implement compat_props to enable quirk_mode_page_apple for scsi-hd devices,
Mark Cave-Ayland <=
[PATCH 6/6] q800: add default vendor, product and version information for scsi-cd devices, Mark Cave-Ayland, 2022/04/21
Re: [PATCH 0/6] scsi: add support for FORMAT UNIT command and quirks, Mark Cave-Ayland, 2022/04/24