summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.h b/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.h
index 6844ee69..d413942a 100644
--- a/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.h
@@ -1,7 +1,7 @@
1/* 1/*
2 * GK20A Graphics Context 2 * GK20A Graphics Context
3 * 3 *
4 * Copyright (c) 2011-2014, NVIDIA CORPORATION. All rights reserved. 4 * Copyright (c) 2011-2016, NVIDIA CORPORATION. All rights reserved.
5 * 5 *
6 * This program is free software; you can redistribute it and/or modify it 6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License, 7 * under the terms and conditions of the GNU General Public License,
@@ -75,6 +75,13 @@ union __max_name {
75#define NETLIST_REGIONID_NETLIST_NUM 18 75#define NETLIST_REGIONID_NETLIST_NUM 18
76#define NETLIST_REGIONID_CTXREG_PPC 19 76#define NETLIST_REGIONID_CTXREG_PPC 19
77#define NETLIST_REGIONID_CTXREG_PMPPC 20 77#define NETLIST_REGIONID_CTXREG_PMPPC 20
78#define NETLIST_REGIONID_NVPERF_CTXREG_SYS 21
79#define NETLIST_REGIONID_NVPERF_FBP_CTXREGS 22
80#define NETLIST_REGIONID_NVPERF_CTXREG_GPC 23
81#define NETLIST_REGIONID_NVPERF_FBP_ROUTER 24
82#define NETLIST_REGIONID_NVPERF_GPC_ROUTER 25
83#define NETLIST_REGIONID_CTXREG_PMLTC 26
84#define NETLIST_REGIONID_CTXREG_PMFBPA 27
78 85
79struct netlist_region { 86struct netlist_region {
80 u32 region_id; 87 u32 region_id;
@@ -114,6 +121,11 @@ struct u32_list_gk20a {
114 u32 count; 121 u32 count;
115}; 122};
116 123
124struct ctxsw_buf_offset_map_entry {
125 u32 addr; /* Register address */
126 u32 offset; /* Offset in ctxt switch buffer */
127};
128
117static inline 129static inline
118struct av_gk20a *alloc_av_list_gk20a(struct av_list_gk20a *avl) 130struct av_gk20a *alloc_av_list_gk20a(struct av_list_gk20a *avl)
119{ 131{