2019-10-22 17:44:06 +08:00
|
|
|
/*
|
2020-01-07 14:42:40 +08:00
|
|
|
* Copyright (C) 2019-2020 Intel Corporation
|
2019-10-22 17:44:06 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
2019-12-09 22:29:30 +08:00
|
|
|
#include "core/helpers/options.h"
|
2019-11-15 16:59:48 +08:00
|
|
|
|
|
|
|
#include <cstdint>
|
2019-11-05 20:38:20 +08:00
|
|
|
#include <memory>
|
2019-11-15 16:59:48 +08:00
|
|
|
#include <string>
|
2019-10-22 17:44:06 +08:00
|
|
|
|
|
|
|
namespace NEO {
|
|
|
|
|
2019-10-24 19:34:25 +08:00
|
|
|
class AubCenter;
|
2019-11-15 16:59:48 +08:00
|
|
|
class ExecutionEnvironment;
|
2019-11-07 01:14:30 +08:00
|
|
|
class GmmPageTableMngr;
|
2019-11-28 20:02:11 +08:00
|
|
|
class MemoryOperationsHandler;
|
2020-01-07 14:42:40 +08:00
|
|
|
class OSInterface;
|
2019-10-24 19:34:25 +08:00
|
|
|
|
2019-10-22 17:44:06 +08:00
|
|
|
struct RootDeviceEnvironment {
|
2019-11-15 16:59:48 +08:00
|
|
|
RootDeviceEnvironment(ExecutionEnvironment &executionEnvironment);
|
2019-10-24 19:34:25 +08:00
|
|
|
RootDeviceEnvironment(RootDeviceEnvironment &) = delete;
|
2019-11-15 16:59:48 +08:00
|
|
|
MOCKABLE_VIRTUAL ~RootDeviceEnvironment();
|
|
|
|
|
|
|
|
MOCKABLE_VIRTUAL void initAubCenter(bool localMemoryEnabled, const std::string &aubFileName, CommandStreamReceiverType csrType);
|
|
|
|
|
2020-01-07 14:42:40 +08:00
|
|
|
std::unique_ptr<OSInterface> osInterface;
|
2019-11-07 01:14:30 +08:00
|
|
|
std::unique_ptr<GmmPageTableMngr> pageTableManager;
|
2019-11-28 20:02:11 +08:00
|
|
|
std::unique_ptr<MemoryOperationsHandler> memoryOperationsInterface;
|
2019-10-24 19:34:25 +08:00
|
|
|
std::unique_ptr<AubCenter> aubCenter;
|
2019-11-15 16:59:48 +08:00
|
|
|
ExecutionEnvironment &executionEnvironment;
|
2019-10-22 17:44:06 +08:00
|
|
|
};
|
|
|
|
} // namespace NEO
|