summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/os/linux/os_ops.h
diff options
context:
space:
mode:
authorNitin Kumbhar <nkumbhar@nvidia.com>2018-08-10 01:04:17 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-08-29 23:34:34 -0400
commit94eebcdd8cacc9a2dc20485e0d3d15fc51507c2c (patch)
treed69221db59a680e1e45f44f397b8106f2db34816 /drivers/gpu/nvgpu/os/linux/os_ops.h
parent18e060227da92e4df8f2e5400fec7f6d7bdaad4a (diff)
gpu: nvgpu: linux: move os ops to a common file
Currently only cde uses nvgpu_os_linux_ops to set up linux specific ops. Move nvgpu_os_linux_ops of a gpu to a common file so that those can be reused for other os ops of that gpu. JIRA NVGPU-603 Change-Id: Icf1ff275d3832229137f730fe8183b8015e82673 Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1797902 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/os/linux/os_ops.h')
-rw-r--r--drivers/gpu/nvgpu/os/linux/os_ops.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/os/linux/os_ops.h b/drivers/gpu/nvgpu/os/linux/os_ops.h
new file mode 100644
index 00000000..af3ce0a7
--- /dev/null
+++ b/drivers/gpu/nvgpu/os/linux/os_ops.h
@@ -0,0 +1,22 @@
1/*
2 * Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License,
6 * version 2, as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11 * more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#ifndef __LINUX_OS_OPS_H
18#define __LINUX_OS_OPS_H
19
20int nvgpu_init_os_linux_ops(struct nvgpu_os_linux *l);
21
22#endif