diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/gp10b_sysfs.h')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/gp10b_sysfs.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/gp10b_sysfs.h b/drivers/gpu/nvgpu/gp10b/gp10b_sysfs.h new file mode 100644 index 00000000..786a3bb0 --- /dev/null +++ b/drivers/gpu/nvgpu/gp10b/gp10b_sysfs.h | |||
@@ -0,0 +1,29 @@ | |||
1 | /* | ||
2 | * GP10B specific sysfs files | ||
3 | * | ||
4 | * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify it | ||
7 | * under the terms and conditions of the GNU General Public License, | ||
8 | * version 2, as published by the Free Software Foundation. | ||
9 | * | ||
10 | * This program is distributed in the hope it will be useful, but WITHOUT | ||
11 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
12 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
13 | * more details. | ||
14 | */ | ||
15 | |||
16 | #ifndef _GP10B_SYSFS_H_ | ||
17 | #define _GP10B_SYSFS_H_ | ||
18 | |||
19 | #include <linux/version.h> | ||
20 | |||
21 | /*ECC Fuse*/ | ||
22 | #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 4, 0) | ||
23 | #define FUSE_OPT_ECC_EN 0x358 | ||
24 | #endif | ||
25 | |||
26 | void gp10b_create_sysfs(struct device *dev); | ||
27 | void gp10b_remove_sysfs(struct device *dev); | ||
28 | |||
29 | #endif /*_GP10B_SYSFS_H_*/ | ||