Linux Audio

Check our new training course

Loading...
v5.4
 1/* SPDX-License-Identifier: GPL-2.0+ */
 2/*
 3 * rcar_du_kms.h  --  R-Car Display Unit Mode Setting
 4 *
 5 * Copyright (C) 2013-2014 Renesas Electronics Corporation
 6 *
 7 * Contact: Laurent Pinchart (laurent.pinchart@ideasonboard.com)
 8 */
 9
10#ifndef __RCAR_DU_KMS_H__
11#define __RCAR_DU_KMS_H__
12
13#include <linux/types.h>
14
 
15struct drm_file;
16struct drm_device;
 
17struct drm_mode_create_dumb;
18struct rcar_du_device;
 
19
20struct rcar_du_format_info {
21	u32 fourcc;
22	u32 v4l2;
23	unsigned int bpp;
24	unsigned int planes;
 
25	unsigned int pnmr;
26	unsigned int edf;
27};
28
29const struct rcar_du_format_info *rcar_du_format_info(u32 fourcc);
30
31int rcar_du_modeset_init(struct rcar_du_device *rcdu);
32
33int rcar_du_dumb_create(struct drm_file *file, struct drm_device *dev,
34			struct drm_mode_create_dumb *args);
 
 
 
 
35
36#endif /* __RCAR_DU_KMS_H__ */
v6.2
 1/* SPDX-License-Identifier: GPL-2.0+ */
 2/*
 3 * R-Car Display Unit Mode Setting
 4 *
 5 * Copyright (C) 2013-2014 Renesas Electronics Corporation
 6 *
 7 * Contact: Laurent Pinchart (laurent.pinchart@ideasonboard.com)
 8 */
 9
10#ifndef __RCAR_DU_KMS_H__
11#define __RCAR_DU_KMS_H__
12
13#include <linux/types.h>
14
15struct dma_buf_attachment;
16struct drm_file;
17struct drm_device;
18struct drm_gem_object;
19struct drm_mode_create_dumb;
20struct rcar_du_device;
21struct sg_table;
22
23struct rcar_du_format_info {
24	u32 fourcc;
25	u32 v4l2;
26	unsigned int bpp;
27	unsigned int planes;
28	unsigned int hsub;
29	unsigned int pnmr;
30	unsigned int edf;
31};
32
33const struct rcar_du_format_info *rcar_du_format_info(u32 fourcc);
34
35int rcar_du_modeset_init(struct rcar_du_device *rcdu);
36
37int rcar_du_dumb_create(struct drm_file *file, struct drm_device *dev,
38			struct drm_mode_create_dumb *args);
39
40struct drm_gem_object *rcar_du_gem_prime_import_sg_table(struct drm_device *dev,
41				struct dma_buf_attachment *attach,
42				struct sg_table *sgt);
43
44#endif /* __RCAR_DU_KMS_H__ */