xref: /aosp_15_r20/external/intel-media-driver/media_softlet/linux/common/os/i915/include/mos_bufmgr.h (revision ba62d9d3abf0e404f2022b4cd7a85e107f48596f)
1 /*
2  * Copyright © 2008-2023 Intel Corporation
3  *
4  * Permission is hereby granted, free of charge, to any person obtaining a
5  * copy of this software and associated documentation files (the "Software"),
6  * to deal in the Software without restriction, including without limitation
7  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8  * and/or sell copies of the Software, and to permit persons to whom the
9  * Software is furnished to do so, subject to the following conditions:
10  *
11  * The above copyright notice and this permission notice (including the next
12  * paragraph) shall be included in all copies or substantial portions of the
13  * Software.
14  *
15  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
18  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21  * IN THE SOFTWARE.
22  *
23  * Authors:
24  *    Eric Anholt <[email protected]>
25  *
26  */
27 
28 /**
29  * @file mos_bufmgr.h
30  *
31  * Public definitions of Intel i915 specific bufmgr functions.
32  */
33 
34 #ifndef MOS_BUFMGR_H
35 #define MOS_BUFMGR_H
36 
37 #include "mos_bufmgr_api.h"
38 #include "i915_drm.h"
39 
40 int mos_set_context_param_parallel(struct mos_linux_context *ctx,
41                          struct i915_engine_class_instance *ci,
42                          unsigned int count);
43 
44 int mos_set_context_param_load_balance(struct mos_linux_context *ctx,
45                          struct i915_engine_class_instance *ci,
46                          unsigned int count);
47 int mos_set_context_param_bond(struct mos_linux_context *ctx,
48                         struct i915_engine_class_instance master_ci,
49                         struct i915_engine_class_instance *bond_ci,
50                         unsigned int bond_count);
51 
52 int mos_get_context_param_sseu(struct mos_linux_context *ctx,
53                 struct drm_i915_gem_context_param_sseu *sseu);
54 int mos_set_context_param_sseu(struct mos_linux_context *ctx,
55                 struct drm_i915_gem_context_param_sseu sseu);
56 
57 #endif /* INTEL_BUFMGR_H */
58