mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 20:39:56 +08:00
Unify reading pci paths
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
cee785f8a1
commit
7d64d8e00e
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user