From 103c0b1357286c8fd4a91a13667394f2b7a6eaf3 Mon Sep 17 00:00:00 2001 From: IgnoreWarnings Date: Mon, 17 Jun 2024 14:03:52 +0000 Subject: [PATCH] restructure json files --- etc/fpga/{miob/fpgas.json => miob.json} | 2 +- etc/fpga/{miob/ips.json => zcu106-smmu/zcu106-smmu.json} | 0 fpga/src/platform.cpp | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename etc/fpga/{miob/fpgas.json => miob.json} (82%) rename etc/fpga/{miob/ips.json => zcu106-smmu/zcu106-smmu.json} (100%) diff --git a/etc/fpga/miob/fpgas.json b/etc/fpga/miob.json similarity index 82% rename from etc/fpga/miob/fpgas.json rename to etc/fpga/miob.json index 44c192617..6b5531d88 100644 --- a/etc/fpga/miob/fpgas.json +++ b/etc/fpga/miob.json @@ -4,7 +4,7 @@ "id": "10ee:7021", "slot": "0000:88:00.0", "do_reset": true, - "ips": "ips.json", + "ips": "zcu106-smmu/zcu106-smmu.json", "polling": true, "devices": ["a0000000.dma", "a0010000.axis_switch"] } diff --git a/etc/fpga/miob/ips.json b/etc/fpga/zcu106-smmu/zcu106-smmu.json similarity index 100% rename from etc/fpga/miob/ips.json rename to etc/fpga/zcu106-smmu/zcu106-smmu.json diff --git a/fpga/src/platform.cpp b/fpga/src/platform.cpp index 3c5ab016e..b4097dd0f 100644 --- a/fpga/src/platform.cpp +++ b/fpga/src/platform.cpp @@ -16,7 +16,7 @@ int main() { logging.setLevel(spdlog::level::trace); - std::string configFilePath = "../../../etc/fpga/miob/fpgas.json"; + std::string configFilePath = "../../../etc/fpga/miob.json"; auto configDir = std::filesystem::path(configFilePath).parent_path(); std::vector modules{"vfio"}; auto vfioContainer = std::make_shared(modules);