diff options
author | Alan Cox | 2011-07-05 16:41:11 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2011-07-05 17:20:42 +0200 |
commit | 657839ba30a32e3317772493312812e3d80d7b4a (patch) | |
tree | 5fc6cb981c5139102cfd8155581cc090bef6b1fe /drivers/staging/gma500/framebuffer.h | |
parent | gma500: tidy the framebuffer fixme and oddments (diff) | |
download | kernel-qcow2-linux-657839ba30a32e3317772493312812e3d80d7b4a.tar.gz kernel-qcow2-linux-657839ba30a32e3317772493312812e3d80d7b4a.tar.xz kernel-qcow2-linux-657839ba30a32e3317772493312812e3d80d7b4a.zip |
gma500: move framebuffer file
The framebuffer code is now clean of device specific code, and passes
checkpatch. Move it to its new name
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/gma500/framebuffer.h')
-rw-r--r-- | drivers/staging/gma500/framebuffer.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/drivers/staging/gma500/framebuffer.h b/drivers/staging/gma500/framebuffer.h new file mode 100644 index 000000000000..9416a2138f64 --- /dev/null +++ b/drivers/staging/gma500/framebuffer.h @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2008-2011, 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 _FRAMEBUFFER_H_ +#define _FRAMEBUFFER_H_ + +#include <linux/version.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 gtt_range *gtt; + bool vm_map; /* True if we must undo a vm_map_ram */ +}; + +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 + |