Unify reading pci paths

Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com>
This commit is contained in:
Kamil Diedrich
2021-03-29 13:43:50 +02:00
committed by Compute-Runtime-Automation
parent cee785f8a1
commit 7d64d8e00e
8 changed files with 63 additions and 27 deletions

View File

@@ -6,9 +6,12 @@
*/
#pragma once
#include "shared/source/os_interface/os_interface.h"
#include <memory>
#include <optional>
#include <string>
namespace NEO {
class Drm;
@@ -24,6 +27,8 @@ class OSInterface::OSInterfaceImpl {
bool isDebugAttachAvailable() const;
static std::optional<std::string> getPciPath(int deviceFd);
protected:
std::unique_ptr<Drm> drm;
};