diff options
Diffstat (limited to 'include/linux/tegra_avp.h')
-rw-r--r-- | include/linux/tegra_avp.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/include/linux/tegra_avp.h b/include/linux/tegra_avp.h new file mode 100644 index 00000000000..9dc92f82136 --- /dev/null +++ b/include/linux/tegra_avp.h | |||
@@ -0,0 +1,44 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2010 Google, Inc. | ||
3 | * Author: Dima Zavin <dima@android.com> | ||
4 | * | ||
5 | * This software is licensed under the terms of the GNU General Public | ||
6 | * License version 2, as published by the Free Software Foundation, and | ||
7 | * may be copied, distributed, and modified under those terms. | ||
8 | * | ||
9 | * This program is distributed in the hope that it will be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | * GNU General Public License for more details. | ||
13 | * | ||
14 | */ | ||
15 | |||
16 | #ifndef __LINUX_TEGRA_AVP_H | ||
17 | #define __LINUX_TEGRA_AVP_H | ||
18 | |||
19 | #include <linux/ioctl.h> | ||
20 | #include <linux/types.h> | ||
21 | |||
22 | #define TEGRA_AVP_LIB_MAX_NAME 32 | ||
23 | #define TEGRA_AVP_LIB_MAX_ARGS 220 /* DO NOT CHANGE THIS! */ | ||
24 | |||
25 | struct tegra_avp_lib { | ||
26 | char name[TEGRA_AVP_LIB_MAX_NAME]; | ||
27 | void __user *args; | ||
28 | size_t args_len; | ||
29 | int greedy; | ||
30 | unsigned long handle; | ||
31 | }; | ||
32 | |||
33 | struct tegra_avp_platform_data { | ||
34 | unsigned long emc_clk_rate; | ||
35 | }; | ||
36 | #define TEGRA_AVP_IOCTL_MAGIC 'r' | ||
37 | |||
38 | #define TEGRA_AVP_IOCTL_LOAD_LIB _IOWR(TEGRA_AVP_IOCTL_MAGIC, 0x40, struct tegra_avp_lib) | ||
39 | #define TEGRA_AVP_IOCTL_UNLOAD_LIB _IOW(TEGRA_AVP_IOCTL_MAGIC, 0x41, unsigned long) | ||
40 | |||
41 | #define TEGRA_AVP_IOCTL_MIN_NR _IOC_NR(TEGRA_AVP_IOCTL_LOAD_LIB) | ||
42 | #define TEGRA_AVP_IOCTL_MAX_NR _IOC_NR(TEGRA_AVP_IOCTL_UNLOAD_LIB) | ||
43 | |||
44 | #endif | ||