diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2018-04-06 12:46:55 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-04-22 12:24:44 -0400 |
commit | c918c42a4a3651f757c6966aead4b07eb4b56697 (patch) | |
tree | 09a13f857e14f58aed1e18d0dc9c7d61722936b9 /drivers/gpu/nvgpu/common/linux/sim_pci.h | |
parent | 32f6ffee1379f1458d35c8d74e8516f96a3e390e (diff) |
gpu: nvgpu: Implement dGPU simulation support
Implement support for dGPU fmodel. The message protocol is slightly
different and accessed via BAR0 aperture.
JIRA NVGPUT-41
Change-Id: Ide3c52a751530f520854965c1eba19fa8339a315
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1694963
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/sim_pci.h')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/sim_pci.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/sim_pci.h b/drivers/gpu/nvgpu/common/linux/sim_pci.h new file mode 100644 index 00000000..22a3169c --- /dev/null +++ b/drivers/gpu/nvgpu/common/linux/sim_pci.h | |||
@@ -0,0 +1,28 @@ | |||
1 | /* | ||
2 | * | ||
3 | * GK20A sim support | ||
4 | * | ||
5 | * Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify it | ||
8 | * under the terms and conditions of the GNU General Public License, | ||
9 | * version 2, as published by the Free Software Foundation. | ||
10 | * | ||
11 | * This program is distributed in the hope it will be useful, but WITHOUT | ||
12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
14 | * more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License | ||
17 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
18 | */ | ||
19 | |||
20 | #ifndef __SIM_PCI_LINUX_H__ | ||
21 | #define __SIM_PCI_LINUX_H__ | ||
22 | |||
23 | #include "gk20a/sim_gk20a.h" | ||
24 | #include "sim.h" | ||
25 | |||
26 | int nvgpu_pci_init_sim_support(struct gk20a *g); | ||
27 | |||
28 | #endif | ||