Merge branch develop-3.10
[firefly-linux-kernel-4.4.55.git] / sound / soc / codecs / cxdebug.h
1 /*
2 * ALSA SoC CX20709 Channel codec driver
3 *
4 * Copyright:   (C) 2009/2010 Conexant Systems
5 *
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
10 *
11
12 *      
13 *************************************************************************
14 *  Modified Date:  11/02/11
15 *  File Version:   2.26.35.11 
16 *************************************************************************
17 */
18 #ifndef CXDEBUG_H
19 #define CXDEBUG_H
20
21 #define CXDBG_MAJOR     168             /* Device major number          */
22
23
24 /* Use 'k' as magic number */
25 #define CXDBG_IOC_MAGIC 'S'
26
27 #define MAX_DATA_LEN      64
28 struct CXDBG_IODATA{
29     unsigned short len;
30     unsigned char  data[MAX_DATA_LEN];
31 };
32
33 #define CXDBG_IOCTL_REG_SET             _IOWR(CXDBG_IOC_MAGIC, 1, struct CXDBG_IODATA)
34 #define CXDBG_IOCTL_REG_GET             _IOWR(CXDBG_IOC_MAGIC, 2, struct CXDBG_IODATA)
35 #define CXDBG_IOCTL_PDRIVER_VERSION     _IOR( CXDBG_IOC_MAGIC, 3, int)
36
37 #define CXDBG_DEVICE_NAME "cxdbg"
38
39 #ifdef __KERNEL__
40 int cxdbg_dev_init(struct snd_soc_codec * codec);
41 void cxdbg_dev_exit(void);
42 #endif 
43
44 #endif //#ifndef CXDEBUG_H
45
46