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