diff options
| author | Mikko Perttunen <mperttunen@nvidia.com> | 2019-01-07 03:40:15 -0500 |
|---|---|---|
| committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2019-02-14 16:00:10 -0500 |
| commit | 6da4d389b454c722137e09c2da015e59d9ef3231 (patch) | |
| tree | 7ce352f7d4bb1e8dd554d39b72842c85d5b7f98a /include/linux | |
| parent | f7296cb0c9e45fe6d54ce3c343425233619d8b3b (diff) | |
video: tegra: host: Syncpoint interrupt callbacks
Add a kernel interface for allocating syncpoints for the purpose of
getting callbacks when they get incremented, e.g. for synchronization
with external DMA masters.
Jira HOSTX-443
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Change-Id: Id8532aba3c47fa312cb9fd9a82266ff84d381980
Reviewed-on: https://git-master.nvidia.com/r/2017274
Tested-by: Manikanta Maddireddy <mmaddireddy@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Manikanta Maddireddy <mmaddireddy@nvidia.com>
Reviewed-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/nvhost_interrupt_syncpt.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/nvhost_interrupt_syncpt.h b/include/linux/nvhost_interrupt_syncpt.h new file mode 100644 index 000000000..ec258b57e --- /dev/null +++ b/include/linux/nvhost_interrupt_syncpt.h | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | #ifndef NVHOST_INTERRUPT_SYNCPT_H | ||
| 2 | #define NVHOST_INTERRUPT_SYNCPT_H | ||
| 3 | |||
| 4 | #include <linux/of.h> | ||
| 5 | |||
| 6 | struct nvhost_interrupt_syncpt; | ||
| 7 | |||
| 8 | struct nvhost_interrupt_syncpt *nvhost_interrupt_syncpt_get( | ||
| 9 | struct device_node *np, void (*callback)(void *), void *private_data); | ||
| 10 | u32 nvhost_interrupt_syncpt_get_syncpt_index(struct nvhost_interrupt_syncpt *is); | ||
| 11 | phys_addr_t nvhost_interrupt_syncpt_get_syncpt_addr( | ||
| 12 | struct nvhost_interrupt_syncpt *is); | ||
| 13 | void nvhost_interrupt_syncpt_free(struct nvhost_interrupt_syncpt *is); | ||
| 14 | int nvhost_interrupt_syncpt_prime(struct nvhost_interrupt_syncpt *is); | ||
| 15 | |||
| 16 | #endif | ||
