2017-12-21 07:45:38 +08:00
|
|
|
/*
|
2021-05-17 02:51:16 +08:00
|
|
|
* Copyright (C) 2020-2021 Intel Corporation
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
2019-02-27 18:39:32 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
2021-03-29 19:43:50 +08:00
|
|
|
|
2020-02-24 05:44:01 +08:00
|
|
|
#include "shared/source/os_interface/os_interface.h"
|
2019-02-27 18:39:32 +08:00
|
|
|
|
2020-02-12 00:48:40 +08:00
|
|
|
#include <memory>
|
2021-03-29 19:43:50 +08:00
|
|
|
#include <optional>
|
|
|
|
#include <string>
|
2020-02-12 00:48:40 +08:00
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
namespace NEO {
|
2017-12-21 07:45:38 +08:00
|
|
|
class Drm;
|
2019-07-12 22:50:14 +08:00
|
|
|
|
2017-12-21 07:45:38 +08:00
|
|
|
class OSInterface::OSInterfaceImpl {
|
|
|
|
public:
|
2020-02-12 00:48:40 +08:00
|
|
|
OSInterfaceImpl();
|
|
|
|
~OSInterfaceImpl();
|
2017-12-21 07:45:38 +08:00
|
|
|
Drm *getDrm() const {
|
2020-02-12 00:48:40 +08:00
|
|
|
return drm.get();
|
2017-12-21 07:45:38 +08:00
|
|
|
}
|
2020-02-12 00:48:40 +08:00
|
|
|
void setDrm(Drm *drm);
|
2017-12-21 07:45:38 +08:00
|
|
|
|
2021-02-24 01:57:27 +08:00
|
|
|
bool isDebugAttachAvailable() const;
|
|
|
|
|
2017-12-21 07:45:38 +08:00
|
|
|
protected:
|
2020-02-12 00:48:40 +08:00
|
|
|
std::unique_ptr<Drm> drm;
|
2017-12-21 07:45:38 +08:00
|
|
|
};
|
2019-03-26 18:59:46 +08:00
|
|
|
} // namespace NEO
|