From 8b3d94ffd3e5b6d7a622c6ad54692d79bf39d1ce Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Wed, 19 Apr 2017 14:09:05 -0700 Subject: gpu: nvgpu: Move sysfs dependencies from HAL to Linux Move sysfs dependencies from gk20a/ and gp10b/ to common/linux. At the same time the gk20a and gp10b variants are merged into one. JIRA NVGPU-48 Change-Id: I212be8f1beb8d20a57de04a57513e8fa0e2e83b4 Signed-off-by: Terje Bergstrom Reviewed-on: https://git-master/r/1466055 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/linux/sysfs.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 drivers/gpu/nvgpu/common/linux/sysfs.h (limited to 'drivers/gpu/nvgpu/common/linux/sysfs.h') diff --git a/drivers/gpu/nvgpu/common/linux/sysfs.h b/drivers/gpu/nvgpu/common/linux/sysfs.h new file mode 100644 index 00000000..80925844 --- /dev/null +++ b/drivers/gpu/nvgpu/common/linux/sysfs.h @@ -0,0 +1,24 @@ +/* + * 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 . + */ +#ifndef NVGPU_SYSFS_H +#define NVGPU_SYSFS_H + +struct device; + +int nvgpu_create_sysfs(struct device *dev); +void nvgpu_remove_sysfs(struct device *dev); + +#endif -- cgit v1.2.2