diff options
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/nvgpu_common.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/nvgpu_common.h b/drivers/gpu/nvgpu/include/nvgpu/nvgpu_common.h new file mode 100644 index 00000000..85b4a3df --- /dev/null +++ b/drivers/gpu/nvgpu/include/nvgpu/nvgpu_common.h | |||
@@ -0,0 +1,35 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2016-2017, 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 NVGPU_COMMON_H | ||
18 | #define NVGPU_COMMON_H | ||
19 | |||
20 | struct gk20a; | ||
21 | struct class; | ||
22 | |||
23 | int nvgpu_probe(struct gk20a *g, | ||
24 | const char *debugfs_symlink, | ||
25 | const char *interface_name, | ||
26 | struct class *class); | ||
27 | |||
28 | #define NVGPU_REQUEST_FIRMWARE_NO_WARN BIT(0) | ||
29 | #define NVGPU_REQUEST_FIRMWARE_NO_SOC BIT(1) | ||
30 | |||
31 | const struct firmware *nvgpu_request_firmware(struct gk20a *g, | ||
32 | const char *fw_name, | ||
33 | int flags); | ||
34 | |||
35 | #endif | ||