/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) STMicroelectronics SA 2014 * Authors: Benjamin Gaignard <[email protected]> * Fabien Dessenne <[email protected]> * for STMicroelectronics. */ #ifndef _STI_COMPOSITOR_H_ #define _STI_COMPOSITOR_H_ #include <linux/clk.h> #include <linux/kernel.h> #include "sti_mixer.h" #include "sti_plane.h" #define WAIT_NEXT_VSYNC_MS … #define STI_MAX_MIXER … #define STI_MAX_VID … enum sti_compositor_subdev_type { … }; struct sti_compositor_subdev_descriptor { … }; /** * STI Compositor data structure * * @nb_subdev: number of subdevices supported by the compositor * @subdev_desc: subdev list description */ #define MAX_SUBDEV … struct sti_compositor_data { … }; /** * STI Compositor structure * * @dev: driver device * @regs: registers (main) * @data: device data * @clk_compo_main: clock for main compo * @clk_compo_aux: clock for aux compo * @clk_pix_main: pixel clock for main path * @clk_pix_aux: pixel clock for aux path * @rst_main: reset control of the main path * @rst_aux: reset control of the aux path * @mixer: array of mixers * @vid: array of vids * @vtg: array of vtgs * @vtg_vblank_nb: array of callbacks for VTG VSYNC notification */ struct sti_compositor { … }; void sti_compositor_debugfs_init(struct sti_compositor *compo, struct drm_minor *minor); #endif