1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

minor code style and comment fixes

This commit is contained in:
Steffen Vogel 2022-10-28 08:17:26 -04:00
parent 7e0848b7d5
commit ab3cb2303b
2 changed files with 3 additions and 2 deletions

View file

@ -75,6 +75,8 @@ public:
bool reset()
{
// TODO: Try via sysfs?
// echo 1 > /sys/bus/pci/devices/0000\:88\:00.0/reset
return true;
}

View file

@ -127,8 +127,7 @@ PCIeCard::~PCIeCard()
// Unmap all memory blocks
for (auto &mappedMemoryBlock : memoryBlocksMapped) {
auto translation = mm.getTranslation(addrSpaceIdDeviceToHost,
mappedMemoryBlock);
auto translation = mm.getTranslation(addrSpaceIdDeviceToHost, mappedMemoryBlock);
const uintptr_t iova = translation.getLocalAddr(0);
const size_t size = translation.getSize();