diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2012-09-03 12:55:35 +0300 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 01:26:07 -0700 |
commit | 7ec0794fc8a3daf6dce76cf2794ef02eba2e1732 (patch) | |
tree | d95571c2fe408038084ed82a7dc008881e2acd78 /include | |
parent | c6353538d61f27fa7c94b0fe7c998fc18490faac (diff) |
video: tegra: host: Make 3D reg read device op
Make 3D register read an operation of the 3D device. For now,
implement it for Tegra20 and use the same implementation on other
chips.
Bug 1038891
Change-Id: Ic483d3554c5a3bad38d54043997a2a416cf37ea9
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/129951
Reviewed-by: Automatic_Commit_Validation_User
Rebase-Id: Ref2bda0c0732e13895c8b78ba80355bd976bf38a
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/nvhost.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/linux/nvhost.h b/include/linux/nvhost.h index 5f754f04e665..05d9ed7cf8b1 100644 --- a/include/linux/nvhost.h +++ b/include/linux/nvhost.h @@ -27,7 +27,7 @@ #include <linux/types.h> struct nvhost_master; - +struct nvhost_hwctx; struct nvhost_device_power_attr; #define NVHOST_MODULE_MAX_CLOCKS 3 @@ -180,6 +180,13 @@ struct nvhost_driver { /* Clock gating callbacks */ int (*prepare_clockoff)(struct nvhost_device *dev); void (*finalize_clockon)(struct nvhost_device *dev); + + /* Read module register into memory */ + int (*read_reg)(struct nvhost_device *dev, + struct nvhost_channel *ch, + struct nvhost_hwctx *hwctx, + u32 offset, + u32 *value); }; extern int nvhost_driver_register(struct nvhost_driver *); |