#include <drm/drm_atomic.h>
#include <drm/drm_atomic_helper.h>
#include <drm/drm_crtc.h>
#include <drm/drm_framebuffer.h>
#include <drm/drm_fourcc.h>
#include <drm/drm_gem_framebuffer_helper.h>
#include <drm/drm_probe_helper.h>
#include <drm/exynos_drm.h>
#include "exynos_drm_crtc.h"
#include "exynos_drm_drv.h"
#include "exynos_drm_fb.h"
#include "exynos_drm_fbdev.h"
static int check_fb_gem_memory_type(struct drm_device *drm_dev,
struct exynos_drm_gem *exynos_gem)
{ … }
static const struct drm_framebuffer_funcs exynos_drm_fb_funcs = …;
struct drm_framebuffer *
exynos_drm_framebuffer_init(struct drm_device *dev,
const struct drm_mode_fb_cmd2 *mode_cmd,
struct exynos_drm_gem **exynos_gem,
int count)
{ … }
static struct drm_framebuffer *
exynos_user_fb_create(struct drm_device *dev, struct drm_file *file_priv,
const struct drm_mode_fb_cmd2 *mode_cmd)
{ … }
dma_addr_t exynos_drm_fb_dma_addr(struct drm_framebuffer *fb, int index)
{ … }
static struct drm_mode_config_helper_funcs exynos_drm_mode_config_helpers = …;
static const struct drm_mode_config_funcs exynos_drm_mode_config_funcs = …;
void exynos_drm_mode_config_init(struct drm_device *dev)
{ … }