Merge remote-tracking branch 'stable/linux-3.0.y' into develop-3.0-jb
[firefly-linux-kernel-4.4.55.git] / drivers / cmmb / siano / smscharioctl.h
1 /****************************************************************
2
3 Siano Mobile Silicon, Inc.
4 MDTV receiver kernel modules.
5 Copyright (C) 2006-2008, Uri Shkolnik
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 as published by
9 the Free Software Foundation, either version 2 of the License, or
10 (at your option) any later version.
11
12  This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program.  If not, see <http://www.gnu.org/licenses/>.
19
20 ****************************************************************/
21 #ifndef __SMS_CHAR_IOCTL_H__
22 #define __SMS_CHAR_IOCTL_H__
23
24 #include <linux/ioctl.h>
25
26 struct smschar_buffer_t {
27         unsigned long offset;   /* offset in common buffer (mapped to user) */
28         int size;
29 };
30
31 struct smschar_get_fw_filename_ioctl_t {
32         int mode;
33         char filename[200];
34 };
35
36 struct smschar_send_fw_file_ioctl_t {
37         char *fw_buf;
38         int fw_size;
39 };
40
41 #define SMSCHAR_SET_DEVICE_MODE         _IOW('K', 0, int)
42 #define SMSCHAR_GET_DEVICE_MODE         _IOR('K', 1, int)
43 #define SMSCHAR_GET_BUFFER_SIZE         _IOR('K', 2, int)
44 #define SMSCHAR_WAIT_GET_BUFFER         _IOR('K', 3, struct smschar_buffer_t)
45 #define SMSCHAR_IS_DEVICE_PNP_EVENT     _IOR('K', 4, int)
46 #define SMSCHAR_GET_FW_FILE_NAME        \
47         _IOWR('K', 5, struct smschar_get_fw_filename_ioctl_t)
48 #define SMSCHAR_SEND_FW_FILE            \
49         _IOW('K', 6, struct smschar_send_fw_file_ioctl_t)
50 #define SMSCHAR_CANCEL_WAIT_BUFFER      _IO('K', 7)
51 #define SMSCHAR_RESET_DEVICE_DRVS       _IO('K', 8)
52 #define SMSCHAR_STARTUP                 _IO('K', 9)
53 #define SMSCHAR_GET_RESUME_FLAG     _IO('K', 10)
54 #define SMSCHAR_SET_RESUME_FLAG     _IO('K', 11)
55 #endif /* __SMS_CHAR_IOCTL_H__ */