Chirayu Desai | 0a336cc | 2012-07-12 14:37:05 +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 _SEC_FB_LCD_ |
| 18 | #define _SEC_FB_LCD_ |
| 19 | |
| 20 | /* |
| 21 | * S T R U C T U R E S F O R C U S T O M I O C T L S |
| 22 | * |
| 23 | */ |
| 24 | struct secfb_user_window { |
| 25 | int x; |
| 26 | int y; |
| 27 | }; |
| 28 | |
Petr Havlena | c928814 | 2012-11-15 14:07:10 +0530 | [diff] [blame] | 29 | struct s3cfb_next_info { |
| 30 | unsigned int phy_start_addr; |
| 31 | unsigned int xres; /* visible resolution*/ |
| 32 | unsigned int yres; |
| 33 | unsigned int xres_virtual; /* virtual resolution*/ |
| 34 | unsigned int yres_virtual; |
| 35 | unsigned int xoffset; /* offset from virtual to visible */ |
| 36 | unsigned int yoffset; /* resolution */ |
| 37 | unsigned int lcd_offset_x; |
| 38 | unsigned int lcd_offset_y; |
| 39 | }; |
| 40 | |
Chirayu Desai | 0a336cc | 2012-07-12 14:37:05 +0530 | [diff] [blame] | 41 | /* |
| 42 | * C U S T O M I O C T L S |
| 43 | * |
| 44 | */ |
| 45 | |
| 46 | #define FBIO_WAITFORVSYNC _IO ('F', 32) |
| 47 | #define SECFB_WIN_POSITION _IOW ('F', 203, struct secfb_user_window) |
| 48 | #define S3CFB_SET_VSYNC_INT _IOW ('F', 206, uint32_t) |
Petr Havlena | c928814 | 2012-11-15 14:07:10 +0530 | [diff] [blame] | 49 | #define S3CFB_GET_CURR_FB_INFO _IOR ('F', 305, struct s3cfb_next_info) |
Michael Brehm | 3c938a7 | 2012-09-15 02:03:39 -0500 | [diff] [blame] | 50 | #define S3CFB_WAIT_FOR_VSYNC _IOR ('F', 311, uint64_t) |
Chirayu Desai | 0a336cc | 2012-07-12 14:37:05 +0530 | [diff] [blame] | 51 | |
Petr Havlena | c928814 | 2012-11-15 14:07:10 +0530 | [diff] [blame] | 52 | #define DEFAULT_LCD_WIDTH (600) |
| 53 | #define DEFAULT_LCD_HEIGHT (1024) |
Chirayu Desai | 0a336cc | 2012-07-12 14:37:05 +0530 | [diff] [blame] | 54 | #define DEFAULT_LCD_BPP (32) |
| 55 | |
| 56 | /***************** LCD frame buffer *****************/ |
Petr Havlena | c928814 | 2012-11-15 14:07:10 +0530 | [diff] [blame] | 57 | #define S3CFB_SIZE 5 |
Chirayu Desai | 0a336cc | 2012-07-12 14:37:05 +0530 | [diff] [blame] | 58 | #define FB0_NAME "/dev/fb0" |
| 59 | #define FB1_NAME "/dev/fb1" |
| 60 | #define FB2_NAME "/dev/fb2" |
| 61 | #define FB3_NAME "/dev/fb3" |
| 62 | #define FB4_NAME "/dev/fb4" |
| 63 | |
| 64 | #endif |