devices.m separation for Linux

Change-Id: Ia8e430db4dfcefc1b19e23e9cd7113bf87f0a7af
This commit is contained in:
Dunajski, Bartosz
2018-02-05 08:54:46 +01:00
committed by sys_ocldev
parent 6ef0581a02
commit bdee42ca16
13 changed files with 419 additions and 8 deletions

View File

@@ -30,6 +30,8 @@
#include <cerrno>
#include <string>
struct GT_SYSTEM_INFO;
namespace OCLRT {
#define I915_PRIVATE_PARAM_HAS_EXEC_FORCE_NON_COHERENT (-1)
@@ -38,6 +40,16 @@ namespace OCLRT {
#define I915_CONTEXT_PRIVATE_PARAM_BOOST 0x80000000
class DeviceFactory;
struct HardwareInfo;
struct DeviceDescriptor {
unsigned short deviceId;
const HardwareInfo *pHwInfo;
void (*setupGtSystemInfo)(GT_SYSTEM_INFO *);
GTTYPE eGtType;
};
extern const DeviceDescriptor deviceDescriptorTable[];
class Drm {
friend DeviceFactory;