1
2
3
4
5
6 #ifndef __I915_PERF_H__
7 #define __I915_PERF_H__
8
9 #include <linux/types.h>
10
11 struct drm_device;
12 struct drm_file;
13 struct drm_i915_private;
14 struct intel_context;
15 struct intel_engine_cs;
16
17 void i915_perf_init(struct drm_i915_private *i915);
18 void i915_perf_fini(struct drm_i915_private *i915);
19 void i915_perf_register(struct drm_i915_private *i915);
20 void i915_perf_unregister(struct drm_i915_private *i915);
21
22 int i915_perf_open_ioctl(struct drm_device *dev, void *data,
23 struct drm_file *file);
24 int i915_perf_add_config_ioctl(struct drm_device *dev, void *data,
25 struct drm_file *file);
26 int i915_perf_remove_config_ioctl(struct drm_device *dev, void *data,
27 struct drm_file *file);
28 void i915_oa_init_reg_state(struct intel_engine_cs *engine,
29 struct intel_context *ce,
30 u32 *reg_state);
31
32 #endif