linux/drivers/gpu/drm/i915/gt/mock_engine.c

// SPDX-License-Identifier: MIT
/*
 * Copyright © 2016 Intel Corporation
 */

#include "gem/i915_gem_context.h"
#include "gt/intel_ring.h"

#include "i915_drv.h"
#include "intel_context.h"
#include "intel_engine_pm.h"

#include "mock_engine.h"
#include "selftests/mock_request.h"

static int mock_timeline_pin(struct intel_timeline *tl)
{}

static void mock_timeline_unpin(struct intel_timeline *tl)
{}

static struct i915_vma *create_ring_vma(struct i915_ggtt *ggtt, int size)
{}

static struct intel_ring *mock_ring(struct intel_engine_cs *engine)
{}

static void mock_ring_free(struct intel_ring *ring)
{}

static struct i915_request *first_request(struct mock_engine *engine)
{}

static void advance(struct i915_request *request)
{}

static void hw_delay_complete(struct timer_list *t)
{}

static void mock_context_unpin(struct intel_context *ce)
{}

static void mock_context_post_unpin(struct intel_context *ce)
{}

static void mock_context_destroy(struct kref *ref)
{}

static int mock_context_alloc(struct intel_context *ce)
{}

static int mock_context_pre_pin(struct intel_context *ce,
				struct i915_gem_ww_ctx *ww, void **unused)
{}

static int mock_context_pin(struct intel_context *ce, void *unused)
{}

static void mock_context_reset(struct intel_context *ce)
{}

static const struct intel_context_ops mock_context_ops =;

static int mock_request_alloc(struct i915_request *request)
{}

static int mock_emit_flush(struct i915_request *request,
			   unsigned int flags)
{}

static u32 *mock_emit_breadcrumb(struct i915_request *request, u32 *cs)
{}

static void mock_submit_request(struct i915_request *request)
{}

static void mock_add_to_engine(struct i915_request *rq)
{}

static void mock_remove_from_engine(struct i915_request *rq)
{}

static void mock_reset_prepare(struct intel_engine_cs *engine)
{}

static void mock_reset_rewind(struct intel_engine_cs *engine, bool stalled)
{}

static void mock_reset_cancel(struct intel_engine_cs *engine)
{}

static void mock_reset_finish(struct intel_engine_cs *engine)
{}

static void mock_engine_release(struct intel_engine_cs *engine)
{}

struct intel_engine_cs *mock_engine(struct drm_i915_private *i915,
				    const char *name,
				    int id)
{}

int mock_engine_init(struct intel_engine_cs *engine)
{}

void mock_engine_flush(struct intel_engine_cs *engine)
{}

void mock_engine_reset(struct intel_engine_cs *engine)
{}