Redesign ULT by mocking sysfs and implementing for pci

Change-Id: I5ee2219208d05c125d1fce1a4a5b992bc8c4646e
This commit is contained in:
Mraghuwa
2020-05-21 12:15:07 +05:30
committed by sys_ocldev
parent e25eb4057c
commit b6ccfed471
11 changed files with 267 additions and 221 deletions

View File

@@ -9,7 +9,9 @@
#include "shared/source/helpers/basic_math.h"
#include "shared/source/helpers/debug_helpers.h"
#include "shared/source/helpers/string.h"
#include <cstring>
namespace L0 {
//
@@ -91,9 +93,13 @@ void PciImp::init() {
}
PciImp::~PciImp() {
for (zet_pci_bar_properties_t *pProperties : pciBarProperties) {
delete pProperties;
pProperties = nullptr;
}
if (nullptr != pOsPci) {
delete pOsPci;
pOsPci = nullptr;
}
}
} // namespace L0