1 /*	$NetBSD: radeon_trace.h,v 1.2 2018/08/27 07:51:37 riastradh Exp $	*/
2 
3 /*-
4  * Copyright (c) 2014 The NetBSD Foundation, Inc.
5  * All rights reserved.
6  *
7  * This code is derived from software contributed to The NetBSD Foundation
8  * by Taylor R. Campbell.
9  *
10  * Redistribution and use in source and binary forms, with or without
11  * modification, are permitted provided that the following conditions
12  * are met:
13  * 1. Redistributions of source code must retain the above copyright
14  *    notice, this list of conditions and the following disclaimer.
15  * 2. Redistributions in binary form must reproduce the above copyright
16  *    notice, this list of conditions and the following disclaimer in the
17  *    documentation and/or other materials provided with the distribution.
18  *
19  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
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
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
29  * POSSIBILITY OF SUCH DAMAGE.
30  */
31 
32 #ifndef _RADEON_TRACE_H_
33 #define _RADEON_TRACE_H_
34 
35 #include <sys/cdefs.h>
36 
37 #include <sys/types.h>
38 
39 struct drm_device;
40 struct radeon_bo_parser;
41 struct radeon_bo_va;
42 struct radeon_cs_parser;
43 
44 static inline void
trace_radeon_bo_create(struct radeon_bo * bo __unused)45 trace_radeon_bo_create(struct radeon_bo *bo __unused)
46 {
47 }
48 
49 static inline void
trace_radeon_cs(struct radeon_cs_parser * p __unused)50 trace_radeon_cs(struct radeon_cs_parser *p __unused)
51 {
52 }
53 
54 static inline void
trace_radeon_fence_emit(struct drm_device * dev __unused,int ring __unused,uint32_t seqno __unused)55 trace_radeon_fence_emit(struct drm_device *dev __unused, int ring __unused,
56     uint32_t seqno __unused)
57 {
58 }
59 
60 static inline void
trace_radeon_fence_wait_begin(struct drm_device * dev __unused,int ring __unused,uint32_t seqno __unused)61 trace_radeon_fence_wait_begin(struct drm_device *dev __unused,
62     int ring __unused, uint32_t seqno __unused)
63 {
64 }
65 
66 static inline void
trace_radeon_fence_wait_end(struct drm_device * dev __unused,int ring __unused,uint32_t seqno __unused)67 trace_radeon_fence_wait_end(struct drm_device *dev __unused, int ring __unused,
68     uint32_t seqno __unused)
69 {
70 }
71 
72 static inline void
trace_radeon_semaphore_signale(int ring __unused,struct radeon_semaphore * sem __unused)73 trace_radeon_semaphore_signale(int ring __unused,
74     struct radeon_semaphore *sem __unused)
75 {
76 }
77 
78 static inline void
trace_radeon_semaphore_wait(int ring __unused,struct radeon_semaphore * sem __unused)79 trace_radeon_semaphore_wait(int ring __unused,
80     struct radeon_semaphore *sem __unused)
81 {
82 }
83 
84 static inline void
trace_radeon_vm_bo_update(struct radeon_bo_va * bo_va __unused)85 trace_radeon_vm_bo_update(struct radeon_bo_va *bo_va __unused)
86 {
87 }
88 
89 static inline void
trace_radeon_vm_grab_id(unsigned vmid __unused,int ring __unused)90 trace_radeon_vm_grab_id(unsigned vmid __unused, int ring __unused)
91 {
92 }
93 
94 static inline void
trace_radeon_vm_set_page(uint64_t pe __unused,uint64_t addr __unused,unsigned count __unused,uint32_t incr __unused,uint32_t flags __unused)95 trace_radeon_vm_set_page(uint64_t pe __unused, uint64_t addr __unused,
96     unsigned count __unused, uint32_t incr __unused, uint32_t flags __unused)
97 {
98 }
99 
100 static inline void
trace_radeon_vm_flush(uint64_t pd_addr,int ring,unsigned id)101 trace_radeon_vm_flush(uint64_t pd_addr, int ring, unsigned id)
102 {
103 }
104 
105 #endif	/* _RADEON_TRACE_H_ */
106