From 2132922c7b57b73c9324dff8451977c84d9457c4 Mon Sep 17 00:00:00 2001 From: Maxim Poliakovski Date: Mon, 12 Aug 2024 14:02:12 +0200 Subject: [PATCH] machineyosemite: attach CMD646 Ultra ATA controller. --- machines/machineyosemite.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/machines/machineyosemite.cpp b/machines/machineyosemite.cpp index 56d34eb..bd68633 100644 --- a/machines/machineyosemite.cpp +++ b/machines/machineyosemite.cpp @@ -59,6 +59,10 @@ int initialize_yosemite(std::string& id) grackle_obj->pci_register_device(DEV_FUN(13,0), dynamic_cast(gMachineObj->get_comp_by_name("Dec21154"))); + // register CMD646U2 PCI Ultra ATA Controller + sec_bridge->pci_register_device(DEV_FUN(1,0), + dynamic_cast(gMachineObj->get_comp_by_name("CmdAta"))); + sec_bridge->pci_register_device(DEV_FUN(5,0), dynamic_cast(gMachineObj->get_comp_by_name("Heathrow"))); @@ -126,7 +130,7 @@ static const PropMap yosemite_settings = { }; static vector yosemite_devices = { - "Grackle", "Dec21154", "BurgundySnd", "Heathrow", "AtapiCdrom" + "Grackle", "Dec21154", "CmdAta", "BurgundySnd", "Heathrow", "AtapiCdrom" }; static const MachineDescription yosemite_descriptor = {