blob: c4a0cbd13265d095df68ccb3eefc2055ff551808 [file] [log] [blame]
Dima Zavinc343d3f2010-10-04 14:13:46 -07001/****************************************************************************
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 Cheng4b29af02012-03-07 16:14:53 -080014
Dima Zavinc343d3f2010-10-04 14:13:46 -070015#include <linux/ioctl.h>
16#include <linux/types.h>
Ben Cheng4b29af02012-03-07 16:14:53 -080017
Dima Zavinc343d3f2010-10-04 14:13:46 -070018#define TEGRA_AVP_LIB_MAX_NAME 32
19#define TEGRA_AVP_LIB_MAX_ARGS 220
Ben Cheng4b29af02012-03-07 16:14:53 -080020
Dima Zavinc343d3f2010-10-04 14:13:46 -070021struct 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 Cheng4b29af02012-03-07 16:14:53 -080028
Dima Zavinc343d3f2010-10-04 14:13:46 -070029#define TEGRA_AVP_IOCTL_MAGIC 'r'
Ben Cheng4b29af02012-03-07 16:14:53 -080030
Dima Zavinc343d3f2010-10-04 14:13:46 -070031#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 Cheng4b29af02012-03-07 16:14:53 -080033
Dima Zavinc343d3f2010-10-04 14:13:46 -070034#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 Cheng4b29af02012-03-07 16:14:53 -080036
Dima Zavinc343d3f2010-10-04 14:13:46 -070037#endif
Ben Cheng4b29af02012-03-07 16:14:53 -080038