| 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 | 
|  | 14 |  | 
|  | 15 | #include <linux/ioctl.h> | 
|  | 16 | #include <linux/types.h> | 
|  | 17 |  | 
|  | 18 | #define TEGRA_AVP_LIB_MAX_NAME 32 | 
|  | 19 | #define TEGRA_AVP_LIB_MAX_ARGS 220 | 
|  | 20 |  | 
|  | 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 | }; | 
|  | 28 |  | 
|  | 29 | #define TEGRA_AVP_IOCTL_MAGIC 'r' | 
|  | 30 |  | 
|  | 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) | 
|  | 33 |  | 
|  | 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) | 
|  | 36 |  | 
|  | 37 | #endif | 
|  | 38 |  |