linux/drivers/gpu/drm/i915/gvt/execlist.c

/*
 * Copyright(c) 2011-2016 Intel Corporation. All rights reserved.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"),
 * to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 * and/or sell copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice (including the next
 * paragraph) shall be included in all copies or substantial portions of the
 * Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 *
 * Authors:
 *    Zhiyuan Lv <[email protected]>
 *    Zhi Wang <[email protected]>
 *
 * Contributors:
 *    Min He <[email protected]>
 *    Bing Niu <[email protected]>
 *    Ping Gao <[email protected]>
 *    Tina Zhang <[email protected]>
 *
 */

#include "i915_drv.h"
#include "gvt.h"

#define _EL_OFFSET_STATUS
#define _EL_OFFSET_STATUS_BUF
#define _EL_OFFSET_STATUS_PTR

#define execlist_ring_mmio(e, offset)

#define valid_context(ctx)
#define same_context(a, b)

static int context_switch_events[] =;

static int to_context_switch_event(const struct intel_engine_cs *engine)
{}

static void switch_virtual_execlist_slot(struct intel_vgpu_execlist *execlist)
{}

static void emulate_execlist_status(struct intel_vgpu_execlist *execlist)
{}

static void emulate_csb_update(struct intel_vgpu_execlist *execlist,
			       struct execlist_context_status_format *status,
			       bool trigger_interrupt_later)
{}

static int emulate_execlist_ctx_schedule_out(
		struct intel_vgpu_execlist *execlist,
		struct execlist_ctx_descriptor_format *ctx)
{}

static struct intel_vgpu_execlist_slot *get_next_execlist_slot(
		struct intel_vgpu_execlist *execlist)
{}

static int emulate_execlist_schedule_in(struct intel_vgpu_execlist *execlist,
		struct execlist_ctx_descriptor_format ctx[2])
{}

#define get_desc_from_elsp_dwords(ed, i)

static int prepare_execlist_workload(struct intel_vgpu_workload *workload)
{}

static int complete_execlist_workload(struct intel_vgpu_workload *workload)
{}

static int submit_context(struct intel_vgpu *vgpu,
			  const struct intel_engine_cs *engine,
			  struct execlist_ctx_descriptor_format *desc,
			  bool emulate_schedule_in)
{}

int intel_vgpu_submit_execlist(struct intel_vgpu *vgpu,
			       const struct intel_engine_cs *engine)
{}

static void init_vgpu_execlist(struct intel_vgpu *vgpu,
			       const struct intel_engine_cs *engine)
{}

static void clean_execlist(struct intel_vgpu *vgpu,
			   intel_engine_mask_t engine_mask)
{}

static void reset_execlist(struct intel_vgpu *vgpu,
			   intel_engine_mask_t engine_mask)
{}

static int init_execlist(struct intel_vgpu *vgpu,
			 intel_engine_mask_t engine_mask)
{}

const struct intel_vgpu_submission_ops intel_vgpu_execlist_submission_ops =;