diff options
author | Jani Nikula <jani.nikula@intel.com> | 2022-01-20 14:33:46 +0300 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2022-01-21 10:59:22 +0300 |
commit | 198bca93403d04f43c07c5c87c7b75a54f4bcb54 (patch) | |
tree | 6df2d54a0425ffba3708718d787771ff19053d74 /drivers/gpu/drm/i915/i915_ioctl.h | |
parent | 5de6a3de999d0cfeea94f1d3932b78892f3d69e8 (diff) | |
download | linux-198bca93403d04f43c07c5c87c7b75a54f4bcb54.tar.xz |
drm/i915: split out i915_reg_read_ioctl() to i915_ioctl.[ch]
Add new files i915_ioctl.[ch] to hold small ioctls that are out of place
everywhere else, and not big enough to warrant a file of their own. For
starters, it's just for i915_reg_read_ioctl() that's a bit high level
for a low level implementation that intel_uncore.[ch] is.
Suggested-by: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220120113346.3214745-1-jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/i915_ioctl.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_ioctl.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_ioctl.h b/drivers/gpu/drm/i915/i915_ioctl.h new file mode 100644 index 000000000000..f16ae87b8b8a --- /dev/null +++ b/drivers/gpu/drm/i915/i915_ioctl.h @@ -0,0 +1,14 @@ +/* SPDX-License-Identifier: MIT */ +/* + * Copyright © 2022 Intel Corporation + */ + +#ifndef __I915_IOCTL_H__ +#define __I915_IOCTL_H__ + +struct drm_device; +struct drm_file; + +int i915_reg_read_ioctl(struct drm_device *dev, void *data, struct drm_file *file); + +#endif /* __I915_IOCTL_H__ */ |