blob: 761a6a97e5b27ee270df48004632fe8dbb81ece0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
/*
* Copyright (c) 2019, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/
#ifndef _EDRM_CRTC_H_
#define _EDRM_CRTC_H_
#include <drm/drmP.h>
#include <drm/drm_crtc.h>
#include "edrm_kms.h"
struct edrm_crtc {
struct drm_crtc base;
u32 sspp_flush_mask;
int display_id;
};
#define to_edrm_crtc(x) container_of(x, struct edrm_crtc, base)
struct drm_crtc *edrm_crtc_init(struct drm_device *dev,
struct msm_edrm_display *display, struct drm_plane *primary_plane);
/**
* Helper function to setup the control path
* @crtc: Pointer to drm crtc object
*/
void edrm_crtc_postinit(struct drm_crtc *crtc);
/**
* edrm_crtc_commit_kickoff - trigger kickoff of the commit for this crtc
* @crtc: Pointer to drm crtc object
*/
void edrm_crtc_commit_kickoff(struct drm_crtc *crtc);
/**
* edrm_crtc_complete_commit - callback to prepare for output fences
* @crtc: Pointer to drm crtc object
* @old_state: Pointer to drm crtc old state object
*/
void edrm_crtc_complete_commit(struct drm_crtc *crtc,
struct drm_crtc_state *old_state);
void edrm_crtc_prepare_commit(struct drm_crtc *crtc,
struct drm_crtc_state *old_state);
/**
* edrm_crtc_destroy - free up edrm_crtc structure
* @crtc: Pointer to drm crtc object
*/
void edrm_crtc_destroy(struct drm_crtc *crtc);
#endif /* _EDRM_ENCODER_H_ */
|