summaryrefslogtreecommitdiff
path: root/include/linux/nvhost_ioctl.h
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2012-01-24 08:00:36 +0200
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 01:22:17 -0700
commitad29a9c74106c10704dfc37870fcc3056f945b99 (patch)
treea1633868401ac9aeaec058f688ca7b2dc6b97ce8 /include/linux/nvhost_ioctl.h
parent9d0f7ebabf7e5321a6ce5e75e3bba505afa28b94 (diff)
video: tegra: host: CPU reg read to use power management
CPU register read did not have access to nvhost power management. Due to this only modules that were powered on previously are actually accessible via the API. This patch refactors CPU access to: * Move mutexes to sync point, as they're sync point operations * Move register address spaces to nvhost_device * Call register read with access to the respective nvhost_device * Initialize module completely at boot-up so that register reads can be done without an initialized channel. Reviewed-on: http://git-master/r/75275 Change-Id: I0db38cef7b2cd92dc64e7f55d227bdd2fdb8f752 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-on: http://git-master/r/77764 Reviewed-by: Automatic_Commit_Validation_User Rebase-Id: Rddee4689b6a77b827355eca40f35b686a29eed3c
Diffstat (limited to 'include/linux/nvhost_ioctl.h')
-rw-r--r--include/linux/nvhost_ioctl.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/linux/nvhost_ioctl.h b/include/linux/nvhost_ioctl.h
index a1fc0b7cd247..3f6eabf522f1 100644
--- a/include/linux/nvhost_ioctl.h
+++ b/include/linux/nvhost_ioctl.h
@@ -3,7 +3,7 @@
*
* Tegra graphics host driver
*
- * Copyright (c) 2009-2011, NVIDIA Corporation.
+ * Copyright (c) 2009-2012, 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
@@ -169,6 +169,15 @@ struct nvhost_ctrl_module_mutex_args {
__u32 lock;
};
+enum nvhost_module_id {
+ NVHOST_MODULE_NONE = -1,
+ NVHOST_MODULE_DISPLAY_A = 0,
+ NVHOST_MODULE_DISPLAY_B,
+ NVHOST_MODULE_VI,
+ NVHOST_MODULE_ISP,
+ NVHOST_MODULE_MPE,
+};
+
struct nvhost_ctrl_module_regrdwr_args {
__u32 id;
__u32 num_offsets;