Dima Zavin | c343d3f | 2010-10-04 14:13:46 -0700 | [diff] [blame] | 1 | /**************************************************************************** |
| 2 | **************************************************************************** |
| 3 | *** |
| 4 | *** This header was automatically generated from a Linux kernel header |
| 5 | *** of the same name, to make information necessary for userspace to |
| 6 | *** call into the kernel available to libc. It contains only constants, |
| 7 | *** structures, and macros generated from the original header, and thus, |
| 8 | *** contains no copyrightable information. |
| 9 | *** |
| 10 | **************************************************************************** |
| 11 | ****************************************************************************/ |
| 12 | #ifndef __LINUX_TEGRA_AVP_H |
| 13 | #define __LINUX_TEGRA_AVP_H |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 14 | |
Dima Zavin | c343d3f | 2010-10-04 14:13:46 -0700 | [diff] [blame] | 15 | #include <linux/ioctl.h> |
| 16 | #include <linux/types.h> |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 17 | |
Dima Zavin | c343d3f | 2010-10-04 14:13:46 -0700 | [diff] [blame] | 18 | #define TEGRA_AVP_LIB_MAX_NAME 32 |
| 19 | #define TEGRA_AVP_LIB_MAX_ARGS 220 |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 20 | |
Dima Zavin | c343d3f | 2010-10-04 14:13:46 -0700 | [diff] [blame] | 21 | struct tegra_avp_lib { |
| 22 | char name[TEGRA_AVP_LIB_MAX_NAME]; |
| 23 | void __user *args; |
| 24 | size_t args_len; |
| 25 | int greedy; |
| 26 | unsigned long handle; |
| 27 | }; |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 28 | |
Dima Zavin | c343d3f | 2010-10-04 14:13:46 -0700 | [diff] [blame] | 29 | #define TEGRA_AVP_IOCTL_MAGIC 'r' |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 30 | |
Dima Zavin | c343d3f | 2010-10-04 14:13:46 -0700 | [diff] [blame] | 31 | #define TEGRA_AVP_IOCTL_LOAD_LIB _IOWR(TEGRA_AVP_IOCTL_MAGIC, 0x40, struct tegra_avp_lib) |
| 32 | #define TEGRA_AVP_IOCTL_UNLOAD_LIB _IOW(TEGRA_AVP_IOCTL_MAGIC, 0x41, unsigned long) |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 33 | |
Dima Zavin | c343d3f | 2010-10-04 14:13:46 -0700 | [diff] [blame] | 34 | #define TEGRA_AVP_IOCTL_MIN_NR _IOC_NR(TEGRA_AVP_IOCTL_LOAD_LIB) |
| 35 | #define TEGRA_AVP_IOCTL_MAX_NR _IOC_NR(TEGRA_AVP_IOCTL_UNLOAD_LIB) |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 36 | |
Dima Zavin | c343d3f | 2010-10-04 14:13:46 -0700 | [diff] [blame] | 37 | #endif |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 38 | |