2 * Copyright@ Samsung Electronics Co. LTD
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
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
24 struct s3cfb_user_window
{
29 struct s3cfb_user_plane_alpha
{
36 struct s3cfb_user_chroma
{
44 unsigned int phy_start_addr
;
45 unsigned int xres
; /* visible resolution*/
47 unsigned int xres_virtual
; /* virtual resolution*/
48 unsigned int yres_virtual
;
49 unsigned int xoffset
; /* offset from virtual to visible */
50 unsigned int yoffset
; /* resolution */
51 unsigned int lcd_offset_x
;
52 unsigned int lcd_offset_y
;
55 struct s3c_fb_user_ion_client
{
61 * C U S T O M I O C T L S
65 #define S3CFB_WIN_POSITION _IOW ('F', 203, struct s3cfb_user_window)
66 #define S3CFB_WIN_SET_PLANE_ALPHA _IOW ('F', 204, struct s3cfb_user_plane_alpha)
67 #define S3CFB_WIN_SET_CHROMA _IOW ('F', 205, struct s3cfb_user_chroma)
68 #define S3CFB_SET_VSYNC_INT _IOW ('F', 206, unsigned int)
69 #define S3CFB_SET_SUSPEND_FIFO _IOW ('F', 300, unsigned long)
70 #define S3CFB_SET_RESUME_FIFO _IOW ('F', 301, unsigned long)
71 #define S3CFB_GET_LCD_WIDTH _IOR ('F', 302, int)
72 #define S3CFB_GET_LCD_HEIGHT _IOR ('F', 303, int)
73 #define S3CFB_GET_FB_PHY_ADDR _IOR ('F', 310, unsigned int)
74 #define S3C_FB_GET_CURR_FB_INFO _IOR ('F', 305, s3c_fb_next_info_t)
75 #define S3CFB_GET_ION_USER_HANDLE _IOWR('F', 208, struct s3c_fb_user_ion_client)
77 /***************** LCD frame buffer *****************/
78 #define FB0_NAME "/dev/fb0"
79 #define FB1_NAME "/dev/fb1"
80 #define FB2_NAME "/dev/fb2"
81 #define FB3_NAME "/dev/fb3"
82 #define FB4_NAME "/dev/fb4"