mpc106: Different slots for different machines.

This commit is contained in:
joevt authored and dingusdev committed 2026-11-26 08:36:55 -07:00
1 parent ba62201573
commit 293bb0018b
4 files changed
+40 -19

No files matched your search

+33 -12
View File
@@ -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 );
+2 -2
View File
@@ -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<MPC106*>(gMachineObj->get_comp_by_name("Grackle"));
MPC106* grackle_obj = dynamic_cast<MPC106*>(gMachineObj->get_comp_by_name("GrackleBondi"));
grackle_obj->set_irq_map(grackle_irq_map);
MacIoTwo* mio_obj = dynamic_cast<MacIoTwo*>(gMachineObj->get_comp_by_name("Paddington"));
@@ -110,7 +110,7 @@ static const PropMap bondi_settings = {
};
static std::vector<std::string> bondi_devices = {
"Grackle", "BurgundySnd", "Paddington", "AtaHardDisk", "AtapiCdrom"};
"GrackleBondi", "BurgundySnd", "Paddington", "AtaHardDisk", "AtapiCdrom"};
static const DeviceDescription MachineBondi_descriptor = {
Machine::create<MachineBondi>, bondi_devices, bondi_settings
+3 -3
View File
@@ -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<MPC106*>(gMachineObj->get_comp_by_name("Grackle"));
MPC106* grackle_obj = dynamic_cast<MPC106*>(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<std::string> pmg3_devices = {
"Grackle", "ScreamerSnd", "Heathrow", "AtaHardDisk", "AtapiCdrom"
"GrackleGossamer", "ScreamerSnd", "Heathrow", "AtaHardDisk", "AtapiCdrom"
};
static std::vector<std::string> pmg3twr_devices = {
"Grackle", "ScreamerSnd", "Heathrow", "AtaHardDisk", "AtapiCdrom"
"GrackleGossamer", "ScreamerSnd", "Heathrow", "AtaHardDisk", "AtapiCdrom"
};
static const DeviceDescription MachineGossamerDesktop_descriptor = {
+2 -2
View File
@@ -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<MPC106*>(gMachineObj->get_comp_by_name("Grackle"));
MPC106* grackle_obj = dynamic_cast<MPC106*>(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<std::string> yosemite_devices = {
"Grackle",
"GrackleYosemite",
"Dec21154Yosemite",
"CmdAta",
"BurgundySnd",