~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/staging/gma500/psb_fb.h

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (c) 2008, Intel Corporation
 
3
 *
 
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.
 
7
 *
 
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.
 
12
 *
 
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.
 
16
 *
 
17
 * Authors:
 
18
 *      Eric Anholt <eric@anholt.net>
 
19
 *
 
20
 */
 
21
 
 
22
#ifndef _PSB_FB_H_
 
23
#define _PSB_FB_H_
 
24
 
 
25
#include <linux/version.h>
 
26
#include <drm/drmP.h>
 
27
#include <drm/drm_fb_helper.h>
 
28
 
 
29
#include "psb_drv.h"
 
30
 
 
31
struct psb_framebuffer {
 
32
        struct drm_framebuffer base;
 
33
        struct address_space *addr_space;
 
34
        struct fb_info *fbdev;
 
35
        struct gtt_range *gtt;
 
36
};
 
37
 
 
38
struct psb_fbdev {
 
39
        struct drm_fb_helper psb_fb_helper;
 
40
        struct psb_framebuffer *pfb;
 
41
};
 
42
 
 
43
 
 
44
#define to_psb_fb(x) container_of(x, struct psb_framebuffer, base)
 
45
 
 
46
extern int psb_intel_connector_clones(struct drm_device *dev, int type_mask);
 
47
 
 
48
#endif
 
49