Commit | Line | Data |
---|---|---|
6fa3eb70 S |
1 | #ifndef __SSW_H__ |
2 | #define __SSW_H__ | |
3 | #include <linux/kernel.h> | |
4 | #include <linux/module.h> | |
5 | #include <linux/init.h> | |
6 | #include <linux/device.h> | |
7 | #include <linux/platform_device.h> | |
8 | #include <linux/spinlock.h> | |
9 | #include <linux/semaphore.h> | |
10 | #include <linux/delay.h> | |
11 | ||
12 | #include <linux/kdev_t.h> | |
13 | #include <linux/ctype.h> | |
14 | #include <linux/cdev.h> | |
15 | #include <linux/string.h> | |
16 | #include <asm/uaccess.h> | |
17 | #include <asm/io.h> | |
18 | ||
19 | #include <mach/mt_typedefs.h> | |
20 | #include <mach/mtk_ccci_helper.h> | |
21 | #include <mach/mt_reg_base.h> | |
22 | #include <mach/mt_gpio.h> | |
23 | ||
24 | ||
25 | /*-------------------------debug log define--------------------------------*/ | |
26 | static int dbg_en = 1; | |
27 | #define SSW_DBG(format, args...) do{ \ | |
28 | if(dbg_en) \ | |
29 | {\ | |
30 | printk(KERN_ERR "[SSW] "format,##args);\ | |
31 | }\ | |
32 | }while(0) | |
33 | ||
34 | ||
35 | /*-------------------------variable define----------------------------------*/ | |
36 | #if 0 | |
37 | #ifndef SSW_DUAL_TALK | |
38 | #define SSW_DUAL_TALK 0 | |
39 | #endif | |
40 | ||
41 | #ifndef SSW_SING_TALK | |
42 | #define SSW_SING_TALK 1 | |
43 | #endif | |
44 | #endif | |
45 | ||
46 | /*------------------------Error Code---------------------------------------*/ | |
47 | #define SSW_SUCCESS (0) | |
48 | #define SSW_INVALID_PARA (-1) | |
49 | ||
50 | enum { | |
51 | SSW_INVALID = 0xFFFFFFFF, | |
52 | SSW_INTERN = 0, | |
53 | SSW_EXT_FXLA2203 = 1, | |
54 | SSW_EXT_SINGLE_COMMON = 2, | |
55 | }; | |
56 | ||
57 | #endif | |
58 | ||
59 |