]>
Commit | Line | Data |
---|---|---|
0bbce9eb | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
6978f123 LP |
2 | /* |
3 | * rcar_du_encoder.h -- R-Car Display Unit Encoder | |
4 | * | |
36d50464 | 5 | * Copyright (C) 2013-2014 Renesas Electronics Corporation |
6978f123 LP |
6 | * |
7 | * Contact: Laurent Pinchart (laurent.pinchart@ideasonboard.com) | |
6978f123 LP |
8 | */ |
9 | ||
10 | #ifndef __RCAR_DU_ENCODER_H__ | |
11 | #define __RCAR_DU_ENCODER_H__ | |
12 | ||
9338203c | 13 | #include <drm/drm_encoder.h> |
6978f123 LP |
14 | |
15 | struct rcar_du_device; | |
6978f123 LP |
16 | |
17 | struct rcar_du_encoder { | |
1d926114 | 18 | struct drm_encoder base; |
ef67a902 | 19 | enum rcar_du_output output; |
6978f123 LP |
20 | }; |
21 | ||
22 | #define to_rcar_encoder(e) \ | |
1d926114 | 23 | container_of(e, struct rcar_du_encoder, base) |
6978f123 | 24 | |
1d926114 | 25 | #define rcar_encoder_to_drm_encoder(e) (&(e)->base) |
4b96b70c | 26 | |
6978f123 | 27 | int rcar_du_encoder_init(struct rcar_du_device *rcdu, |
ef67a902 | 28 | enum rcar_du_output output, |
5aebc852 | 29 | struct device_node *enc_node); |
6978f123 LP |
30 | |
31 | #endif /* __RCAR_DU_ENCODER_H__ */ |