blob: e5fc0fafdb6ece92e67b0183c1f8ddb4cb8d1afd (
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) Samsung Electronics Co., Ltd.
* Author: Minwoo Kim <minwoo7945.kim@samsung.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef __ACTIVE_CLOCK_H__
#define __ACTIVE_CLOCK_H__
#include <linux/kernel.h>
#include <linux/miscdevice.h>
enum {
IMG_UPDATE_NEED = 0,
IMG_UPDATE_DONE,
};
struct act_clk_info {
u32 en;
u32 interval;
u32 time_hr;
u32 time_min;
u32 time_sec;
u32 time_ms;
u32 pos_x;
u32 pos_y;
/* flag to check need to update side ram img */
u32 update_img;
char *img_buf;
u32 img_buf_size;
u32 update_time;
};
struct act_blink_info {
u32 en;
u32 interval;
u32 radius;
u32 color;
u32 line_width;
u32 pos1_x;
u32 pos1_y;
u32 pos2_x;
u32 pos2_y;
};
struct act_drawer_info {
u32 sd_line_color;
u32 sd2_line_color;
u32 sd_radius;
};
struct act_clock_dev {
struct miscdevice dev;
struct act_clk_info act_info;
struct act_blink_info blink_info;
struct act_drawer_info draw_info;
u32 opened;
};
struct ioctl_act_clk {
unsigned int en;
unsigned int interval;
unsigned int time_hr;
unsigned int time_min;
unsigned int time_sec;
unsigned int time_ms;
unsigned int pos_x;
unsigned int pos_y;
};
struct ioctl_blink_clock {
u32 en;
u32 interval;
u32 radius;
u32 color;
u32 line_width;
u32 pos1_x;
u32 pos1_y;
u32 pos2_x;
u32 pos2_y;
};
struct ioctl_self_drawer {
u32 sd_line_color;
u32 sd2_line_color;
u32 sd_raduis;
};
#define IOCTL_ACT_CLK _IOW('A', 100, struct ioctl_act_clk)
#define IOCTL_BLINK_CLK _IOW('A', 101, struct ioctl_blink_clock)
#define IOCTL_SELF_DRAWER_CLK _IOW('A', 102, struct ioctl_self_drawer)
int probe_live_clock_drv(struct act_clock_dev *act_dev);
#endif /* __ACTIVE_CLOCK_H__ */
|