blob: bb2f36c0de4385cad8bd4750dc0b1a8b59ee17e6 [file] [log] [blame]
Petr Havlenac9288142012-11-15 14:07:10 +05301/*
2 * Copyright@ Samsung Electronics Co. LTD
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef __FIMD_H__
18#define __FIMD_H__
19
20#include <linux/fb.h>
21
22#include <s5p_tvout.h>
23
24#define TOTAL_FB_NUM 5
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
30int fb_open(int win);
31int fb_close(int fp);
32int fb_on(int fp);
33int fb_off(int fp);
34int fb_off_all(void);
35char* fb_init_display(int fp, int width, int height,
36 int left_x, int top_y, int bpp);
37int fb_ioctl(int fp, __u32 cmd, void *arg);
38char* fb_mmap(int fp, __u32 size);
39int fb_get_fscreeninfo(int fp, struct fb_fix_screeninfo *fix);
40int fb_get_vscreeninfo(int fp, struct fb_var_screeninfo *var);
41int fb_put_vscreeninfo(int fp, struct fb_var_screeninfo *var);
42
43#if 0
44int simple_draw(char *dest, const char *src,
45 int img_width, struct fb_var_screeninfo *var);
46int draw(char *dest, const char *src,\
47 int img_width, struct fb_var_screeninfo *var);
48#endif
49
50#ifdef __cplusplus
51}
52#endif
53
54#endif /* __FIMD_H__ */