From 6da4d389b454c722137e09c2da015e59d9ef3231 Mon Sep 17 00:00:00 2001 From: Mikko Perttunen Date: Mon, 7 Jan 2019 10:40:15 +0200 Subject: 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 Change-Id: Id8532aba3c47fa312cb9fd9a82266ff84d381980 Reviewed-on: https://git-master.nvidia.com/r/2017274 Tested-by: Manikanta Maddireddy GVS: Gerrit_Virtual_Submit Reviewed-by: Manikanta Maddireddy Reviewed-by: Vidya Sagar Reviewed-by: mobile promotions Tested-by: mobile promotions --- include/linux/nvhost_interrupt_syncpt.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 include/linux/nvhost_interrupt_syncpt.h (limited to 'include/linux') 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 @@ +#ifndef NVHOST_INTERRUPT_SYNCPT_H +#define NVHOST_INTERRUPT_SYNCPT_H + +#include + +struct nvhost_interrupt_syncpt; + +struct nvhost_interrupt_syncpt *nvhost_interrupt_syncpt_get( + struct device_node *np, void (*callback)(void *), void *private_data); +u32 nvhost_interrupt_syncpt_get_syncpt_index(struct nvhost_interrupt_syncpt *is); +phys_addr_t nvhost_interrupt_syncpt_get_syncpt_addr( + struct nvhost_interrupt_syncpt *is); +void nvhost_interrupt_syncpt_free(struct nvhost_interrupt_syncpt *is); +int nvhost_interrupt_syncpt_prime(struct nvhost_interrupt_syncpt *is); + +#endif -- cgit v1.2.2