1c85ee6caSBen Skeggs /*
2c85ee6caSBen Skeggs  * Copyright 2007 Matthieu CASTET <castet.matthieu@free.fr>
3c85ee6caSBen Skeggs  * All Rights Reserved.
4c85ee6caSBen Skeggs  *
5c85ee6caSBen Skeggs  * Permission is hereby granted, free of charge, to any person obtaining a
6c85ee6caSBen Skeggs  * copy of this software and associated documentation files (the "Software"),
7c85ee6caSBen Skeggs  * to deal in the Software without restriction, including without limitation
8c85ee6caSBen Skeggs  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9c85ee6caSBen Skeggs  * and/or sell copies of the Software, and to permit persons to whom the
10c85ee6caSBen Skeggs  * Software is furnished to do so, subject to the following conditions:
11c85ee6caSBen Skeggs  *
12c85ee6caSBen Skeggs  * The above copyright notice and this permission notice (including the next
13c85ee6caSBen Skeggs  * paragr) shall be included in all copies or substantial portions of the
14c85ee6caSBen Skeggs  * Software.
15c85ee6caSBen Skeggs  *
16c85ee6caSBen Skeggs  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17c85ee6caSBen Skeggs  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18c85ee6caSBen Skeggs  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
19c85ee6caSBen Skeggs  * PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20c85ee6caSBen Skeggs  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21c85ee6caSBen Skeggs  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22c85ee6caSBen Skeggs  * DEALINGS IN THE SOFTWARE.
23c85ee6caSBen Skeggs  */
24c85ee6caSBen Skeggs #include "nv10.h"
25c85ee6caSBen Skeggs 
26c85ee6caSBen Skeggs static const struct nvkm_gr_func
27c85ee6caSBen Skeggs nv17_gr = {
28c85ee6caSBen Skeggs 	.init = nv10_gr_init,
29c85ee6caSBen Skeggs 	.intr = nv10_gr_intr,
30c85ee6caSBen Skeggs 	.tile = nv10_gr_tile,
31c85ee6caSBen Skeggs 	.chan_new = nv10_gr_chan_new,
32c85ee6caSBen Skeggs 	.sclass = {
33c85ee6caSBen Skeggs 		{ -1, -1, 0x0012, &nv04_gr_object }, /* beta1 */
34c85ee6caSBen Skeggs 		{ -1, -1, 0x0019, &nv04_gr_object }, /* clip */
35c85ee6caSBen Skeggs 		{ -1, -1, 0x0030, &nv04_gr_object }, /* null */
36c85ee6caSBen Skeggs 		{ -1, -1, 0x0039, &nv04_gr_object }, /* m2mf */
37c85ee6caSBen Skeggs 		{ -1, -1, 0x0043, &nv04_gr_object }, /* rop */
38c85ee6caSBen Skeggs 		{ -1, -1, 0x0044, &nv04_gr_object }, /* pattern */
39c85ee6caSBen Skeggs 		{ -1, -1, 0x004a, &nv04_gr_object }, /* gdi */
40c85ee6caSBen Skeggs 		{ -1, -1, 0x0052, &nv04_gr_object }, /* swzsurf */
41c85ee6caSBen Skeggs 		{ -1, -1, 0x005f, &nv04_gr_object }, /* blit */
42c85ee6caSBen Skeggs 		{ -1, -1, 0x0062, &nv04_gr_object }, /* surf2d */
43c85ee6caSBen Skeggs 		{ -1, -1, 0x0072, &nv04_gr_object }, /* beta4 */
44c85ee6caSBen Skeggs 		{ -1, -1, 0x0089, &nv04_gr_object }, /* sifm */
45c85ee6caSBen Skeggs 		{ -1, -1, 0x008a, &nv04_gr_object }, /* ifc */
46c85ee6caSBen Skeggs 		{ -1, -1, 0x009f, &nv04_gr_object }, /* blit */
47c85ee6caSBen Skeggs 		{ -1, -1, 0x0093, &nv04_gr_object }, /* surf3d */
48c85ee6caSBen Skeggs 		{ -1, -1, 0x0094, &nv04_gr_object }, /* ttri */
49c85ee6caSBen Skeggs 		{ -1, -1, 0x0095, &nv04_gr_object }, /* mtri */
50c85ee6caSBen Skeggs 		{ -1, -1, 0x0099, &nv04_gr_object },
51c85ee6caSBen Skeggs 		{}
52c85ee6caSBen Skeggs 	}
53c85ee6caSBen Skeggs };
54c85ee6caSBen Skeggs 
55c85ee6caSBen Skeggs int
nv17_gr_new(struct nvkm_device * device,enum nvkm_subdev_type type,int inst,struct nvkm_gr ** pgr)56*864d37c3SBen Skeggs nv17_gr_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_gr **pgr)
57c85ee6caSBen Skeggs {
58*864d37c3SBen Skeggs 	return nv10_gr_new_(&nv17_gr, device, type, inst, pgr);
59c85ee6caSBen Skeggs }
60