1912a29c3SBen Skeggs /*
2912a29c3SBen Skeggs * Copyright 2012 Red Hat Inc.
3912a29c3SBen Skeggs *
4912a29c3SBen Skeggs * Permission is hereby granted, free of charge, to any person obtaining a
5912a29c3SBen Skeggs * copy of this software and associated documentation files (the "Software"),
6912a29c3SBen Skeggs * to deal in the Software without restriction, including without limitation
7912a29c3SBen Skeggs * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8912a29c3SBen Skeggs * and/or sell copies of the Software, and to permit persons to whom the
9912a29c3SBen Skeggs * Software is furnished to do so, subject to the following conditions:
10912a29c3SBen Skeggs *
11912a29c3SBen Skeggs * The above copyright notice and this permission notice shall be included in
12912a29c3SBen Skeggs * all copies or substantial portions of the Software.
13912a29c3SBen Skeggs *
14912a29c3SBen Skeggs * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15912a29c3SBen Skeggs * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16912a29c3SBen Skeggs * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17912a29c3SBen Skeggs * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
18912a29c3SBen Skeggs * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19912a29c3SBen Skeggs * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20912a29c3SBen Skeggs * OTHER DEALINGS IN THE SOFTWARE.
21912a29c3SBen Skeggs *
22912a29c3SBen Skeggs * Authors: Ben Skeggs, Ilia Mirkin
23912a29c3SBen Skeggs */
24912a29c3SBen Skeggs #include <engine/bsp.h>
25912a29c3SBen Skeggs
26c79a191bSBen Skeggs #include <nvif/class.h>
27912a29c3SBen Skeggs
28c79a191bSBen Skeggs static const struct nvkm_xtensa_func
2998b20c9aSBen Skeggs g84_bsp = {
3098b20c9aSBen Skeggs .fifo_val = 0x1111,
3198b20c9aSBen Skeggs .unkd28 = 0x90044,
32c79a191bSBen Skeggs .sclass = {
33c79a191bSBen Skeggs { -1, -1, NV74_BSP },
34c79a191bSBen Skeggs {}
35c79a191bSBen Skeggs }
36912a29c3SBen Skeggs };
37912a29c3SBen Skeggs
3898b20c9aSBen Skeggs int
g84_bsp_new(struct nvkm_device * device,enum nvkm_subdev_type type,int inst,struct nvkm_engine ** pengine)39*fcc08a7cSBen Skeggs g84_bsp_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst,
40*fcc08a7cSBen Skeggs struct nvkm_engine **pengine)
41912a29c3SBen Skeggs {
42*fcc08a7cSBen Skeggs return nvkm_xtensa_new_(&g84_bsp, device, type, inst,
43194d68ddSIlia Mirkin device->chipset != 0x92, 0x103000, pengine);
44912a29c3SBen Skeggs }
45