DSS2: OMAP2/3 Display Subsystem driver
[pandora-kernel.git] / arch / arm / plat-omap / include / mach / vrfb.h
1 /*
2  * File: arch/arm/plat-omap/include/mach/vrfb.h
3  *
4  * VRFB
5  *
6  * Copyright (C) 2009 Nokia Corporation
7  * Author: Tomi Valkeinen <tomi.valkeinen@nokia.com>
8  *
9  * This program is free software; you can redistribute it and/or modify it
10  * under the terms of the GNU General Public License as published by the
11  * Free Software Foundation; either version 2 of the License, or (at your
12  * option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful, but
15  * WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17  * General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License along
20  * with this program; if not, write to the Free Software Foundation, Inc.,
21  * 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
22  */
23
24 #ifndef __VRFB_H
25 #define __VRFB_H
26
27 #define OMAP_VRFB_LINE_LEN 2048
28
29 struct vrfb
30 {
31         u8 context;
32         void __iomem *vaddr[4];
33         unsigned long paddr[4];
34         u16 xoffset;
35         u16 yoffset;
36         u8 bytespp;
37 };
38
39 extern int omap_vrfb_request_ctx(struct vrfb *vrfb);
40 extern void omap_vrfb_release_ctx(struct vrfb *vrfb);
41 extern void omap_vrfb_adjust_size(u16 *width, u16 *height,
42                 u8 bytespp);
43 extern void omap_vrfb_setup(struct vrfb *vrfb, unsigned long paddr,
44                 u16 width, u16 height,
45                 u8 bytespp);
46
47 #endif /* __VRFB_H */