aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h
diff options
context:
space:
mode:
authorEric Bernstein <eric.bernstein@amd.com>2017-09-11 16:56:51 -0400
committerAlex Deucher <alexander.deucher@amd.com>2017-10-21 16:40:45 -0400
commit7f4a7253b112c9ed21022e25c7a740d824c56619 (patch)
treeeba37577e4a879bc05ebc2c370144c08728424cf /drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h
parentdrm/amd/display: fix multi-display on CZ (diff)
downloadlinux-dev-7f4a7253b112c9ed21022e25c7a740d824c56619.tar.xz
linux-dev-7f4a7253b112c9ed21022e25c7a740d824c56619.zip
drm/amd/display: update mpc add/remove functions
Signed-off-by: Eric Bernstein <eric.bernstein@amd.com> Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com> Acked-by: Harry Wentland <Harry.Wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h')
-rw-r--r--drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h b/drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h
index 4bbcff48acc8..2d3de5b68e34 100644
--- a/drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h
+++ b/drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h
@@ -29,8 +29,9 @@
#include "opp.h"
struct mpcc_cfg {
- struct mem_input *mi;
- struct output_pixel_processor *opp;
+ int dpp_id;
+ int opp_id;
+ struct mpc_tree_cfg *tree_cfg;
unsigned int z_index;
struct tg_color black_color;
@@ -44,9 +45,10 @@ struct mpc {
};
struct mpc_funcs {
- void (*add)(struct mpc *mpc, struct mpcc_cfg *cfg);
+ int (*add)(struct mpc *mpc, struct mpcc_cfg *cfg);
void (*remove)(struct mpc *mpc,
- struct output_pixel_processor *opp,
+ struct mpc_tree_cfg *tree_cfg,
+ int opp_id,
int mpcc_inst);
void (*wait_for_idle)(struct mpc *mpc, int id);
};