mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 18:16:01 +03:00
Add support for gp10b in a virtualized environment. Bug 1677153 VFND-693 Change-Id: I919ffa44c6773940a7a3411ee8bbc403a992b7cb Signed-off-by: Aingara Paramakuru <aparamakuru@nvidia.com> Reviewed-on: http://git-master/r/792556 Reviewed-on: http://git-master/r/806193 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
37 lines
1.3 KiB
C
37 lines
1.3 KiB
C
/*
|
|
* NVIDIA GPU ID functions, definitions.
|
|
*
|
|
* Copyright (c) 2014-2015, 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.
|
|
*/
|
|
#ifndef _NVGPU_GPUID_T18X_H_
|
|
#define _NVGPU_GPUID_T18X_H_
|
|
|
|
#define NVGPU_GPUID_GP10B \
|
|
GK20A_GPUID(NVGPU_GPU_ARCH_GP100, NVGPU_GPU_IMPL_GP10B)
|
|
|
|
#define NVGPU_COMPAT_TEGRA_GP10B "nvidia,tegra186-gp10b"
|
|
#define NVGPU_COMPAT_GENERIC_GP10B "nvidia,generic-gp10b"
|
|
|
|
#define TEGRA_18x_GPUID NVGPU_GPUID_GP10B
|
|
#define TEGRA_18x_GPUID_HAL gp10b_init_hal
|
|
#define TEGRA_18x_GPU_COMPAT_TEGRA NVGPU_COMPAT_TEGRA_GP10B
|
|
#define TEGRA_18x_GPU_COMPAT_GENERIC NVGPU_COMPAT_GENERIC_GP10B
|
|
struct gpu_ops;
|
|
extern int gp10b_init_hal(struct gk20a *);
|
|
extern struct gk20a_platform t18x_gpu_tegra_platform;
|
|
|
|
#ifdef CONFIG_TEGRA_GR_VIRTUALIZATION
|
|
#define TEGRA_18x_GPUID_VGPU_HAL vgpu_gp10b_init_hal
|
|
extern int vgpu_gp10b_init_hal(struct gk20a *);
|
|
#endif
|
|
#endif
|