Laurent Pinchart | 4bf8e19 | 2013-06-19 13:54:11 +0200 | [diff] [blame] | 1 | /* |
| 2 | * rcar_du_kms.h -- R-Car Display Unit Mode Setting |
| 3 | * |
Laurent Pinchart | 36d5046 | 2014-02-06 18:13:52 +0100 | [diff] [blame] | 4 | * Copyright (C) 2013-2014 Renesas Electronics Corporation |
Laurent Pinchart | 4bf8e19 | 2013-06-19 13:54:11 +0200 | [diff] [blame] | 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_KMS_H__ |
| 15 | #define __RCAR_DU_KMS_H__ |
| 16 | |
| 17 | #include <linux/types.h> |
| 18 | |
Laurent Pinchart | 6978f12 | 2013-06-15 15:02:12 +0200 | [diff] [blame] | 19 | struct drm_file; |
| 20 | struct drm_device; |
| 21 | struct drm_mode_create_dumb; |
Laurent Pinchart | 4bf8e19 | 2013-06-19 13:54:11 +0200 | [diff] [blame] | 22 | struct rcar_du_device; |
| 23 | |
| 24 | struct rcar_du_format_info { |
| 25 | u32 fourcc; |
| 26 | unsigned int bpp; |
| 27 | unsigned int planes; |
| 28 | unsigned int pnmr; |
| 29 | unsigned int edf; |
| 30 | }; |
| 31 | |
Laurent Pinchart | 4bf8e19 | 2013-06-19 13:54:11 +0200 | [diff] [blame] | 32 | const struct rcar_du_format_info *rcar_du_format_info(u32 fourcc); |
| 33 | |
Laurent Pinchart | 4bf8e19 | 2013-06-19 13:54:11 +0200 | [diff] [blame] | 34 | int rcar_du_modeset_init(struct rcar_du_device *rcdu); |
| 35 | |
Laurent Pinchart | 59e3264 | 2013-07-04 20:05:51 +0200 | [diff] [blame] | 36 | int rcar_du_dumb_create(struct drm_file *file, struct drm_device *dev, |
| 37 | struct drm_mode_create_dumb *args); |
| 38 | |
Laurent Pinchart | 4bf8e19 | 2013-06-19 13:54:11 +0200 | [diff] [blame] | 39 | #endif /* __RCAR_DU_KMS_H__ */ |