mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 08:53:55 +08:00
36 lines
596 B
C++
36 lines
596 B
C++
/*
|
|
* Copyright (C) 2017-2021 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "shared/source/os_interface/os_interface.h"
|
|
|
|
#include <memory>
|
|
#include <optional>
|
|
#include <string>
|
|
|
|
namespace NEO {
|
|
class Drm;
|
|
|
|
class OSInterface::OSInterfaceImpl {
|
|
public:
|
|
OSInterfaceImpl();
|
|
~OSInterfaceImpl();
|
|
Drm *getDrm() const {
|
|
return drm.get();
|
|
}
|
|
void setDrm(Drm *drm);
|
|
|
|
bool isDebugAttachAvailable() const;
|
|
|
|
static std::optional<std::string> getPciPath(int deviceFd);
|
|
|
|
protected:
|
|
std::unique_ptr<Drm> drm;
|
|
};
|
|
} // namespace NEO
|