Home | History | Annotate | Line # | Download | only in include
i915_trace.h revision 1.2
      1  1.2  riastrad /*	$NetBSD: i915_trace.h,v 1.2 2014/03/18 18:20:42 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.2  riastrad trace_i915_gem_object_bind(struct drm_i915_gem_object *obj __unused,
     64  1.2  riastrad     bool map_and_fenceable __unused)
     65  1.2  riastrad {
     66  1.2  riastrad }
     67  1.2  riastrad 
     68  1.2  riastrad static inline void
     69  1.2  riastrad trace_i915_gem_object_change_domain(struct drm_i915_gem_object *obj __unused,
     70  1.2  riastrad     uint32_t read_domains __unused, uint32_t old_write_domain __unused)
     71  1.2  riastrad {
     72  1.2  riastrad }
     73  1.2  riastrad 
     74  1.2  riastrad static inline void
     75  1.2  riastrad trace_i915_gem_object_clflush(struct drm_i915_gem_object *obj __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_create(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_destroy(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_fault(struct drm_i915_gem_object *obj __unused,
     91  1.2  riastrad     pgoff_t page_offset __unused, bool gtt __unused, bool write __unused)
     92  1.2  riastrad {
     93  1.2  riastrad }
     94  1.2  riastrad 
     95  1.2  riastrad static inline void
     96  1.2  riastrad trace_i915_gem_object_pread(struct drm_i915_gem_object *obj __unused,
     97  1.2  riastrad     uint32_t offset __unused, uint32_t size __unused)
     98  1.2  riastrad {
     99  1.2  riastrad }
    100  1.2  riastrad 
    101  1.2  riastrad static inline void
    102  1.2  riastrad trace_i915_gem_object_pwrite(struct drm_i915_gem_object *obj __unused,
    103  1.2  riastrad     uint32_t offset __unused, uint32_t size __unused)
    104  1.2  riastrad {
    105  1.2  riastrad }
    106  1.2  riastrad 
    107  1.2  riastrad static inline void
    108  1.2  riastrad trace_i915_gem_object_unbind(struct drm_i915_gem_object *obj __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_request_add(struct intel_ring_buffer *ring __unused,
    114  1.2  riastrad     uint32_t seqno __unused)
    115  1.2  riastrad {
    116  1.2  riastrad }
    117  1.2  riastrad 
    118  1.2  riastrad static inline void
    119  1.2  riastrad trace_i915_gem_request_complete(struct intel_ring_buffer *ring __unused,
    120  1.2  riastrad     uint32_t seqno __unused)
    121  1.2  riastrad {
    122  1.2  riastrad }
    123  1.2  riastrad 
    124  1.2  riastrad static inline void
    125  1.2  riastrad trace_i915_gem_request_retire(struct intel_ring_buffer *ring __unused,
    126  1.2  riastrad     uint32_t seqno __unused)
    127  1.2  riastrad {
    128  1.2  riastrad }
    129  1.2  riastrad 
    130  1.2  riastrad static inline void
    131  1.2  riastrad trace_i915_gem_request_wait_begin(struct intel_ring_buffer *ring __unused,
    132  1.2  riastrad     uint32_t seqno __unused)
    133  1.2  riastrad {
    134  1.2  riastrad }
    135  1.2  riastrad 
    136  1.2  riastrad static inline void
    137  1.2  riastrad trace_i915_gem_request_wait_end(struct intel_ring_buffer *ring __unused,
    138  1.2  riastrad     uint32_t seqno __unused)
    139  1.2  riastrad {
    140  1.2  riastrad }
    141  1.2  riastrad 
    142  1.2  riastrad static inline void
    143  1.2  riastrad trace_i915_gem_ring_dispatch(struct intel_ring_buffer *ring __unused,
    144  1.2  riastrad     uint32_t seqno __unused, uint32_t flags __unused)
    145  1.2  riastrad {
    146  1.2  riastrad }
    147  1.2  riastrad 
    148  1.2  riastrad static inline void
    149  1.2  riastrad trace_i915_gem_ring_flush(struct intel_ring_buffer *ring __unused,
    150  1.2  riastrad     uint32_t invalidate __unused, uint32_t flags __unused)
    151  1.2  riastrad {
    152  1.2  riastrad }
    153  1.2  riastrad 
    154  1.2  riastrad static inline void
    155  1.2  riastrad trace_i915_reg_rw(bool write __unused, uint32_t reg __unused,
    156  1.2  riastrad     uint64_t value __unused, size_t len __unused)
    157  1.2  riastrad {
    158  1.2  riastrad }
    159  1.2  riastrad 
    160  1.2  riastrad static inline void
    161  1.2  riastrad trace_i915_ring_wait_begin(struct intel_ring_buffer *ring __unused)
    162  1.2  riastrad {
    163  1.2  riastrad }
    164  1.2  riastrad 
    165  1.2  riastrad static inline void
    166  1.2  riastrad trace_i915_ring_wait_end(struct intel_ring_buffer *ring __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_intel_gpu_freq_change(unsigned int freq __unused)
    172  1.2  riastrad {
    173  1.2  riastrad }
    174  1.2  riastrad 
    175  1.2  riastrad #endif  /* _I915_TRACE_H_ */
    176