Jani Nikula | db94e9f | 2019-08-08 16:42:44 +0300 | [diff] [blame] | 1 | /* SPDX-License-Identifier: MIT */ |
| 2 | /* |
| 3 | * Copyright © 2019 Intel Corporation |
| 4 | */ |
| 5 | |
| 6 | #ifndef __I915_PERF_H__ |
| 7 | #define __I915_PERF_H__ |
| 8 | |
| 9 | #include <linux/types.h> |
| 10 | |
Lionel Landwerlin | 1d0f2eb | 2019-09-09 12:31:09 +0300 | [diff] [blame^] | 11 | #include "i915_perf_types.h" |
| 12 | |
Jani Nikula | db94e9f | 2019-08-08 16:42:44 +0300 | [diff] [blame] | 13 | struct drm_device; |
| 14 | struct drm_file; |
| 15 | struct drm_i915_private; |
| 16 | struct intel_context; |
| 17 | struct intel_engine_cs; |
| 18 | |
| 19 | void i915_perf_init(struct drm_i915_private *i915); |
| 20 | void i915_perf_fini(struct drm_i915_private *i915); |
| 21 | void i915_perf_register(struct drm_i915_private *i915); |
| 22 | void i915_perf_unregister(struct drm_i915_private *i915); |
| 23 | |
| 24 | int i915_perf_open_ioctl(struct drm_device *dev, void *data, |
| 25 | struct drm_file *file); |
| 26 | int i915_perf_add_config_ioctl(struct drm_device *dev, void *data, |
| 27 | struct drm_file *file); |
| 28 | int i915_perf_remove_config_ioctl(struct drm_device *dev, void *data, |
| 29 | struct drm_file *file); |
Chris Wilson | 7dc56af | 2019-09-24 15:59:50 +0100 | [diff] [blame] | 30 | void i915_oa_init_reg_state(const struct intel_context *ce, |
| 31 | const struct intel_engine_cs *engine); |
Jani Nikula | db94e9f | 2019-08-08 16:42:44 +0300 | [diff] [blame] | 32 | |
| 33 | #endif /* __I915_PERF_H__ */ |