summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp10b/mm_gp10b.h
blob: f34200a046e66f5c92f1c3f8cf7016c92f088bc9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 * Copyright (c) 2014, 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 MM_GP10B_H
#define MM_GP10B_H

#include <linux/version.h>

#define NVGPU_MM_GET_IO_COHERENCE_BIT	35

#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 18, 0)
#define NVGPU_USE_NEW_ALLOCATOR	1
#else
#define NVGPU_USE_NEW_ALLOCATOR	0
#endif

struct gpu_ops;

void gp10b_init_mm(struct gpu_ops *gops);
#endif