Files
linux-nv-oot/drivers/video/tegra/nvmap/nvmap_dev_int.h
Ketan Patil f384316969 video: tegra: nvmap: Refactor nvmap_dev unit
- Add nvmap_dev.h file which include declaration for functions and data
structs which are exposed by nvmap_dev unit to other units.
- Also, add nvmap_dev_int.h file which include declaration for
functions which are internal to nvmap_dev unit that can be called by
files within nvmap_dev unit.
- Move definition of nvmap_handle_get_from_id, nvmap_install_fd,
find_range_of_handles to nvmap_handle.c as they belong to nvmap_handle
unit.
- Cleanup nvmap_priv.h by moving all relevant items for nvmap_dev unit
to nvmap_dev unit.
- Remove nvmap_mm.c file as nvmap_zap_handle is the only function
present; move it to nvmap_cache.c where it's being called.
- Remove function declarations whose definition are not present.

JIRA TMM-5694
JIRA TMM-5730

Change-Id: Ifd45235076da2ef0c628f3179d828c0ccadf6df2
Signed-off-by: Ketan Patil <ketanp@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3223994
Reviewed-by: Pritesh Raithatha <praithatha@nvidia.com>
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
2025-07-24 10:19:07 +00:00

57 lines
1.8 KiB
C

/* SPDX-License-Identifier: GPL-2.0-only */
/* SPDX-FileCopyrightText: Copyright (c) 2010-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. */
#ifndef __NVMAP_DEV_INT_H
#define __NVMAP_DEV_INT_H
int nvmap_probe(struct platform_device *pdev);
int nvmap_remove(struct platform_device *pdev);
int nvmap_init(struct platform_device *pdev);
int nvmap_ioctl_get_ivcid(struct file *filp, void __user *arg);
int nvmap_ioctl_getfd(struct file *filp, void __user *arg);
int nvmap_ioctl_alloc(struct file *filp, void __user *arg);
int nvmap_ioctl_alloc_ivm(struct file *filp, void __user *arg);
int nvmap_ioctl_free(struct file *filp, unsigned long arg);
int nvmap_ioctl_create(struct file *filp, unsigned int cmd, void __user *arg);
int nvmap_ioctl_create_from_va(struct file *filp, void __user *arg);
int nvmap_ioctl_create_from_ivc(struct file *filp, void __user *arg);
int nvmap_ioctl_get_ivc_heap(struct file *filp, void __user *arg);
int nvmap_ioctl_cache_maint(struct file *filp, void __user *arg, int size);
int nvmap_ioctl_rw_handle(struct file *filp, int is_read, void __user *arg,
size_t op_size);
int nvmap_ioctl_gup_test(struct file *filp, void __user *arg);
int nvmap_ioctl_set_tag_label(struct file *filp, void __user *arg);
int nvmap_ioctl_get_available_heaps(struct file *filp, void __user *arg);
int nvmap_ioctl_get_handle_parameters(struct file *filp, void __user *arg);
int nvmap_ioctl_get_sci_ipc_id(struct file *filp, void __user *arg);
int nvmap_ioctl_handle_from_sci_ipc_id(struct file *filp, void __user *arg);
int nvmap_ioctl_query_heap_params(struct file *filp, void __user *arg);
int nvmap_ioctl_query_heap_params_numa(struct file *filp, void __user *arg);
int nvmap_ioctl_dup_handle(struct file *filp, void __user *arg);
int nvmap_ioctl_get_fd_from_list(struct file *filp, void __user *arg);
#endif /* __NVMAP_DEV_INT_H */