Files
compute-runtime/shared/source/os_interface/linux/ioctl_strings_prelim.cpp
Mateusz Jablonski b3814e41b4 Create enum for Ioctl request values
Related-To: NEO-6852
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-05-27 13:22:59 +02:00

27 lines
505 B
C++

/*
* Copyright (C) 2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "third_party/uapi/prelim/drm/i915_drm.h"
#include <string>
#include <sys/ioctl.h>
namespace NEO {
namespace IoctlToStringHelper {
std::string getIoctlParamStringRemaining(int param) {
switch (param) {
case PRELIM_I915_PARAM_HAS_VM_BIND:
return "PRELIM_I915_PARAM_HAS_VM_BIND";
default:
return std::to_string(param);
}
}
} // namespace IoctlToStringHelper
} // namespace NEO