Wed Jul 24 03:29:14 2013 UTC ()
Add a bunch of i915 trace stubs to i915_trace.h.


(riastradh)
diff -r1.1.2.3 -r1.1.2.4 src/sys/external/bsd/drm2/include/i915_trace.h

cvs diff -r1.1.2.3 -r1.1.2.4 src/sys/external/bsd/drm2/include/i915_trace.h (expand / switch to unified diff)

--- src/sys/external/bsd/drm2/include/i915_trace.h 2013/07/24 03:25:47 1.1.2.3
+++ src/sys/external/bsd/drm2/include/i915_trace.h 2013/07/24 03:29:14 1.1.2.4
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: i915_trace.h,v 1.1.2.3 2013/07/24 03:25:47 riastradh Exp $ */ 1/* $NetBSD: i915_trace.h,v 1.1.2.4 2013/07/24 03:29:14 riastradh Exp $ */
2 2
3/*- 3/*-
4 * Copyright (c) 2013 The NetBSD Foundation, Inc. 4 * Copyright (c) 2013 The NetBSD Foundation, Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * This code is derived from software contributed to The NetBSD Foundation 7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Taylor R. Campbell. 8 * by Taylor R. Campbell.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions 11 * modification, are permitted provided that the following conditions
12 * are met: 12 * are met:
13 * 1. Redistributions of source code must retain the above copyright 13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer.
@@ -24,25 +24,147 @@ @@ -24,25 +24,147 @@
24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 * POSSIBILITY OF SUCH DAMAGE. 29 * POSSIBILITY OF SUCH DAMAGE.
30 */ 30 */
31 31
32#ifndef _I915_TRACE_H_ 32#ifndef _I915_TRACE_H_
33#define _I915_TRACE_H_ 33#define _I915_TRACE_H_
34 34
35#include <sys/types.h> 35#include <sys/types.h>
36 36
 37#include "intel_drv.h"
 38
 39static inline void
 40trace_i915_flip_complete(enum plane plane __unused,
 41 struct drm_i915_gem_object *obj __unused)
 42{
 43}
 44
 45static inline void
 46trace_i915_flip_request(enum plane plane __unused,
 47 struct drm_i915_gem_object *obj __unused)
 48{
 49}
 50
 51static inline void
 52trace_i915_gem_evict(struct drm_device *dev __unused, int min_size __unused,
 53 unsigned int alignment __unused, bool mappable __unused)
 54{
 55}
 56
 57static inline void
 58trace_i915_gem_evict_everything(struct drm_device *dev __unused)
 59{
 60}
 61
 62static inline void
 63trace_i915_gem_object_bind(struct drm_i915_gem_object *obj __unused,
 64 bool map_and_fenceable __unused)
 65{
 66}
 67
 68static inline void
 69trace_i915_gem_object_change_domain(struct drm_i915_gem_object *obj __unused,
 70 uint32_t read_domains __unused, uint32_t old_write_domain __unused)
 71{
 72}
 73
 74static inline void
 75trace_i915_gem_object_clflush(struct drm_i915_gem_object *obj __unused)
 76{
 77}
 78
 79static inline void
 80trace_i915_gem_object_create(struct drm_i915_gem_object *obj __unused)
 81{
 82}
 83
 84static inline void
 85trace_i915_gem_object_destroy(struct drm_i915_gem_object *obj __unused)
 86{
 87}
 88
 89static inline void
 90trace_i915_gem_object_fault(struct drm_i915_gem_object *obj __unused,
 91 pgoff_t page_offset __unused, bool gtt __unused, bool write __unused)
 92{
 93}
 94
 95static inline void
 96trace_i915_gem_object_pread(struct drm_i915_gem_object *obj __unused,
 97 uint32_t offset __unused, uint32_t size __unused)
 98{
 99}
 100
 101static inline void
 102trace_i915_gem_object_pwrite(struct drm_i915_gem_object *obj __unused,
 103 uint32_t offset __unused, uint32_t size __unused)
 104{
 105}
 106
 107static inline void
 108trace_i915_gem_request_add(struct intel_ring_buffer *ring __unused,
 109 uint32_t seqno __unused)
 110{
 111}
 112
 113static inline void
 114trace_i915_gem_request_complete(struct intel_ring_buffer *ring __unused,
 115 uint32_t seqno __unused)
 116{
 117}
 118
 119static inline void
 120trace_i915_gem_request_retire(struct intel_ring_buffer *ring __unused,
 121 uint32_t seqno __unused)
 122{
 123}
 124
 125static inline void
 126trace_i915_gem_request_wait_begin(struct intel_ring_buffer *ring __unused,
 127 uint32_t seqno __unused)
 128{
 129}
 130
 131static inline void
 132trace_i915_gem_request_wait_end(struct intel_ring_buffer *ring __unused,
 133 uint32_t seqno __unused)
 134{
 135}
 136
 137static inline void
 138trace_i915_gem_ring_dispatch(struct intel_ring_buffer *ring __unused,
 139 uint32_t seqno __unused, uint32_t flags __unused)
 140{
 141}
 142
 143static inline void
 144trace_i915_gem_ring_flush(struct intel_ring_buffer *ring __unused,
 145 uint32_t invalidate __unused, uint32_t flags __unused)
 146{
 147}
 148
37static inline void 149static inline void
38trace_i915_reg_rw(bool write __unused, uint32_t reg __unused, 150trace_i915_reg_rw(bool write __unused, uint32_t reg __unused,
39 uint64_t value __unused, size_t len __unused) 151 uint64_t value __unused, size_t len __unused)
40{ 152{
41} 153}
42 154
43static inline void 155static inline void
44trace_i915_gem_object_create(struct drm_i915_gem_object *obj __unused) 156trace_i915_ring_wait_begin(struct intel_ring_buffer *ring __unused)
 157{
 158}
 159
 160static inline void
 161trace_i915_ring_wait_end(struct intel_ring_buffer *ring __unused)
 162{
 163}
 164
 165static inline void
 166trace_intel_gpu_freq_change(unsigned int freq __unused)
45{ 167{
46} 168}
47 169
48#endif /* _I915_TRACE_H_ */ 170#endif /* _I915_TRACE_H_ */