Petr Havlena | c928814 | 2012-11-15 14:07:10 +0530 | [diff] [blame] | 1 | /* |
| 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 |
| 27 | extern "C" { |
| 28 | #endif |
| 29 | |
| 30 | int fb_open(int win); |
| 31 | int fb_close(int fp); |
| 32 | int fb_on(int fp); |
| 33 | int fb_off(int fp); |
| 34 | int fb_off_all(void); |
| 35 | char* fb_init_display(int fp, int width, int height, |
| 36 | int left_x, int top_y, int bpp); |
| 37 | int fb_ioctl(int fp, __u32 cmd, void *arg); |
| 38 | char* fb_mmap(int fp, __u32 size); |
| 39 | int fb_get_fscreeninfo(int fp, struct fb_fix_screeninfo *fix); |
| 40 | int fb_get_vscreeninfo(int fp, struct fb_var_screeninfo *var); |
| 41 | int fb_put_vscreeninfo(int fp, struct fb_var_screeninfo *var); |
| 42 | |
| 43 | #if 0 |
| 44 | int simple_draw(char *dest, const char *src, |
| 45 | int img_width, struct fb_var_screeninfo *var); |
| 46 | int 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__ */ |