summaryrefslogtreecommitdiff
path: root/drm/nouveau/include/nvkm/hwref/gk20a/nv_master_hwref.h
blob: 654d974e82be189463dcde5ff99c82b4042b112b (plain)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/*
 * Copyright (c) 2015, NVIDIA CORPORATION. All rights reserved.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"),
 * to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 * and/or sell copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 * DEALINGS IN THE SOFTWARE.
 */
#ifndef __nv_gk20a_master_hwref_h__
#define __nv_gk20a_master_hwref_h__

#define NV_PMC_BOOT_0                                            0
#define NV_PMC_BOOT_0_MINOR_REVISION                           3:0
#define NV_PMC_BOOT_0_MAJOR_REVISION                           7:4
#define NV_PMC_BOOT_0_IMPLEMENTATION                         23:20
#define NV_PMC_BOOT_0_ARCHITECTURE                           28:24
#define NV_PMC_INTR_0                                        0x100
#define NV_PMC_INTR_0_PFIFO                                    8:8
#define NV_PMC_INTR_0_PGRAPH                                 12:12
#define NV_PMC_INTR_0_PMU                                    24:24
#define NV_PMC_INTR_0_LTC                                    25:25
#define NV_PMC_INTR_0_PBUS                                   28:28
#define NV_PMC_INTR_0_PRIV_RING                              30:30
#define NV_PMC_INTR_1                                        0x104
#define NV_PMC_INTR_MSK_0                                    0x640
#define NV_PMC_INTR_MSK_0_PMU                                24:24
#define NV_PMC_INTR_MSK_1                                    0x644
#define NV_PMC_INTR_MSK_1_PMU                                24:24
#define NV_PMC_INTR_EN_0                                     0x140
#define NV_PMC_INTR_EN_0_INTA                                  1:0
#define NV_PMC_INTR_EN_0_INTA_HARDWARE                           1
#define NV_PMC_INTR_EN_1                                     0x144
#define NV_PMC_INTR_EN_1_INTA                                  1:0
#define NV_PMC_INTR_EN_1_INTA_HARDWARE                           1
#define NV_PMC_INTR_LTC                                      0x17c
#define NV_PMC_ENABLE                                        0x200
#define NV_PMC_ENABLE_XBAR                                     2:2
#define NV_PMC_ENABLE_L2                                       3:3
#define NV_PMC_ENABLE_PMEDIA                                   4:4
#define NV_PMC_ENABLE_PRIV_RING                                5:5
#define NV_PMC_ENABLE_CE0                                      6:6
#define NV_PMC_ENABLE_PFIFO                                    8:8
#define NV_PMC_ENABLE_PGRAPH                                 12:12
#define NV_PMC_ENABLE_PWR                                    13:13
#define NV_PMC_ENABLE_PFB                                    20:20
#define NV_PMC_ENABLE_CE2                                    21:21
#define NV_PMC_ENABLE_BLG                                    27:27
#define NV_PMC_ENABLE_PERFMON                                28:28
#define NV_PMC_ENABLE_HUB                                    29:29
#define NV_PMC_ENABLE_PB                                     0x204
#define NV_PMC_ENABLE_PB_0                                     0:0
#define NV_PMC_ENABLE_PB_SEL(i)                            (i):(i)
#define NV_PMC_ELPG_ENABLE                                   0x20c
#define NV_PMC_ELPG_ENABLE_XBAR                                2:2
#define NV_PMC_ELPG_ENABLE_PFB                               20:20
#define NV_PMC_ELPG_ENABLE_HUB                               29:29

#endif /* __nv_gk20a_master_hwref_h__ */