Inki Dae | 1c248b7 | 2011-10-04 19:19:01 +0900 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2011 Samsung Electronics Co., Ltd. |
| 3 | * Authors: |
| 4 | * Inki Dae <inki.dae@samsung.com> |
| 5 | * Joonyoung Shim <jy0922.shim@samsung.com> |
| 6 | * Seung-Woo Kim <sw0312.kim@samsung.com> |
| 7 | * |
Inki Dae | d81aecb | 2012-12-18 02:30:17 +0900 | [diff] [blame] | 8 | * This program is free software; you can redistribute it and/or modify it |
| 9 | * under the terms of the GNU General Public License as published by the |
| 10 | * Free Software Foundation; either version 2 of the License, or (at your |
| 11 | * option) any later version. |
Inki Dae | 1c248b7 | 2011-10-04 19:19:01 +0900 | [diff] [blame] | 12 | */ |
| 13 | |
| 14 | #ifndef _EXYNOS_DRM_FB_H_ |
| 15 | #define _EXYNOS_DRM_FB_H |
| 16 | |
Joonyoung Shim | e1533c0 | 2011-12-13 14:46:57 +0900 | [diff] [blame] | 17 | struct drm_framebuffer * |
| 18 | exynos_drm_framebuffer_init(struct drm_device *dev, |
| 19 | struct drm_mode_fb_cmd2 *mode_cmd, |
| 20 | struct drm_gem_object *obj); |
Inki Dae | 1c248b7 | 2011-10-04 19:19:01 +0900 | [diff] [blame] | 21 | |
Seung-Woo Kim | 229d353 | 2011-12-15 14:36:22 +0900 | [diff] [blame] | 22 | /* get memory information of a drm framebuffer */ |
| 23 | struct exynos_drm_gem_buf *exynos_drm_fb_buffer(struct drm_framebuffer *fb, |
| 24 | int index); |
| 25 | |
Inki Dae | 1c248b7 | 2011-10-04 19:19:01 +0900 | [diff] [blame] | 26 | void exynos_drm_mode_config_init(struct drm_device *dev); |
| 27 | |
Inki Dae | 01ed812 | 2012-08-20 20:05:56 +0900 | [diff] [blame] | 28 | /* set a buffer count to drm framebuffer. */ |
| 29 | void exynos_drm_fb_set_buf_cnt(struct drm_framebuffer *fb, |
| 30 | unsigned int cnt); |
| 31 | |
| 32 | /* get a buffer count to drm framebuffer. */ |
| 33 | unsigned int exynos_drm_fb_get_buf_cnt(struct drm_framebuffer *fb); |
| 34 | |
Inki Dae | 1c248b7 | 2011-10-04 19:19:01 +0900 | [diff] [blame] | 35 | #endif |