1a56866a9SBen Skeggs /*
2a56866a9SBen Skeggs  * Copyright 2012 Red Hat Inc.
3a56866a9SBen Skeggs  *
4a56866a9SBen Skeggs  * Permission is hereby granted, free of charge, to any person obtaining a
5a56866a9SBen Skeggs  * copy of this software and associated documentation files (the "Software"),
6a56866a9SBen Skeggs  * to deal in the Software without restriction, including without limitation
7a56866a9SBen Skeggs  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8a56866a9SBen Skeggs  * and/or sell copies of the Software, and to permit persons to whom the
9a56866a9SBen Skeggs  * Software is furnished to do so, subject to the following conditions:
10a56866a9SBen Skeggs  *
11a56866a9SBen Skeggs  * The above copyright notice and this permission notice shall be included in
12a56866a9SBen Skeggs  * all copies or substantial portions of the Software.
13a56866a9SBen Skeggs  *
14a56866a9SBen Skeggs  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15a56866a9SBen Skeggs  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16a56866a9SBen Skeggs  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
17a56866a9SBen Skeggs  * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
18a56866a9SBen Skeggs  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19a56866a9SBen Skeggs  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20a56866a9SBen Skeggs  * OTHER DEALINGS IN THE SOFTWARE.
21a56866a9SBen Skeggs  *
22a56866a9SBen Skeggs  * Authors: Ben Skeggs, Ilia Mirkin
23a56866a9SBen Skeggs  */
24a56866a9SBen Skeggs #include <engine/vp.h>
25a56866a9SBen Skeggs 
26c79a191bSBen Skeggs #include <nvif/class.h>
27a56866a9SBen Skeggs 
28c79a191bSBen Skeggs static const struct nvkm_xtensa_func
2998b20c9aSBen Skeggs g84_vp = {
3098b20c9aSBen Skeggs 	.fifo_val = 0x111,
3198b20c9aSBen Skeggs 	.unkd28 = 0x9c544,
32c79a191bSBen Skeggs 	.sclass = {
33c79a191bSBen Skeggs 		{ -1, -1, NV74_VP2 },
34c79a191bSBen Skeggs 		{}
35c79a191bSBen Skeggs 	}
36a56866a9SBen Skeggs };
37a56866a9SBen Skeggs 
3898b20c9aSBen Skeggs int
g84_vp_new(struct nvkm_device * device,enum nvkm_subdev_type type,int inst,struct nvkm_engine ** pengine)39*fcc08a7cSBen Skeggs g84_vp_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst,
40*fcc08a7cSBen Skeggs 	   struct nvkm_engine **pengine)
41a56866a9SBen Skeggs {
42*fcc08a7cSBen Skeggs 	return nvkm_xtensa_new_(&g84_vp, device, type, inst, true, 0x00f000, pengine);
43a56866a9SBen Skeggs }
44