aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/gma500/psb_fb.h
blob: b4fab9262db5df16685b263e96ff84a52ac8b00c (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*
 * Copyright (c) 2008, Intel Corporation
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms and conditions of the GNU General Public License,
 * version 2, as published by the Free Software Foundation.
 *
 * This program is distributed in the hope it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 * more details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
 *
 * Authors:
 *      Eric Anholt <eric@anholt.net>
 *
 */

#ifndef _PSB_FB_H_
#define _PSB_FB_H_

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

#include "psb_drv.h"

/*IMG Headers*/
/*#include "servicesint.h"*/

struct psb_framebuffer {
	struct drm_framebuffer base;
	struct address_space *addr_space;
	struct ttm_buffer_object *bo;
	struct fb_info * fbdev;
	/* struct ttm_bo_kmap_obj kmap; */
	void *pvrBO;	/* FIXME: sort this out */
	void * hKernelMemInfo;
	uint32_t size;
	uint32_t offset;
};

struct psb_fbdev {
	struct drm_fb_helper psb_fb_helper;
	struct psb_framebuffer * pfb;
};


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


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


#endif