Linux Audio

Check our new training course

Loading...
v5.4
 1/* SPDX-License-Identifier: GPL-2.0+ */
 2/*
 3 * rcar_du_encoder.h  --  R-Car Display Unit Encoder
 4 *
 5 * Copyright (C) 2013-2014 Renesas Electronics Corporation
 6 *
 7 * Contact: Laurent Pinchart (laurent.pinchart@ideasonboard.com)
 
 
 
 
 
 8 */
 9
10#ifndef __RCAR_DU_ENCODER_H__
11#define __RCAR_DU_ENCODER_H__
12
 
13#include <drm/drm_encoder.h>
14
 
15struct rcar_du_device;
16
17struct rcar_du_encoder {
18	struct drm_encoder base;
19	enum rcar_du_output output;
20};
21
22#define to_rcar_encoder(e) \
23	container_of(e, struct rcar_du_encoder, base)
24
25#define rcar_encoder_to_drm_encoder(e)	(&(e)->base)
26
27int rcar_du_encoder_init(struct rcar_du_device *rcdu,
28			 enum rcar_du_output output,
29			 struct device_node *enc_node);
 
30
31#endif /* __RCAR_DU_ENCODER_H__ */
v4.17
 
 1/*
 2 * rcar_du_encoder.h  --  R-Car Display Unit Encoder
 3 *
 4 * Copyright (C) 2013-2014 Renesas Electronics Corporation
 5 *
 6 * Contact: Laurent Pinchart (laurent.pinchart@ideasonboard.com)
 7 *
 8 * This program is free software; you can redistribute it and/or modify
 9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 */
13
14#ifndef __RCAR_DU_ENCODER_H__
15#define __RCAR_DU_ENCODER_H__
16
17#include <drm/drm_crtc.h>
18#include <drm/drm_encoder.h>
19
20struct drm_panel;
21struct rcar_du_device;
22
23struct rcar_du_encoder {
24	struct drm_encoder base;
25	enum rcar_du_output output;
26};
27
28#define to_rcar_encoder(e) \
29	container_of(e, struct rcar_du_encoder, base)
30
31#define rcar_encoder_to_drm_encoder(e)	(&(e)->base)
32
33int rcar_du_encoder_init(struct rcar_du_device *rcdu,
34			 enum rcar_du_output output,
35			 struct device_node *enc_node,
36			 struct device_node *con_node);
37
38#endif /* __RCAR_DU_ENCODER_H__ */