video: tegra: host: add per device module-reg-read-write ioctl
authorMayuresh Kulkarni <mkulkarni@nvidia.com>
Wed, 10 Oct 2012 05:06:41 +0000 (10:06 +0530)
committerSimone Willett <swillett@nvidia.com>
Thu, 11 Oct 2012 21:59:32 +0000 (14:59 -0700)
commitd85d1669971219dfcc3ddec62ef42f586d809b8c
tree2f0a86790832205cb37079856f7fd5d9cd9db39b
parent63ae7a23a7a00d2c830b9d37f93f754618ef43ec
video: tegra: host: add per device module-reg-read-write ioctl

- currently, the ioctl NVHOST_IOCTL_CTRL_MODULE_REGRDWR is
a part of nvhost-ctrl node
- however, it doesn't deal with host1x. infact it read/write
actual module registers
- for this kernel needs to maintain a list of all nvhost_devices
registered for a SoC. currently, this is encapsulated within
nvhost_bus which provides a iterator to walk these device list
- however, once we phase out nvhost_bus and adopt the platform_bus
we do not have a way to know the list of these devices
- this commit adds a new per-device ioctl for module register
read-write functionality
- all the new code should be using this new per device ioctl. the
old will be removed as soon as all the clients are ready to use
new ioctl

bug 1154790

Change-Id: I0552aec61a4506243461de82ac0cf6e4c1f3b220
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/141579
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
GVS: Gerrit_Virtual_Submit
drivers/video/tegra/host/bus_client.c
include/linux/nvhost_ioctl.h
include/trace/events/nvhost.h