This file is indexed.

/usr/share/xtrace/dga.proto is in xtrace 1.3.1-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
# This file is part of "xtrace"
# Copyright (C) 2011 Ville Syrjala
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that 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; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
#
# This file is based on /usr/include/X11/extensions/xf86dga1const.h,
# /usr/include/X11/extensions/xf86dga1proto.h and
# /usr/include/X11/extensions/xf86dgaproto.h which state:
#
# Copyright (c) 1995  Jon Tombs
# Copyright (c) 1995  XFree86 Inc
#
# This file is based on /usr/include/X11/extensions/xf86dgaconst.h which states:
#
# Copyright (c) 1999  XFree86 Inc
#
# and those files it is based on are available under:
#
# 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
# XFREE86 PROJECT 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.
#
# Except as contained in this notice, the name of the XFree86 Project shall not
# be used in advertising or otherwise to promote the sale, use or other dealings
# in this Software without prior written authorization from the XFree86 Project.

EXTENSION "XFree86-DGA" DGA
USE core

REQUESTS
DGAQueryVersion RESPONDS
DGA1GetVideoLL RESPONDS
DGA1DirectVideo
DGA1GetViewPortSize RESPONDS
DGA1SetViewPort
DGA1GetVidPage RESPONDS
DGA1SetVidPage
DGA1InstallColormap
DGA1QueryDirectVideo RESPONDS
DGA1ViewPortChanged RESPONDS
UNKNOWN
UNKNOWN
DGA2QueryModes RESPONDS
DGA2SetMode RESPONDS
DGA2SetViewport
DGA2InstallColormap
DGA2SelectInput
DGA2FillRectangle
DGA2CopyArea
DGA2CopyTransparentArea
DGA2GetViewportStatus RESPONDS
DGA2Sync RESPONDS
DGA2OpenFrameBuffer RESPONDS
DGA2CloseFrameBuffer
DGA2SetClientVersion
DGA2ChangePixmapMode RESPONDS
DGA2CreateColormap
END

EVENTS
UNKNOWN
UNKNOWN
KeyPress
KeyRelease
ButtonPress
ButtonRelease
MotionNotify
END

ERRORS
ClientNotLocal
NoDirectVideoMode
ScreenNotActive
DirectNotActivated
OperationNotSupported
END

BITMASK directvideoflags
0x0001 DirectPresent
0x0002 DirectGraphics
0x0004 DirectMouse
0x0008 DirectKeyb
0x0100 HasColormap
0x0200 DirectColormap
END
TYPE DIRECTVIDEOFLAGS16 BITMASK16 directvideoflags
TYPE DIRECTVIDEOFLAGS32 BITMASK32 directvideoflags

BITMASK viewportflags
0x00000001	FlipImmediate
0x00000002	FlipRetrace
END
TYPE VIEWPORTFLAGS BITMASK32 viewportflags

BITMASK modeflags
0x00000001	ConcurrentAccess
0x00000002	SolidFillRect
0x00000004	BlitRect
0x00000008	BlitTransRect
0x00000010	Pixmap
0x00010000	Interlaced
0x00020000	Doublescan
END
TYPE MODEFLAGS BITMASK32 modeflags

CONSTANTS pixmapmodeflags
0	PixmapModeLarge
1	PixmapModeSmall
END
TYPE PIXMAPMODEFLAGS CARD32 constants pixmapmodeflags

BITMASK fbextraflags
0x00000001	NeedRoot
END
TYPE FBEXTRAFLAGS BITMASK32 fbextraflags

REQUEST DGAQueryVersion
END
RESPONSE DGAQueryVersion
 8	major-version	UINT16
10	minor-version	UINT16
END

REQUEST DGA1GetVideoLL
 4	screen	UINT16
END
RESPONSE DGA1GetVideoLL
 8	offset		UINT32
12	width		UINT32
16	bank-size	UINT32
20	ram-size	UINT32
END

REQUEST DGA1InstallColormap
 4	screen		UINT16
 8	id		COLORMAP
END

REQUEST DGA1DirectVideo
 4	screen		UINT16
 6	enable		DIRECTVIDEOFLAGS16
END

REQUEST DGA1GetViewPortSize
 4	screen		UINT16
END
RESPONSE DGA1GetViewPortSize
 8	width		UINT32
12	height		UINT32
END

REQUEST DGA1SetViewPort
 4	screen		UINT16
 8	x		UINT32
12	y		UINT32
END

REQUEST DGA1GetVidPage
 4	screen		UINT16
END
RESPONSE DGA1GetVidPage
 8	vpage		UINT32
END

REQUEST DGA1SetVidPage
 4	screen		UINT16
 6	vpage		UINT16
END

REQUEST DGA1QueryDirectVideo
 4	screen		UINT16
END
RESPONSE DGA1QueryDirectVideo
 8	flags		DIRECTVIDEOFLAGS32
END

REQUEST DGA1ViewPortChanged
 4	screen		UINT16
 6	num_pages	UINT16
END
RESPONSE DGA1ViewPortChanged
 8	result		UINT32
END

LIST MODEINFO variable min-length 72
 0	byte-order	UINT8
 1	depth		UINT8
 2	num		UINT16
 4	bpp		UINT16
 6	name-size	COUNT16
 8	vsync		UFRACTION32_32
16	flags		MODEFLAGS
20	image-width	UINT16
22	image-height	UINT16
24	pixmap-width	UINT16
26	pixmap-height	UINT16
28	bytes-per-scanline	UINT32
32	red-mask	CARD32
36	green-mask	CARD32
40	blue-mask	CARD32
44	visual-class	UINT16
48	viewport-width	UINT16
50	viewport-height	UINT16
52	viewport-xstep	UINT16
54	viewport-ystep	UINT16
56	viewport-xmax	UINT16
58	viewport-ymax	UINT16
60	viewport-flags	VIEWPORTFLAGS
64	reserved1	UINT32
68	reserved2	UINT32
72	name		STRING8
ROUND
END

REQUEST DGA2QueryModes
 4	screen		UINT32
END
RESPONSE DGA2QueryModes
 8	number		COUNT32
32	modes		LISTofMODEINFO
END

REQUEST DGA2SetMode
 4	screen		UINT32
 8	mode		UINT32
12	pid		PIXMAP
END
RESPONSE DGA2SetMode
 8	flags		MODEFLAGS
32	mode		LISTofMODEINFO
END

REQUEST DGA2OpenFrameBuffer
 4	screen		UINT32
END
RESPONSE DGA2OpenFrameBuffer
 8	mem1		CARD32
12	mem2		CARD32
16	size		CARD32
20	offset		UINT32
24	extra		FBEXTRAFLAGS
32	device-name	STRING8
END

REQUEST DGA2CloseFrameBuffer
 4	screen		UINT32
END

REQUEST DGA2SetViewport
 4	screen		UINT32
 8	x		UINT16
10	y		UINT16
12	flags		VIEWPORTFLAGS
END

REQUEST DGA2InstallColormap
 4	screen		UINT32
 8	cmap		COLORMAP
END

REQUEST DGA2SelectInput
 4	screen		UINT32
 8	mask		SETofDEVICEEVENT
END

REQUEST DGA2FillRectangle
 4	screen		UINT32
 8	x		UINT16
10	y		UINT16
12	width		UINT16
14	height		UINT16
16	color		CARD32
END

REQUEST DGA2CopyArea
 4	screen		UINT32
 8	src-x		UINT16
10	src-y		UINT16
12	width		UINT16
14	height		UINT16
16	dst-x		UINT16
18	dst-y		UINT16
END

REQUEST DGA2CopyTransparentArea
 4	screen		UINT32
 8	src-x		UINT16
10	src-y		UINT16
12	width		UINT16
14	height		UINT16
16	dst-x		UINT16
18	dst-y		UINT16
20	key		UINT32
END

REQUEST DGA2GetViewportStatus
 4	screen		UINT32
END
RESPONSE DGA2GetViewportStatus
 8	status		CARD32
END

REQUEST DGA2Sync
 4	screen		UINT32
END
RESPONSE DGA2Sync
END

REQUEST DGA2SetClientVersion
 4	major		UINT16
 6	minor		UINT16
END

REQUEST DGA2ChangePixmapMode
 4	screen		UINT32
 8	x		UINT16
10	y		UINT16
12	flags		PIXMAPMODEFLAGS
END
RESPONSE DGA2ChangePixmapMode
 8	screen		UINT32
12	x		UINT16
14	y		UINT16
END

REQUEST DGA2CreateColormap
 4	screen		UINT32
 8	id		COLORMAP
12	mode		UINT32
16	alloc		ENUM8 alloc
END

templateEVENT Key
 1	keycode	KEYCODE
 8	time	TIMESTAMP
16	screen	INT16
18	state	SETofKEYBUTMASK
END

EVENT KeyPress ALIASES Key
EVENT KeyRelease ALIASES Key

templateEVENT Button
 1	button	BUTTON
 8	time	TIMESTAMP
16	screen	INT16
18	state	SETofKEYBUTMASK
END

EVENT ButtonPress ALIASES Button
EVENT ButtonRelease ALIASES Button

EVENT MotionNotify
 8	time	TIMESTAMP
12	dx	INT16
14	dy	INT16
16	screen	INT16
18	state	SETofKEYBUTMASK
END

EOF