summaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorAnuj Gangwar <anujg@nvidia.com>2019-03-20 02:11:42 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2019-05-06 11:28:13 -0400
commit9467a3f62c6a32fde8eb5ec10407b9c560995108 (patch)
tree66a7633c7c6cc40444f9da9a7bcce09bae9c10de /include/uapi
parent33c5afbd77f7d05caa8ad05112e414c74f4c9e04 (diff)
include: uapi: move saf775x_ioctl.h with IOCTL
Create new header file saf775x_ioctl.h in include/uapi/misc/. The new file has IOCTL definitions which is moved from drivers/misc/saf775x/. Bug 2062672 Change-Id: Id180b15964d3e3a89da85a9117586b8b79ab641a Signed-off-by: Anuj Gangwar <anujg@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2077102 (cherry picked from commit 8c2f5f580dadb73e12b1a1866c8c4f267c6d0594) Reviewed-on: https://git-master.nvidia.com/r/2109932 GVS: Gerrit_Virtual_Submit Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/misc/saf775x_ioctl.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/include/uapi/misc/saf775x_ioctl.h b/include/uapi/misc/saf775x_ioctl.h
new file mode 100644
index 000000000..95bd83476
--- /dev/null
+++ b/include/uapi/misc/saf775x_ioctl.h
@@ -0,0 +1,57 @@
1 /*
2 * saf775x_ioctl.h -- SAF775X Soc Audio driver IO control
3 *
4 * Copyright (c) 2014-2019 NVIDIA CORPORATION. All rights reserved.
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License,
8 * version 2, as published by the Free Software Foundation.
9 *
10 * This program is distributed in the hope it will be useful, but WITHIN
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13 * more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#ifndef __UAPI_SAF775X_IOCTL_H__
20#define __UAPI_SAF775X_IOCTL_H__
21
22#include <linux/ioctl.h>
23
24struct saf775x_cmd {
25 unsigned int reg;
26 unsigned int reg_len;
27 unsigned long val;
28 unsigned int val_len;
29};
30
31struct saf775x_control_param {
32 char name[20];
33 unsigned int *reg;
34 unsigned int num_reg;
35 int val;
36};
37
38struct saf775x_control_info {
39 char name[20];
40 int min;
41 int max;
42 int step;
43 int val;
44};
45
46#define SAF775X_CONTROL_SET_IOCTL _IOW(0xF4, 0x01, struct saf775x_cmd)
47#define SAF775x_CODEC_RESET_IOCTL _IO(0xF4, 0x02)
48#define SAF775X_CONTROL_GET_IOCTL _IOR(0xF4, 0x03, struct saf775x_cmd)
49#define SAF775X_CONTROL_GET_MIXER _IOR(0xF4, 0x04, \
50 struct saf775x_control_info)
51#define SAF775X_CONTROL_SET_MIXER _IOW(0xF4, 0x05, \
52 struct saf775x_control_param)
53#define SAF775X_CONTROL_SETIF _IOW(0xF4, 0x6, unsigned int)
54#define SAF775X_CONTROL_GETIF _IO(0xF4, 0x7)
55#define SAF775X_CONTROL_KEYCODE _IOW(0xF4, 0x8, struct saf775x_cmd)
56
57#endif /* __UAPI_SAF775X_IOCTL_H__ */