summaryrefslogtreecommitdiff
path: root/include/linux/mvf-fb.h
blob: 836767697d7690897d7cef729c7ee405e257ed32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/*
 * Copyright 2012 Freescale Semiconductor, Inc.
 *
 *  Freescale DCU Frame Buffer device driver ioctls
 *
 * This program is free software; you can redistribute  it and/or modify it
 * under  the terms of  the GNU General  Public License as published by the
 * Free Software Foundation;  either version 2 of the  License, or (at your
 * option) any later version.
 *
 */

#ifndef __MVF_FB_H__
#define __MVF_FB_H__

#include <linux/fb.h>

/* ioctls */

#define MFB_SET_ALPHA           0x80014d00
#define MFB_GET_ALPHA           0x40014d00
#define MFB_SET_LAYER		0x80084d04
#define MFB_GET_LAYER		0x40084d04

#define FBIOGET_GWINFO		0x46E0
#define FBIOPUT_GWINFO		0x46E1

#ifndef u32
#define u32 unsigned int
#endif

struct mfb_alpha {
	int enable;
	int alpha;
};

struct layer_display_offset {
	int x_layer_d;
	int y_layer_d;
};

/*
 * These are the fields of control descriptor for every layer
 */
struct dcu_layer_desc {
	u32 layer_num;
	u32 width;
	u32 height;
	u32 posx;
	u32 posy;
	u32 addr;
	u32 blend;
	u32 chroma_key_en;
	u32 lut_offset;
	u32 rle_en;
	u32 bpp;
	u32 trans;
	u32 safety_en;
	u32 data_sel_clut;
	u32 tile_en;
	u32 en;
	u32 ck_r_min;
	u32 ck_r_max;
	u32 ck_g_min;
	u32 ck_g_max;
	u32 ck_b_min;
	u32 ck_b_max;
	u32 tile_width;
	u32 tile_height;
	u32 trans_fgcolor;
	u32 trans_bgcolor;
} __packed;

#endif