summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv11b/subctx_gv11b.h
blob: 5e4e99f5137a0c61703e5cdcc283d5b1c73f9731 (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
/*
 *
 * Volta GPU series Subcontext
 *
 * Copyright (c) 2016 - 2017, 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.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program.
 */
#ifndef __SUBCONTEXT_GV11B_H__
#define __SUBCONTEXT_GV11B_H__

int gv11b_alloc_subctx_header(struct channel_gk20a *c);

void gv11b_free_subctx_header(struct channel_gk20a *c);

int gv11b_update_subctx_header(struct channel_gk20a *c, u64 gpu_va);

u32 gv11b_get_max_subctx_count(struct gk20a *g);
#endif /* __SUBCONTEXT_GV11B_H__ */