linux/drivers/gpu/drm/rcar-du/rcar_du_encoder.h
<<
>>
Prefs
   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;
  22struct rcar_du_lvdsenc;
  23
  24struct rcar_du_encoder {
  25        struct drm_encoder base;
  26        enum rcar_du_output output;
  27        struct rcar_du_connector *connector;
  28        struct rcar_du_lvdsenc *lvds;
  29};
  30
  31#define to_rcar_encoder(e) \
  32        container_of(e, struct rcar_du_encoder, base)
  33
  34#define rcar_encoder_to_drm_encoder(e)  (&(e)->base)
  35
  36struct rcar_du_connector {
  37        struct drm_connector connector;
  38        struct rcar_du_encoder *encoder;
  39        struct drm_panel *panel;
  40};
  41
  42#define to_rcar_connector(c) \
  43        container_of(c, struct rcar_du_connector, connector)
  44
  45int rcar_du_encoder_init(struct rcar_du_device *rcdu,
  46                         enum rcar_du_output output,
  47                         struct device_node *enc_node,
  48                         struct device_node *con_node);
  49
  50#endif /* __RCAR_DU_ENCODER_H__ */
  51