Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: MIT */
0002 /*
0003  * Copyright © 2020 Intel Corporation
0004  */
0005 
0006 #ifndef __GEN2_ENGINE_CS_H__
0007 #define __GEN2_ENGINE_CS_H__
0008 
0009 #include <linux/types.h>
0010 
0011 struct i915_request;
0012 struct intel_engine_cs;
0013 
0014 int gen2_emit_flush(struct i915_request *rq, u32 mode);
0015 int gen4_emit_flush_rcs(struct i915_request *rq, u32 mode);
0016 int gen4_emit_flush_vcs(struct i915_request *rq, u32 mode);
0017 
0018 u32 *gen3_emit_breadcrumb(struct i915_request *rq, u32 *cs);
0019 u32 *gen5_emit_breadcrumb(struct i915_request *rq, u32 *cs);
0020 
0021 int i830_emit_bb_start(struct i915_request *rq,
0022                u64 offset, u32 len,
0023                unsigned int dispatch_flags);
0024 int gen3_emit_bb_start(struct i915_request *rq,
0025                u64 offset, u32 len,
0026                unsigned int dispatch_flags);
0027 int gen4_emit_bb_start(struct i915_request *rq,
0028                u64 offset, u32 length,
0029                unsigned int dispatch_flags);
0030 
0031 void gen2_irq_enable(struct intel_engine_cs *engine);
0032 void gen2_irq_disable(struct intel_engine_cs *engine);
0033 void gen3_irq_enable(struct intel_engine_cs *engine);
0034 void gen3_irq_disable(struct intel_engine_cs *engine);
0035 void gen5_irq_enable(struct intel_engine_cs *engine);
0036 void gen5_irq_disable(struct intel_engine_cs *engine);
0037 
0038 #endif /* __GEN2_ENGINE_CS_H__ */