hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
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
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Copyright 2019 NXP.
 */
 
#ifndef _DCSS_KMS_H_
#define _DCSS_KMS_H_
 
#include <drm/drm_encoder.h>
 
struct dcss_plane {
   struct drm_plane base;
 
   int ch_num;
};
 
struct dcss_crtc {
   struct drm_crtc        base;
   struct drm_crtc_state    *state;
 
   struct dcss_plane    *plane[3];
 
   int            irq;
 
   bool disable_ctxld_kick_irq;
};
 
struct dcss_kms_dev {
   struct drm_device base;
   struct dcss_crtc crtc;
   struct drm_encoder encoder;
   struct drm_connector *connector;
};
 
struct dcss_kms_dev *dcss_kms_attach(struct dcss_dev *dcss);
void dcss_kms_detach(struct dcss_kms_dev *kms);
int dcss_crtc_init(struct dcss_crtc *crtc, struct drm_device *drm);
void dcss_crtc_deinit(struct dcss_crtc *crtc, struct drm_device *drm);
struct dcss_plane *dcss_plane_init(struct drm_device *drm,
                  unsigned int possible_crtcs,
                  enum drm_plane_type type,
                  unsigned int zpos);
 
#endif