2017-12-21 07:45:38 +08:00
|
|
|
/*
|
2019-03-26 18:59:46 +08:00
|
|
|
* Copyright (C) 2017-2019 Intel Corporation
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
2018-09-18 15:11:08 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
2019-12-11 18:38:44 +08:00
|
|
|
#include <cstdint>
|
2017-12-21 07:45:38 +08:00
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
namespace NEO {
|
2017-12-21 07:45:38 +08:00
|
|
|
|
|
|
|
class OSInterface {
|
|
|
|
|
|
|
|
public:
|
|
|
|
class OSInterfaceImpl;
|
|
|
|
OSInterface();
|
2018-03-23 22:55:13 +08:00
|
|
|
virtual ~OSInterface();
|
2017-12-21 07:45:38 +08:00
|
|
|
OSInterface(const OSInterface &) = delete;
|
|
|
|
OSInterface &operator=(const OSInterface &) = delete;
|
|
|
|
|
|
|
|
OSInterfaceImpl *get() const {
|
|
|
|
return osInterfaceImpl;
|
|
|
|
};
|
|
|
|
static bool osEnabled64kbPages;
|
2018-10-12 21:20:02 +08:00
|
|
|
static bool osEnableLocalMemory;
|
2017-12-21 07:45:38 +08:00
|
|
|
static bool are64kbPagesEnabled();
|
2019-12-11 18:38:44 +08:00
|
|
|
uint32_t getDeviceHandle() const;
|
2019-10-15 21:05:47 +08:00
|
|
|
void setGmmInputArgs(void *args);
|
2017-12-21 07:45:38 +08:00
|
|
|
|
|
|
|
protected:
|
2018-03-23 22:55:13 +08:00
|
|
|
OSInterfaceImpl *osInterfaceImpl = nullptr;
|
2017-12-21 07:45:38 +08:00
|
|
|
};
|
2019-03-26 18:59:46 +08:00
|
|
|
} // namespace NEO
|