summaryrefslogtreecommitdiff
path: root/drivers/video/tegra/host/dev.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/tegra/host/dev.h')
-rw-r--r--drivers/video/tegra/host/dev.h16
1 files changed, 4 insertions, 12 deletions
diff --git a/drivers/video/tegra/host/dev.h b/drivers/video/tegra/host/dev.h
index 74d7e16fc272..41c4fb59b264 100644
--- a/drivers/video/tegra/host/dev.h
+++ b/drivers/video/tegra/host/dev.h
@@ -21,19 +21,16 @@
#ifndef __NVHOST_DEV_H
#define __NVHOST_DEV_H
-#include "nvhost_acm.h"
+#include <linux/cdev.h>
#include "nvhost_syncpt.h"
#include "nvhost_intr.h"
-#include "nvhost_channel.h"
#include "chip_support.h"
#define TRACE_MAX_LENGTH 128U
#define IFACE_NAME "nvhost"
-extern int nvhost_major;
-extern int nvhost_minor;
-
struct nvhost_hwctx;
+struct nvhost_channel;
struct nvhost_master {
void __iomem *aperture;
@@ -46,11 +43,6 @@ struct nvhost_master {
struct nvmap_client *nvmap;
struct nvhost_intr intr;
struct nvhost_device *dev;
- struct nvhost_channel *channels;
- u32 nb_channels;
-
- struct nvhost_chip_support op;
-
atomic_t clientid;
};
@@ -59,9 +51,9 @@ extern struct nvhost_master *nvhost;
void nvhost_debug_init(struct nvhost_master *master);
void nvhost_debug_dump(struct nvhost_master *master);
-#define host_device_op(host) (host->op.nvhost_dev)
-
struct nvhost_device *nvhost_get_device(char *name);
+struct nvhost_channel *nvhost_alloc_channel(int index);
+void nvhost_free_channel(struct nvhost_channel *ch);
extern pid_t nvhost_debug_null_kickoff_pid;