blob: f104d2d7db0d451f7ed5b8a99dc4f6a22b506008 [file] [log] [blame]
Chirayu Desai0a336cc2012-07-12 14:37:05 +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 _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*/
24struct secfb_user_window {
25 int x;
26 int y;
27};
28
Petr Havlenac9288142012-11-15 14:07:10 +053029struct 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 Desai0a336cc2012-07-12 14:37:05 +053041/*
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 Havlenac9288142012-11-15 14:07:10 +053049#define S3CFB_GET_CURR_FB_INFO _IOR ('F', 305, struct s3cfb_next_info)
Michael Brehm3c938a72012-09-15 02:03:39 -050050#define S3CFB_WAIT_FOR_VSYNC _IOR ('F', 311, uint64_t)
Chirayu Desai0a336cc2012-07-12 14:37:05 +053051
Petr Havlenac9288142012-11-15 14:07:10 +053052#define DEFAULT_LCD_WIDTH (600)
53#define DEFAULT_LCD_HEIGHT (1024)
Chirayu Desai0a336cc2012-07-12 14:37:05 +053054#define DEFAULT_LCD_BPP (32)
55
56/***************** LCD frame buffer *****************/
Petr Havlenac9288142012-11-15 14:07:10 +053057#define S3CFB_SIZE 5
Chirayu Desai0a336cc2012-07-12 14:37:05 +053058#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