mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
refactor to use pcie card (Legacy)
Signed-off-by: Pascal Henry Bauer <pascal.bauer@rwth-aachen.de>
This commit is contained in:
parent
e8b593cf1f
commit
6b87c9bc30
5 changed files with 8 additions and 5 deletions
|
@ -9,7 +9,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <villas/fpga/card.hpp>
|
||||
#include <villas/fpga/pciecard.hpp>
|
||||
|
||||
namespace villas {
|
||||
namespace fpga {
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
#include <villas/kernel/kernel.hpp>
|
||||
|
||||
#include <villas/fpga/card.hpp>
|
||||
#include <villas/fpga/pciecard.hpp>
|
||||
#include <villas/fpga/ips/intc.hpp>
|
||||
|
||||
using namespace villas::fpga::ip;
|
||||
|
@ -40,7 +41,8 @@ InterruptController::init()
|
|||
for (int i = 0; i < num_irqs; i++) {
|
||||
|
||||
// Try pinning to core
|
||||
int ret = kernel::setIRQAffinity(nos[i], card->affinity, nullptr);
|
||||
PCIeCard* pciecard = dynamic_cast<PCIeCard*>(card);
|
||||
int ret = kernel::setIRQAffinity(nos[i], pciecard->affinity, nullptr);
|
||||
|
||||
switch(ret) {
|
||||
case 0:
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
#include <villas/memory.hpp>
|
||||
|
||||
#include <villas/fpga/card.hpp>
|
||||
#include <villas/fpga/pciecard.hpp>
|
||||
#include <villas/fpga/ips/pcie.hpp>
|
||||
|
||||
using namespace villas::fpga::ip;
|
||||
|
@ -54,7 +55,7 @@ AxiPciExpressBridge::init()
|
|||
|
||||
auto pciAddrSpaceId = mm.getPciAddressSpace();
|
||||
|
||||
auto regions = card->pdev->getRegions();
|
||||
auto regions = dynamic_cast<PCIeCard*>(card)->pdev->getRegions();
|
||||
|
||||
int i = 0;
|
||||
for (auto region : regions) {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
#include <villas/utils.hpp>
|
||||
#include <villas/fpga/core.hpp>
|
||||
#include <villas/fpga/card.hpp>
|
||||
#include <villas/fpga/pciecard.hpp>
|
||||
#include <villas/fpga/vlnv.hpp>
|
||||
|
||||
#include "global.hpp"
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
#include <cstdlib>
|
||||
|
||||
#include <villas/fpga/card.hpp>
|
||||
#include <villas/fpga/pciecard.hpp>
|
||||
|
||||
class FpgaState {
|
||||
public:
|
||||
|
|
Loading…
Add table
Reference in a new issue