i915_trace.h revision 1.3 1 1.3 riastrad /* $NetBSD: i915_trace.h,v 1.3 2014/07/16 20:56:25 riastradh Exp $ */
2 1.2 riastrad
3 1.2 riastrad /*-
4 1.2 riastrad * Copyright (c) 2013 The NetBSD Foundation, Inc.
5 1.2 riastrad * All rights reserved.
6 1.2 riastrad *
7 1.2 riastrad * This code is derived from software contributed to The NetBSD Foundation
8 1.2 riastrad * by Taylor R. Campbell.
9 1.2 riastrad *
10 1.2 riastrad * Redistribution and use in source and binary forms, with or without
11 1.2 riastrad * modification, are permitted provided that the following conditions
12 1.2 riastrad * are met:
13 1.2 riastrad * 1. Redistributions of source code must retain the above copyright
14 1.2 riastrad * notice, this list of conditions and the following disclaimer.
15 1.2 riastrad * 2. Redistributions in binary form must reproduce the above copyright
16 1.2 riastrad * notice, this list of conditions and the following disclaimer in the
17 1.2 riastrad * documentation and/or other materials provided with the distribution.
18 1.2 riastrad *
19 1.2 riastrad * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20 1.2 riastrad * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21 1.2 riastrad * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 1.2 riastrad * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23 1.2 riastrad * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 1.2 riastrad * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 1.2 riastrad * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 1.2 riastrad * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 1.2 riastrad * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 1.2 riastrad * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 1.2 riastrad * POSSIBILITY OF SUCH DAMAGE.
30 1.2 riastrad */
31 1.2 riastrad
32 1.2 riastrad #ifndef _I915_TRACE_H_
33 1.2 riastrad #define _I915_TRACE_H_
34 1.2 riastrad
35 1.2 riastrad #include <sys/types.h>
36 1.2 riastrad
37 1.2 riastrad #include "intel_drv.h"
38 1.2 riastrad
39 1.2 riastrad static inline void
40 1.2 riastrad trace_i915_flip_complete(enum plane plane __unused,
41 1.2 riastrad struct drm_i915_gem_object *obj __unused)
42 1.2 riastrad {
43 1.2 riastrad }
44 1.2 riastrad
45 1.2 riastrad static inline void
46 1.2 riastrad trace_i915_flip_request(enum plane plane __unused,
47 1.2 riastrad struct drm_i915_gem_object *obj __unused)
48 1.2 riastrad {
49 1.2 riastrad }
50 1.2 riastrad
51 1.2 riastrad static inline void
52 1.2 riastrad trace_i915_gem_evict(struct drm_device *dev __unused, int min_size __unused,
53 1.2 riastrad unsigned int alignment __unused, bool mappable __unused)
54 1.2 riastrad {
55 1.2 riastrad }
56 1.2 riastrad
57 1.2 riastrad static inline void
58 1.2 riastrad trace_i915_gem_evict_everything(struct drm_device *dev __unused)
59 1.2 riastrad {
60 1.2 riastrad }
61 1.2 riastrad
62 1.2 riastrad static inline void
63 1.3 riastrad trace_i915_gem_evict_vm(struct i915_address_space *vm __unused)
64 1.3 riastrad {
65 1.3 riastrad }
66 1.3 riastrad
67 1.3 riastrad static inline void
68 1.2 riastrad trace_i915_gem_object_bind(struct drm_i915_gem_object *obj __unused,
69 1.2 riastrad bool map_and_fenceable __unused)
70 1.2 riastrad {
71 1.2 riastrad }
72 1.2 riastrad
73 1.2 riastrad static inline void
74 1.2 riastrad trace_i915_gem_object_change_domain(struct drm_i915_gem_object *obj __unused,
75 1.2 riastrad uint32_t read_domains __unused, uint32_t old_write_domain __unused)
76 1.2 riastrad {
77 1.2 riastrad }
78 1.2 riastrad
79 1.2 riastrad static inline void
80 1.2 riastrad trace_i915_gem_object_clflush(struct drm_i915_gem_object *obj __unused)
81 1.2 riastrad {
82 1.2 riastrad }
83 1.2 riastrad
84 1.2 riastrad static inline void
85 1.2 riastrad trace_i915_gem_object_create(struct drm_i915_gem_object *obj __unused)
86 1.2 riastrad {
87 1.2 riastrad }
88 1.2 riastrad
89 1.2 riastrad static inline void
90 1.2 riastrad trace_i915_gem_object_destroy(struct drm_i915_gem_object *obj __unused)
91 1.2 riastrad {
92 1.2 riastrad }
93 1.2 riastrad
94 1.2 riastrad static inline void
95 1.2 riastrad trace_i915_gem_object_fault(struct drm_i915_gem_object *obj __unused,
96 1.2 riastrad pgoff_t page_offset __unused, bool gtt __unused, bool write __unused)
97 1.2 riastrad {
98 1.2 riastrad }
99 1.2 riastrad
100 1.2 riastrad static inline void
101 1.2 riastrad trace_i915_gem_object_pread(struct drm_i915_gem_object *obj __unused,
102 1.2 riastrad uint32_t offset __unused, uint32_t size __unused)
103 1.2 riastrad {
104 1.2 riastrad }
105 1.2 riastrad
106 1.2 riastrad static inline void
107 1.2 riastrad trace_i915_gem_object_pwrite(struct drm_i915_gem_object *obj __unused,
108 1.2 riastrad uint32_t offset __unused, uint32_t size __unused)
109 1.2 riastrad {
110 1.2 riastrad }
111 1.2 riastrad
112 1.2 riastrad static inline void
113 1.2 riastrad trace_i915_gem_object_unbind(struct drm_i915_gem_object *obj __unused)
114 1.2 riastrad {
115 1.2 riastrad }
116 1.2 riastrad
117 1.2 riastrad static inline void
118 1.2 riastrad trace_i915_gem_request_add(struct intel_ring_buffer *ring __unused,
119 1.2 riastrad uint32_t seqno __unused)
120 1.2 riastrad {
121 1.2 riastrad }
122 1.2 riastrad
123 1.2 riastrad static inline void
124 1.3 riastrad trace_i915_gem_request_complete(struct intel_ring_buffer *ring __unused)
125 1.2 riastrad {
126 1.2 riastrad }
127 1.2 riastrad
128 1.2 riastrad static inline void
129 1.2 riastrad trace_i915_gem_request_retire(struct intel_ring_buffer *ring __unused,
130 1.2 riastrad uint32_t seqno __unused)
131 1.2 riastrad {
132 1.2 riastrad }
133 1.2 riastrad
134 1.2 riastrad static inline void
135 1.2 riastrad trace_i915_gem_request_wait_begin(struct intel_ring_buffer *ring __unused,
136 1.2 riastrad uint32_t seqno __unused)
137 1.2 riastrad {
138 1.2 riastrad }
139 1.2 riastrad
140 1.2 riastrad static inline void
141 1.2 riastrad trace_i915_gem_request_wait_end(struct intel_ring_buffer *ring __unused,
142 1.2 riastrad uint32_t seqno __unused)
143 1.2 riastrad {
144 1.2 riastrad }
145 1.2 riastrad
146 1.2 riastrad static inline void
147 1.2 riastrad trace_i915_gem_ring_dispatch(struct intel_ring_buffer *ring __unused,
148 1.2 riastrad uint32_t seqno __unused, uint32_t flags __unused)
149 1.2 riastrad {
150 1.2 riastrad }
151 1.2 riastrad
152 1.2 riastrad static inline void
153 1.2 riastrad trace_i915_gem_ring_flush(struct intel_ring_buffer *ring __unused,
154 1.2 riastrad uint32_t invalidate __unused, uint32_t flags __unused)
155 1.2 riastrad {
156 1.2 riastrad }
157 1.2 riastrad
158 1.2 riastrad static inline void
159 1.3 riastrad trace_i915_gem_ring_sync_to(struct intel_ring_buffer *from __unused,
160 1.3 riastrad struct intel_ring_buffer *to __unused, u32 seqno __unused)
161 1.3 riastrad {
162 1.3 riastrad }
163 1.3 riastrad
164 1.3 riastrad static inline void
165 1.2 riastrad trace_i915_reg_rw(bool write __unused, uint32_t reg __unused,
166 1.3 riastrad uint64_t value __unused, size_t len __unused, bool trace __unused)
167 1.2 riastrad {
168 1.2 riastrad }
169 1.2 riastrad
170 1.2 riastrad static inline void
171 1.2 riastrad trace_i915_ring_wait_begin(struct intel_ring_buffer *ring __unused)
172 1.2 riastrad {
173 1.2 riastrad }
174 1.2 riastrad
175 1.2 riastrad static inline void
176 1.2 riastrad trace_i915_ring_wait_end(struct intel_ring_buffer *ring __unused)
177 1.2 riastrad {
178 1.2 riastrad }
179 1.2 riastrad
180 1.2 riastrad static inline void
181 1.3 riastrad trace_i915_vma_bind(struct i915_vma *vma __unused, uint64_t flags __unused)
182 1.3 riastrad {
183 1.3 riastrad }
184 1.3 riastrad
185 1.3 riastrad static inline void
186 1.3 riastrad trace_i915_vma_unbind(struct i915_vma *vma __unused)
187 1.3 riastrad {
188 1.3 riastrad }
189 1.3 riastrad
190 1.3 riastrad static inline void
191 1.2 riastrad trace_intel_gpu_freq_change(unsigned int freq __unused)
192 1.2 riastrad {
193 1.2 riastrad }
194 1.2 riastrad
195 1.2 riastrad #endif /* _I915_TRACE_H_ */
196