PM / sleep: Asynchronous threads for suspend_noirq
[linux/fpc-iii.git] / drivers / gpu / drm / rcar-du / rcar_du_encoder.h
blob0e5a65e45d0e598d338399b838d1e60d2291f97e
1 /*
2 * rcar_du_encoder.h -- R-Car Display Unit Encoder
4 * Copyright (C) 2013 Renesas 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 <linux/platform_data/rcar-du.h>
19 #include <drm/drm_crtc.h>
21 struct rcar_du_device;
22 struct rcar_du_lvdsenc;
24 struct rcar_du_encoder {
25 struct drm_encoder encoder;
26 enum rcar_du_output output;
27 struct rcar_du_lvdsenc *lvds;
30 #define to_rcar_encoder(e) \
31 container_of(e, struct rcar_du_encoder, encoder)
33 struct rcar_du_connector {
34 struct drm_connector connector;
35 struct rcar_du_encoder *encoder;
38 #define to_rcar_connector(c) \
39 container_of(c, struct rcar_du_connector, connector)
41 struct drm_encoder *
42 rcar_du_connector_best_encoder(struct drm_connector *connector);
44 int rcar_du_encoder_init(struct rcar_du_device *rcdu,
45 enum rcar_du_encoder_type type,
46 enum rcar_du_output output,
47 const struct rcar_du_encoder_data *data);
49 #endif /* __RCAR_DU_ENCODER_H__ */