From e81ac6f61ee8b2e74d9505a1ab4eead2891a129e Mon Sep 17 00:00:00 2001 From: joevt Date: Mon, 18 Sep 2023 16:26:27 -0700 Subject: [PATCH] Add PERCH slot. So you can connect a USB controller or whatever to it. --- devices/memctrl/mpc106.cpp | 4 +++- machines/machinefactory.cpp | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/devices/memctrl/mpc106.cpp b/devices/memctrl/mpc106.cpp index 055fd8c..bf17d68 100644 --- a/devices/memctrl/mpc106.cpp +++ b/devices/memctrl/mpc106.cpp @@ -59,7 +59,7 @@ int MPC106::device_postinit() std::string pci_dev_name; static const std::map pci_slots = { - {"pci_A1", DEV_FUN(0xD,0)}, {"pci_B1", DEV_FUN(0xE,0)}, {"pci_C1", DEV_FUN(0xF,0)} + {"pci_PERCH", DEV_FUN(0xC,0)}, {"pci_A1", DEV_FUN(0xD,0)}, {"pci_B1", DEV_FUN(0xE,0)}, {"pci_C1", DEV_FUN(0xF,0)} }; for (auto& slot : pci_slots) { @@ -296,6 +296,8 @@ void MPC106::setup_ram() { } static const PropMap Grackle_Properties = { + {"pci_PERCH", + new StrProperty("")}, {"pci_A1", new StrProperty("")}, {"pci_B1", diff --git a/machines/machinefactory.cpp b/machines/machinefactory.cpp index 1ab1f23..5a11f91 100644 --- a/machines/machinefactory.cpp +++ b/machines/machinefactory.cpp @@ -84,6 +84,7 @@ static const map PropHelp = { {"cdr_config", "CD-ROM device path in [bus]:[device#] format"}, {"cdr_img", "specifies path to CD-ROM image"}, {"mon_id", "specifies which monitor to emulate"}, + {"pci_PERCH", "insert a PCI device into PERCH slot"}, {"pci_A1", "insert a PCI device into A1 slot"}, {"pci_B1", "insert a PCI device into B1 slot"}, {"pci_C1", "insert a PCI device into C1 slot"},