mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +03:00
Open source GPL/LGPL release
This commit is contained in:
39
drivers/gpu/nvgpu/os/linux/nvhost_priv.h
Normal file
39
drivers/gpu/nvgpu/os/linux/nvhost_priv.h
Normal file
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
* Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms and conditions of the GNU General Public License,
|
||||
* version 2, as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef __NVGPU_NVHOST_PRIV_H__
|
||||
#define __NVGPU_NVHOST_PRIV_H__
|
||||
|
||||
#include <nvgpu/os_fence_syncpts.h>
|
||||
|
||||
struct nvhost_fence;
|
||||
struct nvgpu_nvhost_dev {
|
||||
struct platform_device *host1x_pdev;
|
||||
};
|
||||
|
||||
int nvgpu_nvhost_fence_install(struct nvhost_fence *f, int fd);
|
||||
struct nvhost_fence *nvgpu_nvhost_fence_get(int fd);
|
||||
void nvgpu_nvhost_fence_put(struct nvhost_fence *f);
|
||||
void nvgpu_nvhost_fence_dup(struct nvhost_fence *f);
|
||||
struct nvhost_fence *nvgpu_nvhost_fence_create(struct platform_device *pdev,
|
||||
struct nvhost_ctrl_sync_fence_info *pts,
|
||||
u32 num_pts, const char *name);
|
||||
u32 nvgpu_nvhost_fence_num_pts(struct nvhost_fence *fence);
|
||||
int nvgpu_nvhost_fence_foreach_pt(struct nvhost_fence *fence,
|
||||
int (*iter)(struct nvhost_ctrl_sync_fence_info, void *),
|
||||
void *data);
|
||||
|
||||
#endif /* __NVGPU_NVHOST_PRIV_H__ */
|
||||
Reference in New Issue
Block a user