summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/gma500/framebuffer.h
blob: a8a0b117b661a14eabe8d57fdf389bfef2d8b2ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (c) 2008-2011, Intel Corporation
 *
 * Authors:
 *      Eric Anholt <eric@anholt.net>
 */

#ifndef _FRAMEBUFFER_H_
#define _FRAMEBUFFER_H_

#include <drm/drmP.h>
#include <drm/drm_fb_helper.h>

#include "psb_drv.h"

struct psb_framebuffer {
	struct drm_framebuffer base;
	struct address_space *addr_space;
	struct fb_info *fbdev;
};

struct psb_fbdev {
	struct drm_fb_helper psb_fb_helper; /* must be first */
	struct psb_framebuffer pfb;
};

#define to_psb_fb(x) container_of(x, struct psb_framebuffer, base)

extern int gma_connector_clones(struct drm_device *dev, int type_mask);

#endif