Files
linux-nv-oot/drivers/video/tegra/host/capture/capture-support.h
Frank Chen 5f087cb0ed video: host: Build nvhost camera as OOT modules
Port the nvhost driver below from /kernel/nvidia to
/kernel/nvidia-oot as OOT modules and switching from
using downstream nvhost driver to upstream host1x
driver:
- capture support driver
- nvcsi driver
- vi driver
- isp driver

Change-Id: I31814f202816230029bd8454b8ff58530a96f436
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2797339
Reviewed-by: Ankur Pawar <ankurp@nvidia.com>
Reviewed-by: Shiva Dubey <sdubey@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2022-12-13 06:15:46 -08:00

31 lines
774 B
C

/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Capture support for syncpoint and GoS management
*
* Copyright (c) 2017-2022, NVIDIA Corporation. All rights reserved.
*/
#ifndef _CAPTURE_SUPPORT_H_
#define _CAPTURE_SUPPORT_H_
#include <linux/types.h>
#include <linux/platform_device.h>
int capture_alloc_syncpt(struct platform_device *pdev,
const char *name,
uint32_t *syncpt_id);
void capture_release_syncpt(struct platform_device *pdev, uint32_t id);
void capture_get_gos_table(struct platform_device *pdev,
int *gos_count,
const dma_addr_t **gos_table);
int capture_get_syncpt_gos_backing(struct platform_device *pdev,
uint32_t id,
dma_addr_t *syncpt_addr,
uint32_t *gos_index,
uint32_t *gos_offset);
#endif /* _CAPTURE_SUPPORT_H_ */