2 * rcar_du_encoder.h -- R-Car Display Unit Encoder
4 * Copyright (C) 2013-2014 Renesas Electronics Corporation
6 * Contact: Laurent Pinchart (laurent.pinchart@ideasonboard.com)
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.
14 #ifndef __RCAR_DU_ENCODER_H__
15 #define __RCAR_DU_ENCODER_H__
17 #include <drm/drm_crtc.h>
18 #include <drm/drm_encoder.h>
21 struct rcar_du_device
;
23 struct rcar_du_encoder
{
24 struct drm_encoder base
;
25 enum rcar_du_output output
;
28 #define to_rcar_encoder(e) \
29 container_of(e, struct rcar_du_encoder, base)
31 #define rcar_encoder_to_drm_encoder(e) (&(e)->base)
33 int 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
);
38 #endif /* __RCAR_DU_ENCODER_H__ */