From 06fe28567d45c8fb1c2a04f0f007fa5d750b849d Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Thu, 23 Mar 2017 14:19:01 -0700 Subject: gpu: nvgpu: Move TSG IOCTL code to Linux module Move TSG IOCTL specific code to Linux module. This clears most Linux dependencies from tsg_gk20a.c. Move also remaining file_operations declarations from channel_gk20a.h to ioctl_channel.h. JIRA NVGPU-32 Change-Id: Idcc2a525ebe12b30db46c3893a2735509c41ff39 Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/1330805 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/linux/ioctl_tsg.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 drivers/gpu/nvgpu/common/linux/ioctl_tsg.h (limited to 'drivers/gpu/nvgpu/common/linux/ioctl_tsg.h') diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_tsg.h b/drivers/gpu/nvgpu/common/linux/ioctl_tsg.h new file mode 100644 index 00000000..64d7a3da --- /dev/null +++ b/drivers/gpu/nvgpu/common/linux/ioctl_tsg.h @@ -0,0 +1,26 @@ +/* + * 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. + */ +#ifndef NVGPU_IOCTL_TSG_H +#define NVGPU_IOCTL_TSG_H + +struct inode; +struct file; +struct gk20a; + +int nvgpu_ioctl_tsg_dev_release(struct inode *inode, struct file *filp); +int nvgpu_ioctl_tsg_dev_open(struct inode *inode, struct file *filp); +int nvgpu_ioctl_tsg_open(struct gk20a *g, struct file *filp); +long nvgpu_ioctl_tsg_dev_ioctl(struct file *filp, + unsigned int cmd, unsigned long arg); + +#endif -- cgit v1.2.2