xref: /linux/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/ga100.c (revision 015ef6187f69eca7d9029e3f8e358a86041e403a)
1015ef618SBen Skeggs /*
2015ef618SBen Skeggs  * Copyright 2022 Red Hat Inc.
3015ef618SBen Skeggs  *
4015ef618SBen Skeggs  * Permission is hereby granted, free of charge, to any person obtaining a
5015ef618SBen Skeggs  * copy of this software and associated documentation files (the "Software"),
6015ef618SBen Skeggs  * to deal in the Software without restriction, including without limitation
7015ef618SBen Skeggs  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8015ef618SBen Skeggs  * and/or sell copies of the Software, and to permit persons to whom the
9015ef618SBen Skeggs  * Software is furnished to do so, subject to the following conditions:
10015ef618SBen Skeggs  *
11015ef618SBen Skeggs  * The above copyright notice and this permission notice shall be included in
12015ef618SBen Skeggs  * all copies or substantial portions of the Software.
13015ef618SBen Skeggs  *
14015ef618SBen Skeggs  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15015ef618SBen Skeggs  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16015ef618SBen Skeggs  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
17015ef618SBen Skeggs  * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
18015ef618SBen Skeggs  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19015ef618SBen Skeggs  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20015ef618SBen Skeggs  * OTHER DEALINGS IN THE SOFTWARE.
21015ef618SBen Skeggs  */
22015ef618SBen Skeggs #include "priv.h"
23015ef618SBen Skeggs 
24015ef618SBen Skeggs static struct nvkm_gsp_fwif
25015ef618SBen Skeggs ga100_gsps[] = {
26015ef618SBen Skeggs 	{ -1, gv100_gsp_nofw, &gv100_gsp },
27015ef618SBen Skeggs 	{}
28015ef618SBen Skeggs };
29015ef618SBen Skeggs 
30015ef618SBen Skeggs int
31015ef618SBen Skeggs ga100_gsp_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst,
32015ef618SBen Skeggs 	      struct nvkm_gsp **pgsp)
33015ef618SBen Skeggs {
34015ef618SBen Skeggs 	return nvkm_gsp_new_(ga100_gsps, device, type, inst, pgsp);
35015ef618SBen Skeggs }
36