video: tegra: move nvhost.h to mach-tegra/include/nvhost.h
authorGary King <gking@nvidia.com>
Thu, 16 Sep 2010 20:28:51 +0000 (13:28 -0700)
committerRebecca Schultz Zavin <rebecca@android.com>
Fri, 8 Oct 2010 22:59:00 +0000 (15:59 -0700)
Change-Id: I3bcc0a91cb379c0bd6ef382a5bf10e2406e55697
Signed-off-by: Gary King <gking@nvidia.com>
arch/arm/mach-tegra/include/mach/nvhost.h [new file with mode: 0644]
drivers/video/tegra/dc/dc.c
drivers/video/tegra/dc/hdmi.c
drivers/video/tegra/fb.c
drivers/video/tegra/host/bus.c
drivers/video/tegra/host/dev.c
include/linux/nvhost.h [deleted file]

diff --git a/arch/arm/mach-tegra/include/mach/nvhost.h b/arch/arm/mach-tegra/include/mach/nvhost.h
new file mode 100644 (file)
index 0000000..c7db9d2
--- /dev/null
@@ -0,0 +1,69 @@
+/*
+ * include/linux/nvhost.h
+ *
+ * Tegra graphics host driver
+ *
+ * Copyright (c) 2009-2010, NVIDIA Corporation.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+ */
+
+#ifndef __LINUX_NVHOST_H
+#define __LINUX_NVHOST_H
+
+#include <linux/device.h>
+
+struct nvhost_master;
+
+struct nvhost_device {
+       const char              *name;
+       struct device           dev;
+       int                     id;
+       u32                     num_resources;
+       struct resource         *resource;
+
+       struct nvhost_master    *host;
+};
+
+extern int nvhost_device_register(struct nvhost_device *);
+extern void nvhost_device_unregister(struct nvhost_device *);
+
+extern struct bus_type nvhost_bus_type;
+
+struct nvhost_driver {
+       int (*probe)(struct nvhost_device *);
+       int (*remove)(struct nvhost_device *);
+       void (*shutdown)(struct nvhost_device *);
+       int (*suspend)(struct nvhost_device *, pm_message_t state);
+       int (*resume)(struct nvhost_device *);
+       struct device_driver driver;
+};
+
+extern int nvhost_driver_register(struct nvhost_driver *);
+extern void nvhost_driver_unregister(struct nvhost_driver *);
+extern struct resource *nvhost_get_resource(struct nvhost_device *, unsigned int, unsigned int);
+extern int nvhost_get_irq(struct nvhost_device *, unsigned int);
+extern struct resource *nvhost_get_resource_byname(struct nvhost_device *, unsigned int, const char *);
+extern int nvhost_get_irq_byname(struct nvhost_device *, const char *);
+
+#define to_nvhost_device(x) container_of((x), struct nvhost_device, dev)
+#define to_nvhost_driver(drv)  (container_of((drv), struct nvhost_driver, \
+                                driver))
+
+#define nvhost_get_drvdata(_dev)       dev_get_drvdata(&(_dev)->dev)
+#define nvhost_set_drvdata(_dev,data)  dev_set_drvdata(&(_dev)->dev, (data))
+
+int nvhost_bus_register(struct nvhost_master *host);
+#endif
index ef333f6474af78da326caa5e8104ba8b1cef6be0..55ecf100de05bfcdda57e57af84c7be3a521c31c 100644 (file)
@@ -19,7 +19,6 @@
 #include <linux/kernel.h>
 #include <linux/err.h>
 #include <linux/errno.h>
-#include <linux/nvhost.h>
 #include <linux/interrupt.h>
 #include <linux/slab.h>
 #include <linux/io.h>
@@ -35,6 +34,7 @@
 #include <mach/clk.h>
 #include <mach/dc.h>
 #include <mach/fb.h>
+#include <mach/nvhost.h>
 
 #include "dc_reg.h"
 #include "dc_priv.h"
index cfd41e8950dadbc7f0e6e82d00e5fcc4930e3382..3487e54c74cf4fc82fc308661e7d400f576e8126 100644 (file)
 #include <linux/gpio.h>
 #include <linux/interrupt.h>
 #include <linux/kernel.h>
-#include <linux/nvhost.h>
 #include <linux/slab.h>
 #include <linux/workqueue.h>
 
 #include <mach/clk.h>
 #include <mach/dc.h>
 #include <mach/fb.h>
+#include <mach/nvhost.h>
 
 #include "dc_reg.h"
 #include "dc_priv.h"
index 45d47e6c991ae3b4749c5fd8ca25f40ab9a4d31c..ac07c551fb5d35c23758012284e87c1558a2ebba 100644 (file)
 #include <linux/string.h>
 #include <linux/mm.h>
 #include <linux/slab.h>
-#include <linux/nvhost.h>
 
 #include <asm/atomic.h>
 
 #include <mach/dc.h>
 #include <mach/fb.h>
+#include <mach/nvhost.h>
 
 struct tegra_fb_info {
        struct tegra_dc_win     *win;
index b8caf337ede4615c828c7515ea01d41fe627b221..a633950aeaff94dbb3c843af4c23d4274024b846 100644 (file)
@@ -20,7 +20,8 @@
  */
 
 #include <linux/pm_runtime.h>
-#include <linux/nvhost.h>
+
+#include <mach/nvhost.h>
 
 #include "dev.h"
 
index 2102f1b545fd643815d298ca9415b5788833fdc0..4d2d3c50fc3faa38e0b2aa6276e33acd82035152 100644 (file)
@@ -22,7 +22,6 @@
 
 #include "dev.h"
 
-#include <linux/nvhost.h>
 #include <linux/slab.h>
 #include <linux/string.h>
 #include <linux/spinlock.h>
 #include <linux/platform_device.h>
 #include <linux/uaccess.h>
 #include <linux/file.h>
-#include <linux/nvhost.h>
 
 #include <asm/io.h>
 
+#include <mach/nvhost.h>
+
 #define DRIVER_NAME "tegra_grhost"
 #define IFACE_NAME "nvhost"
 
diff --git a/include/linux/nvhost.h b/include/linux/nvhost.h
deleted file mode 100644 (file)
index c7db9d2..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-/*
- * include/linux/nvhost.h
- *
- * Tegra graphics host driver
- *
- * Copyright (c) 2009-2010, NVIDIA Corporation.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
- * more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
- */
-
-#ifndef __LINUX_NVHOST_H
-#define __LINUX_NVHOST_H
-
-#include <linux/device.h>
-
-struct nvhost_master;
-
-struct nvhost_device {
-       const char              *name;
-       struct device           dev;
-       int                     id;
-       u32                     num_resources;
-       struct resource         *resource;
-
-       struct nvhost_master    *host;
-};
-
-extern int nvhost_device_register(struct nvhost_device *);
-extern void nvhost_device_unregister(struct nvhost_device *);
-
-extern struct bus_type nvhost_bus_type;
-
-struct nvhost_driver {
-       int (*probe)(struct nvhost_device *);
-       int (*remove)(struct nvhost_device *);
-       void (*shutdown)(struct nvhost_device *);
-       int (*suspend)(struct nvhost_device *, pm_message_t state);
-       int (*resume)(struct nvhost_device *);
-       struct device_driver driver;
-};
-
-extern int nvhost_driver_register(struct nvhost_driver *);
-extern void nvhost_driver_unregister(struct nvhost_driver *);
-extern struct resource *nvhost_get_resource(struct nvhost_device *, unsigned int, unsigned int);
-extern int nvhost_get_irq(struct nvhost_device *, unsigned int);
-extern struct resource *nvhost_get_resource_byname(struct nvhost_device *, unsigned int, const char *);
-extern int nvhost_get_irq_byname(struct nvhost_device *, const char *);
-
-#define to_nvhost_device(x) container_of((x), struct nvhost_device, dev)
-#define to_nvhost_driver(drv)  (container_of((drv), struct nvhost_driver, \
-                                driver))
-
-#define nvhost_get_drvdata(_dev)       dev_get_drvdata(&(_dev)->dev)
-#define nvhost_set_drvdata(_dev,data)  dev_set_drvdata(&(_dev)->dev, (data))
-
-int nvhost_bus_register(struct nvhost_master *host);
-#endif