4 * Copyright (C) 2009 Nokia Corporation
5 * Author: Tomi Valkeinen <tomi.valkeinen@nokia.com>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 #ifndef __OMAP_VRFB_H__
22 #define __OMAP_VRFB_H__
24 #define OMAP_VRFB_LINE_LEN 2048
28 void __iomem
*vaddr
[4];
29 unsigned long paddr
[4];
38 #ifdef CONFIG_OMAP2_VRFB
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
,
43 extern u32
omap_vrfb_min_phys_size(u16 width
, u16 height
, u8 bytespp
);
44 extern u16
omap_vrfb_max_height(u32 phys_size
, u16 width
, u8 bytespp
);
45 extern void omap_vrfb_setup(struct vrfb
*vrfb
, unsigned long paddr
,
46 u16 width
, u16 height
,
47 unsigned bytespp
, bool yuv_mode
);
48 extern int omap_vrfb_map_angle(struct vrfb
*vrfb
, u16 height
, u8 rot
);
49 extern void omap_vrfb_restore_context(void);
52 static inline int omap_vrfb_request_ctx(struct vrfb
*vrfb
) { return 0; }
53 static inline void omap_vrfb_release_ctx(struct vrfb
*vrfb
) {}
54 static inline void omap_vrfb_adjust_size(u16
*width
, u16
*height
,
56 static inline u32
omap_vrfb_min_phys_size(u16 width
, u16 height
, u8 bytespp
)
58 static inline u16
omap_vrfb_max_height(u32 phys_size
, u16 width
, u8 bytespp
)
60 static inline void omap_vrfb_setup(struct vrfb
*vrfb
, unsigned long paddr
,
61 u16 width
, u16 height
, unsigned bytespp
, bool yuv_mode
) {}
62 static inline int omap_vrfb_map_angle(struct vrfb
*vrfb
, u16 height
, u8 rot
)
64 static inline void omap_vrfb_restore_context(void) {}