/* * Copyright (C) 2020-2022 Intel Corporation * * SPDX-License-Identifier: MIT * */ #pragma once #include "shared/source/os_interface/os_interface.h" #include 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