Files
linux-nv-oot/drivers/video/tegra/host/nvdla/dla_channel.h
Arvind M 29ec18d2bc nvdla: kmd: fix copyright header license to GPL v2
Bug 5065840

Change-Id: I2012645108457974e24d3c8799ee9412393408e1
Signed-off-by: Arvind M <am@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3291589
Reviewed-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
Reviewed-by: Vishal Thoke <vthoke@nvidia.com>
Reviewed-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com>
Reviewed-by: Ken Adams <kadams@nvidia.com>
2025-07-24 10:19:14 +00:00

39 lines
1.1 KiB
C

/* SPDX-License-Identifier: GPL-2.0-only */
/* SPDX-FileCopyrightText: Copyright (c) 2022-2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
*
* NVDLA channel submission
*/
#ifndef __NVHOST_NVDLA_CHANNEL_H__
#define __NVHOST_NVDLA_CHANNEL_H__
#include "dla_queue.h"
#include "nvdla.h"
#include "port/nvdla_fw.h"
#if IS_ENABLED(CONFIG_TEGRA_NVDLA_CHANNEL)
struct platform_device *nvdla_channel_map(struct platform_device *pdev,
struct nvdla_queue *queue);
void nvdla_putchannel(struct nvdla_queue *queue);
int nvdla_send_cmd_channel(struct platform_device *pdev,
struct nvdla_queue *queue,
struct nvdla_cmd_data *cmd_data,
struct nvdla_task *task);
#else
static inline struct platform_device *nvdla_channel_map(struct platform_device *pdev,
struct nvdla_queue *queue)
{
return NULL;
}
static inline void nvdla_putchannel(struct nvdla_queue *queue) { }
static inline int nvdla_send_cmd_channel(struct platform_device *pdev,
struct nvdla_queue *queue,
struct nvdla_cmd_data *cmd_data,
struct nvdla_task *task)
{
return -EOPNOTSUPP;
}
#endif
#endif /* End of __NVHOST_NVDLA_CHANNEL_H__ */