aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo/genhw/gen_regs.xml.h
blob: 6086760030499b4a8e16ca7021880b23c701f9a0 (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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
#ifndef GEN_REGS_XML
#define GEN_REGS_XML

/* Autogenerated file, DO NOT EDIT manually!

This file was generated by the rules-ng-ng headergen tool in this git repository:
https://github.com/olvaffe/envytools/
git clone https://github.com/olvaffe/envytools.git

Copyright (C) 2014 by the following authors:
- Chia-I Wu <olvaffe@gmail.com> (olv)

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 (including the
next paragraph) 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 COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS 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.
*/


#define GEN6_REG_MASK__MASK					0xffff0000
#define GEN6_REG_MASK__SHIFT					16
#define GEN6_REG__SIZE						0x400000
#define GEN7_REG_HS_INVOCATION_COUNT				0x2300

#define GEN7_REG_DS_INVOCATION_COUNT				0x2308

#define GEN6_REG_IA_VERTICES_COUNT				0x2310

#define GEN6_REG_IA_PRIMITIVES_COUNT				0x2318

#define GEN6_REG_VS_INVOCATION_COUNT				0x2320

#define GEN6_REG_GS_INVOCATION_COUNT				0x2328

#define GEN6_REG_GS_PRIMITIVES_COUNT				0x2330

#define GEN6_REG_CL_INVOCATION_COUNT				0x2338

#define GEN6_REG_CL_PRIMITIVES_COUNT				0x2340

#define GEN6_REG_PS_INVOCATION_COUNT				0x2348

#define GEN6_REG_PS_DEPTH_COUNT					0x2350

#define GEN6_REG_TIMESTAMP					0x2358


#define GEN7_REG_3DPRIM_END_OFFSET				0x2420

#define GEN7_REG_3DPRIM_START_VERTEX				0x2430

#define GEN7_REG_3DPRIM_VERTEX_COUNT				0x2434

#define GEN7_REG_3DPRIM_INSTANCE_COUNT				0x2438

#define GEN7_REG_3DPRIM_START_INSTANCE				0x243c

#define GEN7_REG_3DPRIM_BASE_VERTEX				0x2440

#define GEN6_REG_OACONTROL					0x2360
#define GEN6_REG_OACONTROL_COUNTER_SELECT__MASK			0x0000001c
#define GEN6_REG_OACONTROL_COUNTER_SELECT__SHIFT		2
#define GEN6_REG_OACONTROL_PERFORMANCE_COUNTER_ENABLE		(0x1 << 0)


#define GEN6_REG_SO_PRIM_STORAGE_NEEDED				0x2280

#define GEN6_REG_SO_NUM_PRIMS_WRITTEN				0x2288


#define GEN7_REG_SO_NUM_PRIMS_WRITTEN(i0)			(0x5200 + 0x8*(i0))
#define GEN7_REG_SO_NUM_PRIMS_WRITTEN__ESIZE			0x8
#define GEN7_REG_SO_NUM_PRIMS_WRITTEN__LEN			0x4

#define GEN7_REG_SO_PRIM_STORAGE_NEEDED(i0)			(0x5240 + 0x8*(i0))
#define GEN7_REG_SO_PRIM_STORAGE_NEEDED__ESIZE			0x8
#define GEN7_REG_SO_PRIM_STORAGE_NEEDED__LEN			0x4

#define GEN7_REG_SO_WRITE_OFFSET(i0)				(0x5280 + 0x8*(i0))
#define GEN7_REG_SO_WRITE_OFFSET__ESIZE				0x8
#define GEN7_REG_SO_WRITE_OFFSET__LEN				0x4


#define GEN7_REG_L3SQCREG1					0xb010
#define GEN7_REG_L3SQCREG1_CON4DCUNC				(0x1 << 24)
#define GEN7_REG_L3SQCREG1_SQGHPCI__MASK			0x00ff0000
#define GEN7_REG_L3SQCREG1_SQGHPCI__SHIFT			16
#define GEN7_REG_L3SQCREG1_SQGHPCI_18_6				(0x73 << 16)
#define GEN75_REG_L3SQCREG1_SQGPCI__MASK			0x00f80000
#define GEN75_REG_L3SQCREG1_SQGPCI__SHIFT			19
#define GEN75_REG_L3SQCREG1_SQGPCI_24				(0xc << 19)
#define GEN75_REG_L3SQCREG1_SQHPCI__MASK			0x0007c000
#define GEN75_REG_L3SQCREG1_SQHPCI__SHIFT			14
#define GEN75_REG_L3SQCREG1_SQHPCI_8				(0x4 << 14)

#define GEN7_REG_L3SQCREG2					0xb014

#define GEN7_REG_L3SQCREG3					0xb018

#define GEN7_REG_L3CNTLREG1					0xb01c

#define GEN7_REG_L3CNTLREG2					0xb020
#define GEN7_REG_L3CNTLREG2_DCWASLMB				(0x1 << 27)
#define GEN7_REG_L3CNTLREG2_DCWASS__MASK			0x07e00000
#define GEN7_REG_L3CNTLREG2_DCWASS__SHIFT			21
#define GEN7_REG_L3CNTLREG2_ROCPSLMB				(0x1 << 20)
#define GEN7_REG_L3CNTLREG2_RDOCPL__MASK			0x000fc000
#define GEN7_REG_L3CNTLREG2_RDOCPL__SHIFT			14
#define GEN7_REG_L3CNTLREG2_URBSLMB				(0x1 << 7)
#define GEN7_REG_L3CNTLREG2_URBALL__MASK			0x0000007e
#define GEN7_REG_L3CNTLREG2_URBALL__SHIFT			1
#define GEN7_REG_L3CNTLREG2_SLMMENB				(0x1 << 0)

#define GEN7_REG_L3CNTLREG3					0xb024
#define GEN7_REG_L3CNTLREG3_TWALSLMB				(0x1 << 21)
#define GEN7_REG_L3CNTLREG3_TXWYALL__MASK			0x001f8000
#define GEN7_REG_L3CNTLREG3_TXWYALL__SHIFT			15
#define GEN7_REG_L3CNTLREG3_CWASLMB				(0x1 << 14)
#define GEN7_REG_L3CNTLREG3_CTWYALL__MASK			0x00003f00
#define GEN7_REG_L3CNTLREG3_CTWYALL__SHIFT			8
#define GEN7_REG_L3CNTLREG3_ISWYSLMB				(0x1 << 7)
#define GEN7_REG_L3CNTLREG3_ISWYALL__MASK			0x0000007e
#define GEN7_REG_L3CNTLREG3_ISWYALL__SHIFT			1

#define GEN6_REG_BCS_SWCTRL					0x22200
#define GEN6_REG_BCS_SWCTRL_DST_TILING_Y			(0x1 << 1)
#define GEN6_REG_BCS_SWCTRL_SRC_TILING_Y			(0x1 << 0)


#endif /* GEN_REGS_XML */