diff --git a/devices/memctrl/mpc106.cpp b/devices/memctrl/mpc106.cpp index 1e7004b9..495812cb 100644 --- a/devices/memctrl/mpc106.cpp +++ b/devices/memctrl/mpc106.cpp @@ -314,20 +314,41 @@ void MPC106::setup_ram() { } } -static const PropMap Grackle_Properties = { - {"pci_PERCH", - new StrProperty("")}, - {"pci_A1", - new StrProperty("")}, - {"pci_B1", - new StrProperty("")}, - {"pci_C1", - new StrProperty("")}, +static const PropMap GrackleGossamer_Properties = { + {"pci_PERCH", new StrProperty("")}, + {"pci_A1" , new StrProperty("")}, + {"pci_B1" , new StrProperty("")}, + {"pci_C1" , new StrProperty("")}, +// {"pci_GPU" , new StrProperty("")}, }; -static const DeviceDescription Grackle_Descriptor = { - MPC106::create, {}, Grackle_Properties, +static const PropMap GrackleYosemite_Properties = { +// {"pci_J12", new StrProperty("")}, +}; + +static const PropMap GrackleBondi_Properties = { + {"pci_A1" , new StrProperty("")}, + {"pci_B1" , new StrProperty("")}, + {"pci_C1" , new StrProperty("")}, +// {"pci_GPU" , new StrProperty("")}, + {"pci_PERCH", new StrProperty("")}, +}; + +static const DeviceDescription GrackleGossamer_Descriptor = { + MPC106::create, {}, GrackleGossamer_Properties, HWCompType::MEM_CTRL | HWCompType::MMIO_DEV | HWCompType::PCI_HOST | HWCompType::PCI_DEV }; -REGISTER_DEVICE(Grackle, Grackle_Descriptor); +static const DeviceDescription GrackleYosemite_Descriptor = { + MPC106::create, {}, GrackleYosemite_Properties, + HWCompType::MEM_CTRL | HWCompType::MMIO_DEV | HWCompType::PCI_HOST | HWCompType::PCI_DEV +}; + +static const DeviceDescription GrackleBondi_Descriptor = { + MPC106::create, {}, GrackleBondi_Properties, + HWCompType::MEM_CTRL | HWCompType::MMIO_DEV | HWCompType::PCI_HOST | HWCompType::PCI_DEV +}; + +REGISTER_DEVICE(GrackleGossamer, GrackleGossamer_Descriptor); +REGISTER_DEVICE(GrackleYosemite, GrackleYosemite_Descriptor); +REGISTER_DEVICE(GrackleBondi , GrackleBondi_Descriptor ); diff --git a/machines/machinebondi.cpp b/machines/machinebondi.cpp index bac4f5c1..d70672ee 100644 --- a/machines/machinebondi.cpp +++ b/machines/machinebondi.cpp @@ -63,7 +63,7 @@ int MachineBondi::initialize(const std::string &id) { LOG_F(INFO, "Building machine Bondi..."); // get pointer to the memory controller/primary PCI bridge object - MPC106* grackle_obj = dynamic_cast(gMachineObj->get_comp_by_name("Grackle")); + MPC106* grackle_obj = dynamic_cast(gMachineObj->get_comp_by_name("GrackleBondi")); grackle_obj->set_irq_map(grackle_irq_map); MacIoTwo* mio_obj = dynamic_cast(gMachineObj->get_comp_by_name("Paddington")); @@ -110,7 +110,7 @@ static const PropMap bondi_settings = { }; static std::vector bondi_devices = { - "Grackle", "BurgundySnd", "Paddington", "AtaHardDisk", "AtapiCdrom"}; + "GrackleBondi", "BurgundySnd", "Paddington", "AtaHardDisk", "AtapiCdrom"}; static const DeviceDescription MachineBondi_descriptor = { Machine::create, bondi_devices, bondi_settings diff --git a/machines/machinegossamer.cpp b/machines/machinegossamer.cpp index 143362de..7f1b3f97 100644 --- a/machines/machinegossamer.cpp +++ b/machines/machinegossamer.cpp @@ -136,7 +136,7 @@ int MachineGossamer::initialize(const std::string &id) { LOG_F(INFO, "Building machine Gossamer..."); // get pointer to the memory controller/PCI host bridge object - MPC106* grackle_obj = dynamic_cast(gMachineObj->get_comp_by_name("Grackle")); + MPC106* grackle_obj = dynamic_cast(gMachineObj->get_comp_by_name("GrackleGossamer")); grackle_obj->set_irq_map(grackle_irq_map); // configure the Gossamer system register @@ -235,11 +235,11 @@ static const PropMap gossamer_tower_settings = { }; static std::vector pmg3_devices = { - "Grackle", "ScreamerSnd", "Heathrow", "AtaHardDisk", "AtapiCdrom" + "GrackleGossamer", "ScreamerSnd", "Heathrow", "AtaHardDisk", "AtapiCdrom" }; static std::vector pmg3twr_devices = { - "Grackle", "ScreamerSnd", "Heathrow", "AtaHardDisk", "AtapiCdrom" + "GrackleGossamer", "ScreamerSnd", "Heathrow", "AtaHardDisk", "AtapiCdrom" }; static const DeviceDescription MachineGossamerDesktop_descriptor = { diff --git a/machines/machineyosemite.cpp b/machines/machineyosemite.cpp index 34a619d5..0243de22 100644 --- a/machines/machineyosemite.cpp +++ b/machines/machineyosemite.cpp @@ -70,7 +70,7 @@ int MachineYosemite::initialize(const std::string &id) { LOG_F(INFO, "Building machine Yosemite..."); // get pointer to the memory controller/primary PCI bridge object - MPC106* grackle_obj = dynamic_cast(gMachineObj->get_comp_by_name("Grackle")); + MPC106* grackle_obj = dynamic_cast(gMachineObj->get_comp_by_name("GrackleYosemite")); grackle_obj->set_irq_map(grackle_irq_map); // get pointer to the bridge of the secondary PCI bus @@ -132,7 +132,7 @@ static const PropMap yosemite_settings = { }; static std::vector yosemite_devices = { - "Grackle", + "GrackleYosemite", "Dec21154Yosemite", "CmdAta", "BurgundySnd",