mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 01:04:57 +08:00
Cleaned up files: level_zero/core/source/device/device.h opencl/source/helpers/dispatch_info.h shared/source/os_interface/os_interface.h Related-To: NEO-5548 Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
31 lines
801 B
C++
31 lines
801 B
C++
/*
|
|
* Copyright (C) 2020-2023 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "shared/source/helpers/driver_model_type.h"
|
|
#include "shared/source/os_interface/os_interface.h"
|
|
|
|
#include <string>
|
|
namespace NEO {
|
|
|
|
class HwDeviceIdDrm : public HwDeviceId {
|
|
public:
|
|
static constexpr DriverModelType driverModelType = DriverModelType::DRM;
|
|
|
|
HwDeviceIdDrm(int fileDescriptorIn, const char *pciPathIn)
|
|
: HwDeviceId(DriverModelType::DRM),
|
|
fileDescriptor(fileDescriptorIn), pciPath(pciPathIn) {}
|
|
~HwDeviceIdDrm() override;
|
|
int getFileDescriptor() const { return fileDescriptor; }
|
|
const char *getPciPath() const { return pciPath.c_str(); }
|
|
|
|
protected:
|
|
const int fileDescriptor;
|
|
const std::string pciPath;
|
|
};
|
|
} // namespace NEO
|