diff options
author | Mayuresh Kulkarni <mkulkarni@nvidia.com> | 2012-10-10 10:36:41 +0530 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2012-10-11 14:59:32 -0700 |
commit | d85d1669971219dfcc3ddec62ef42f586d809b8c (patch) | |
tree | 2f0a86790832205cb37079856f7fd5d9cd9db39b /include/trace | |
parent | 63ae7a23a7a00d2c830b9d37f93f754618ef43ec (diff) |
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
Diffstat (limited to 'include/trace')
-rw-r--r-- | include/trace/events/nvhost.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/trace/events/nvhost.h b/include/trace/events/nvhost.h index 7c94cb405ee1..558a7d13e223 100644 --- a/include/trace/events/nvhost.h +++ b/include/trace/events/nvhost.h @@ -428,6 +428,27 @@ TRACE_EVENT(nvhost_ioctl_ctrl_syncpt_wait, __entry->value, __entry->err) ); +TRACE_EVENT(nvhost_ioctl_channel_module_regrdwr, + TP_PROTO(u32 id, u32 num_offsets, bool write), + + TP_ARGS(id, num_offsets, write), + + TP_STRUCT__entry( + __field(u32, id) + __field(u32, num_offsets) + __field(bool, write) + ), + + TP_fast_assign( + __entry->id = id; + __entry->num_offsets = num_offsets; + __entry->write = write; + ), + + TP_printk("id=%u, num_offsets=%u, write=%d", + __entry->id, __entry->num_offsets, __entry->write) +); + TRACE_EVENT(nvhost_ioctl_ctrl_module_regrdwr, TP_PROTO(u32 id, u32 num_offsets, bool write), |