include: replace linux/module.h with "struct module" wherever possible
[linux-2.6/next.git] / drivers / staging / gma500 / framebuffer.h
blobd1b2289447f0b04121bbc1c0cd8db2b6d2016391
1 /*
2 * Copyright (c) 2008-2011, Intel Corporation
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License,
6 * version 2, as published by the Free Software Foundation.
8 * This program is distributed in the hope it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11 * more details.
13 * You should have received a copy of the GNU General Public License along with
14 * this program; if not, write to the Free Software Foundation, Inc.,
15 * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
17 * Authors:
18 * Eric Anholt <eric@anholt.net>
22 #ifndef _FRAMEBUFFER_H_
23 #define _FRAMEBUFFER_H_
25 #include <drm/drmP.h>
26 #include <drm/drm_fb_helper.h>
28 #include "psb_drv.h"
30 struct psb_framebuffer {
31 struct drm_framebuffer base;
32 struct address_space *addr_space;
33 struct fb_info *fbdev;
34 struct gtt_range *gtt;
35 bool vm_map; /* True if we must undo a vm_map_ram */
38 struct psb_fbdev {
39 struct drm_fb_helper psb_fb_helper;
40 struct psb_framebuffer pfb;
43 #define to_psb_fb(x) container_of(x, struct psb_framebuffer, base)
45 extern int psb_intel_connector_clones(struct drm_device *dev, int type_mask);
47 #endif