diff options
| author | Anuj Gangwar <anujg@nvidia.com> | 2019-03-05 01:51:21 -0500 |
|---|---|---|
| committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2019-05-06 11:28:40 -0400 |
| commit | cfcaa72913c5295962dfd9cd3b20f3736dc3fa8d (patch) | |
| tree | 6a9031868e6f7c677762d5faf39bdcb62802856a /include/uapi/misc | |
| parent | 8668379cc2d0dde1f97603f1b3dda4117f41cae5 (diff) | |
include: uapi: move compat_saf775x_ioctl.h file
Move compat_saf775x_ioctl header file from drivers/misc/saf775x/ to
include/uapi/misc/.
Change the path for header in dependent c files.
Bug 2062672
Change-Id: I959d16b8b56214cf2db83c05f181faf1def2a1e1
Signed-off-by: Anuj Gangwar <anujg@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2032464
(cherry picked from commit 07d3aa875210c2f833a60afa5fb5c546a33d29d7)
Reviewed-on: https://git-master.nvidia.com/r/2109958
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/misc')
| -rw-r--r-- | include/uapi/misc/compat_saf775x_ioctl.h | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/include/uapi/misc/compat_saf775x_ioctl.h b/include/uapi/misc/compat_saf775x_ioctl.h new file mode 100644 index 000000000..a5ad8a70d --- /dev/null +++ b/include/uapi/misc/compat_saf775x_ioctl.h | |||
| @@ -0,0 +1,67 @@ | |||
| 1 | /* | ||
| 2 | * compat_saf775x_ioctl.h -- SAF775X Soc Audio driver IO control | ||
| 3 | * | ||
| 4 | * Copyright (c) 2017-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_COMPAT_SAF775X_IOCTL_H__ | ||
| 20 | #define __UAPI_COMPAT_SAF775X_IOCTL_H__ | ||
| 21 | |||
| 22 | struct compat_saf775x_cmd { | ||
| 23 | compat_uint_t reg; | ||
| 24 | compat_uint_t reg_len; | ||
| 25 | compat_ulong_t val; | ||
| 26 | compat_uint_t val_len; | ||
| 27 | }; | ||
| 28 | |||
| 29 | struct compat_saf775x_control_param { | ||
| 30 | char name[20]; | ||
| 31 | compat_uint_t reg; | ||
| 32 | compat_uint_t num_reg; | ||
| 33 | compat_int_t val; | ||
| 34 | }; | ||
| 35 | |||
| 36 | struct compat_saf775x_control_info { | ||
| 37 | char name[20]; | ||
| 38 | compat_int_t min; | ||
| 39 | compat_int_t max; | ||
| 40 | compat_int_t step; | ||
| 41 | compat_int_t val; | ||
| 42 | }; | ||
| 43 | |||
| 44 | enum { | ||
| 45 | SAF775X_CONTROL_SET_IOCTL_32 = _IOW(0xF4, 0x01, | ||
| 46 | struct compat_saf775x_cmd), | ||
| 47 | SAF775x_CODEC_RESET_IOCTL_32 = _IO(0xF4, 0x02), | ||
| 48 | SAF775X_CONTROL_GET_IOCTL_32 = _IOR(0xF4, 0x03, | ||
| 49 | struct compat_saf775x_cmd), | ||
| 50 | SAF775X_CONTROL_GET_MIXER_32 = _IOR(0xF4, 0x04, | ||
| 51 | struct compat_saf775x_control_info), | ||
| 52 | SAF775X_CONTROL_SET_MIXER_32 = _IOW(0xF4, 0x05, | ||
| 53 | struct compat_saf775x_control_param), | ||
| 54 | SAF775X_CONTROL_SETIF_32 = _IOW(0xF4, 0x6, compat_uint_t), | ||
| 55 | SAF775X_CONTROL_GETIF_32 = _IO(0xF4, 0x7), | ||
| 56 | SAF775X_CONTROL_KEYCODE_32 = _IOW(0xF4, 0x8, | ||
| 57 | struct compat_saf775x_cmd), | ||
| 58 | }; | ||
| 59 | |||
| 60 | #if IS_ENABLED(CONFIG_COMPAT) | ||
| 61 | long compat_saf775x_hwdep_ioctl(struct file *file, | ||
| 62 | unsigned int cmd, unsigned long arg); | ||
| 63 | #else | ||
| 64 | #define compat_saf775x_hwdep_ioctl NULL | ||
| 65 | #endif /* CONFIG_COMPAT */ | ||
| 66 | |||
| 67 | #endif /* __UAPI_COMPAT_SAF775X_IOCTL_H__ */ | ||
