1*26fbb4c8SBen Skeggs /*
2*26fbb4c8SBen Skeggs  * Copyright 2015 Red Hat Inc.
3*26fbb4c8SBen Skeggs  *
4*26fbb4c8SBen Skeggs  * Permission is hereby granted, free of charge, to any person obtaining a
5*26fbb4c8SBen Skeggs  * copy of this software and associated documentation files (the "Software"),
6*26fbb4c8SBen Skeggs  * to deal in the Software without restriction, including without limitation
7*26fbb4c8SBen Skeggs  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8*26fbb4c8SBen Skeggs  * and/or sell copies of the Software, and to permit persons to whom the
9*26fbb4c8SBen Skeggs  * Software is furnished to do so, subject to the following conditions:
10*26fbb4c8SBen Skeggs  *
11*26fbb4c8SBen Skeggs  * The above copyright notice and this permission notice shall be included in
12*26fbb4c8SBen Skeggs  * all copies or substantial portions of the Software.
13*26fbb4c8SBen Skeggs  *
14*26fbb4c8SBen Skeggs  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15*26fbb4c8SBen Skeggs  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16*26fbb4c8SBen Skeggs  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
17*26fbb4c8SBen Skeggs  * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
18*26fbb4c8SBen Skeggs  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19*26fbb4c8SBen Skeggs  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20*26fbb4c8SBen Skeggs  * OTHER DEALINGS IN THE SOFTWARE.
21*26fbb4c8SBen Skeggs  *
22*26fbb4c8SBen Skeggs  * Authors: Ben Skeggs <bskeggs@redhat.com>
23*26fbb4c8SBen Skeggs  */
24*26fbb4c8SBen Skeggs #include "priv.h"
25*26fbb4c8SBen Skeggs 
26*26fbb4c8SBen Skeggs static const struct nvkm_subdev_func
27*26fbb4c8SBen Skeggs gm200_privring = {
28*26fbb4c8SBen Skeggs 	.intr = gk104_privring_intr,
29*26fbb4c8SBen Skeggs };
30*26fbb4c8SBen Skeggs 
31*26fbb4c8SBen Skeggs int
gm200_privring_new(struct nvkm_device * device,enum nvkm_subdev_type type,int inst,struct nvkm_subdev ** pprivring)32*26fbb4c8SBen Skeggs gm200_privring_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst,
33*26fbb4c8SBen Skeggs 		   struct nvkm_subdev **pprivring)
34*26fbb4c8SBen Skeggs {
35*26fbb4c8SBen Skeggs 	return nvkm_subdev_new_(&gm200_privring, device, type, inst, pprivring);
36*26fbb4c8SBen Skeggs }
37