This repository was archived by the owner on Feb 29, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-56
lines changed Expand file tree Collapse file tree 3 files changed +5
-56
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ class Card
21
21
{
22
22
public:
23
23
bool polling;
24
+
25
+ std::shared_ptr<kernel::vfio::Container> vfioContainer;
24
26
std::shared_ptr<kernel::vfio::Device> vfioDevice;
25
27
26
28
// Slave address space ID to access the PCIe address space from the
@@ -32,13 +34,12 @@ class Card
32
34
// card.
33
35
MemoryManager::AddressSpaceId addrSpaceIdHostToDevice;
34
36
35
- std::list<std::shared_ptr<ip::Core> > ips;
37
+ std::list<std::shared_ptr<ip::Core>> ips;
36
38
37
39
virtual ~Card ();
38
40
39
- bool mapMemoryBlock (const std::shared_ptr<MemoryBlock> block);
40
- bool unmapMemoryBlock (const MemoryBlock &block);
41
- std::shared_ptr<kernel::vfio::Container> vfioContainer;
41
+ virtual bool mapMemoryBlock (const std::shared_ptr<MemoryBlock> block);
42
+ virtual bool unmapMemoryBlock (const MemoryBlock &block);
42
43
43
44
std::shared_ptr<ip::Core> lookupIp (const std::string &name) const ;
44
45
std::shared_ptr<ip::Core> lookupIp (const Vlnv &vlnv) const ;
Original file line number Diff line number Diff line change @@ -59,18 +59,6 @@ class PCIeCard : public Card {
59
59
void dump ()
60
60
{ }
61
61
62
- std::shared_ptr<ip::Core>
63
- lookupIp (const std::string &name) const ;
64
-
65
- std::shared_ptr<ip::Core>
66
- lookupIp (const Vlnv &vlnv) const ;
67
-
68
- std::shared_ptr<ip::Core>
69
- lookupIp (const ip::IpIdentifier &id) const ;
70
-
71
- bool mapMemoryBlock (const MemoryBlock &block);
72
- bool unmapMemoryBlock (const MemoryBlock &block);
73
-
74
62
public: // TODO: make this private
75
63
bool doReset; // Reset VILLASfpga during startup?
76
64
int affinity; // Affinity for MSI interrupts
@@ -79,13 +67,6 @@ class PCIeCard : public Card {
79
67
80
68
std::shared_ptr<kernel::pci::Device> pdev; // PCI device handle
81
69
82
- // Slave address space ID to access the PCIe address space from the FPGA
83
- MemoryManager::AddressSpaceId addrSpaceIdDeviceToHost;
84
-
85
- // Address space identifier of the master address space of this FPGA card.
86
- // This will be used for address resolution of all IPs on this card.
87
- MemoryManager::AddressSpaceId addrSpaceIdHostToDevice;
88
-
89
70
protected:
90
71
Logger
91
72
getLogger () const
Original file line number Diff line number Diff line change @@ -155,39 +155,6 @@ PCIeCard::~PCIeCard()
155
155
156
156
}
157
157
158
- std::shared_ptr<ip::Core> PCIeCard::lookupIp (const std::string &name) const
159
- {
160
- for (auto &ip : ips) {
161
- if (*ip == name) {
162
- return ip;
163
- }
164
- }
165
-
166
- return nullptr ;
167
- }
168
-
169
- std::shared_ptr<ip::Core> PCIeCard::lookupIp (const Vlnv &vlnv) const
170
- {
171
- for (auto &ip : ips) {
172
- if (*ip == vlnv) {
173
- return ip;
174
- }
175
- }
176
-
177
- return nullptr ;
178
- }
179
-
180
- std::shared_ptr<ip::Core> PCIeCard::lookupIp (const ip::IpIdentifier &id) const
181
- {
182
- for (auto &ip : ips) {
183
- if (*ip == id) {
184
- return ip;
185
- }
186
- }
187
-
188
- return nullptr ;
189
- }
190
-
191
158
bool PCIeCard::init ()
192
159
{
193
160
logger = getLogger ();
You can’t perform that action at this time.
0 commit comments