diff options
Diffstat (limited to 'drivers/video/tegra/host/dev.h')
-rw-r--r-- | drivers/video/tegra/host/dev.h | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/drivers/video/tegra/host/dev.h b/drivers/video/tegra/host/dev.h new file mode 100644 index 00000000000..74d7e16fc27 --- /dev/null +++ b/drivers/video/tegra/host/dev.h | |||
@@ -0,0 +1,68 @@ | |||
1 | /* | ||
2 | * drivers/video/tegra/host/dev.h | ||
3 | * | ||
4 | * Tegra Graphics Host Driver Entrypoint | ||
5 | * | ||
6 | * Copyright (c) 2010-2012, NVIDIA Corporation. | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify it | ||
9 | * under the terms and conditions of the GNU General Public License, | ||
10 | * version 2, as published by the Free Software Foundation. | ||
11 | * | ||
12 | * This program is distributed in the hope it will be useful, but WITHOUT | ||
13 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
14 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
15 | * more details. | ||
16 | * | ||
17 | * You should have received a copy of the GNU General Public License | ||
18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | */ | ||
20 | |||
21 | #ifndef __NVHOST_DEV_H | ||
22 | #define __NVHOST_DEV_H | ||
23 | |||
24 | #include "nvhost_acm.h" | ||
25 | #include "nvhost_syncpt.h" | ||
26 | #include "nvhost_intr.h" | ||
27 | #include "nvhost_channel.h" | ||
28 | #include "chip_support.h" | ||
29 | |||
30 | #define TRACE_MAX_LENGTH 128U | ||
31 | #define IFACE_NAME "nvhost" | ||
32 | |||
33 | extern int nvhost_major; | ||
34 | extern int nvhost_minor; | ||
35 | |||
36 | struct nvhost_hwctx; | ||
37 | |||
38 | struct nvhost_master { | ||
39 | void __iomem *aperture; | ||
40 | void __iomem *sync_aperture; | ||
41 | struct resource *reg_mem; | ||
42 | struct class *nvhost_class; | ||
43 | struct cdev cdev; | ||
44 | struct device *ctrl; | ||
45 | struct nvhost_syncpt syncpt; | ||
46 | struct nvmap_client *nvmap; | ||
47 | struct nvhost_intr intr; | ||
48 | struct nvhost_device *dev; | ||
49 | struct nvhost_channel *channels; | ||
50 | u32 nb_channels; | ||
51 | |||
52 | struct nvhost_chip_support op; | ||
53 | |||
54 | atomic_t clientid; | ||
55 | }; | ||
56 | |||
57 | extern struct nvhost_master *nvhost; | ||
58 | |||
59 | void nvhost_debug_init(struct nvhost_master *master); | ||
60 | void nvhost_debug_dump(struct nvhost_master *master); | ||
61 | |||
62 | #define host_device_op(host) (host->op.nvhost_dev) | ||
63 | |||
64 | struct nvhost_device *nvhost_get_device(char *name); | ||
65 | |||
66 | extern pid_t nvhost_debug_null_kickoff_pid; | ||
67 | |||
68 | #endif | ||