nve0.c 16.2 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
/*
 * Copyright 2012 Red Hat Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"),
 * to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 * and/or sell copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 * OTHER DEALINGS IN THE SOFTWARE.
 *
 * Authors: Ben Skeggs
 */

25
#include <subdev/bios.h>
26
#include <subdev/bus.h>
27
#include <subdev/gpio.h>
28
#include <subdev/i2c.h>
29
#include <subdev/fuse.h>
30
#include <subdev/clk.h>
31
#include <subdev/therm.h>
32
#include <subdev/mxm.h>
33
#include <subdev/devinit.h>
34
#include <subdev/mc.h>
35
#include <subdev/timer.h>
36
#include <subdev/fb.h>
37
#include <subdev/ltc.h>
38
#include <subdev/ibus.h>
39
#include <subdev/instmem.h>
40
#include <subdev/mmu.h>
41
#include <subdev/bar.h>
42
#include <subdev/pmu.h>
43
#include <subdev/volt.h>
44

45
#include <engine/device.h>
46 47 48
#include <engine/dmaobj.h>
#include <engine/fifo.h>
#include <engine/software.h>
49
#include <engine/gr.h>
50
#include <engine/disp.h>
51
#include <engine/ce.h>
52
#include <engine/bsp.h>
53
#include <engine/msvld.h>
54
#include <engine/vp.h>
55
#include <engine/msppp.h>
56
#include <engine/pm.h>
57

58 59 60 61 62
int
nve0_identify(struct nouveau_device *device)
{
	switch (device->chipset) {
	case 0xe4:
63
		device->cname = "GK104";
64
		device->oclass[NVDEV_SUBDEV_VBIOS  ] = &nouveau_bios_oclass;
65
		device->oclass[NVDEV_SUBDEV_GPIO   ] =  nve0_gpio_oclass;
66
		device->oclass[NVDEV_SUBDEV_I2C    ] =  nve0_i2c_oclass;
67
		device->oclass[NVDEV_SUBDEV_FUSE   ] = &gf100_fuse_oclass;
68
		device->oclass[NVDEV_SUBDEV_CLK    ] = &nve0_clk_oclass;
69
		device->oclass[NVDEV_SUBDEV_THERM  ] = &nvd0_therm_oclass;
70
		device->oclass[NVDEV_SUBDEV_MXM    ] = &nv50_mxm_oclass;
71
		device->oclass[NVDEV_SUBDEV_DEVINIT] =  nvc0_devinit_oclass;
72
		device->oclass[NVDEV_SUBDEV_MC     ] =  nvc3_mc_oclass;
73
		device->oclass[NVDEV_SUBDEV_BUS    ] =  nvc0_bus_oclass;
74
		device->oclass[NVDEV_SUBDEV_TIMER  ] = &nv04_timer_oclass;
75
		device->oclass[NVDEV_SUBDEV_FB     ] =  nve0_fb_oclass;
76
		device->oclass[NVDEV_SUBDEV_LTC    ] =  gk104_ltc_oclass;
77
		device->oclass[NVDEV_SUBDEV_IBUS   ] = &nve0_ibus_oclass;
78
		device->oclass[NVDEV_SUBDEV_INSTMEM] =  nv50_instmem_oclass;
79
		device->oclass[NVDEV_SUBDEV_MMU    ] = &nvc0_mmu_oclass;
80
		device->oclass[NVDEV_SUBDEV_BAR    ] = &nvc0_bar_oclass;
81
		device->oclass[NVDEV_SUBDEV_PMU    ] =  gk104_pmu_oclass;
82
		device->oclass[NVDEV_SUBDEV_VOLT   ] = &nv40_volt_oclass;
83
		device->oclass[NVDEV_ENGINE_DMAOBJ ] =  nvd0_dmaeng_oclass;
84
		device->oclass[NVDEV_ENGINE_FIFO   ] =  nve0_fifo_oclass;
85
		device->oclass[NVDEV_ENGINE_SW     ] =  nvc0_software_oclass;
86
		device->oclass[NVDEV_ENGINE_GR     ] =  nve4_gr_oclass;
87
		device->oclass[NVDEV_ENGINE_DISP   ] =  nve0_disp_oclass;
88 89 90
		device->oclass[NVDEV_ENGINE_CE0    ] = &nve0_ce0_oclass;
		device->oclass[NVDEV_ENGINE_CE1    ] = &nve0_ce1_oclass;
		device->oclass[NVDEV_ENGINE_CE2    ] = &nve0_ce2_oclass;
91
		device->oclass[NVDEV_ENGINE_MSVLD  ] = &nve0_msvld_oclass;
92
		device->oclass[NVDEV_ENGINE_VP     ] = &nve0_vp_oclass;
93
		device->oclass[NVDEV_ENGINE_MSPPP  ] = &nvc0_msppp_oclass;
94
		device->oclass[NVDEV_ENGINE_PM     ] = &nve0_pm_oclass;
95 96
		break;
	case 0xe7:
97
		device->cname = "GK107";
98
		device->oclass[NVDEV_SUBDEV_VBIOS  ] = &nouveau_bios_oclass;
99
		device->oclass[NVDEV_SUBDEV_GPIO   ] =  nve0_gpio_oclass;
100
		device->oclass[NVDEV_SUBDEV_I2C    ] =  nve0_i2c_oclass;
101
		device->oclass[NVDEV_SUBDEV_FUSE   ] = &gf100_fuse_oclass;
102
		device->oclass[NVDEV_SUBDEV_CLK    ] = &nve0_clk_oclass;
103
		device->oclass[NVDEV_SUBDEV_THERM  ] = &nvd0_therm_oclass;
104
		device->oclass[NVDEV_SUBDEV_MXM    ] = &nv50_mxm_oclass;
105
		device->oclass[NVDEV_SUBDEV_DEVINIT] =  nvc0_devinit_oclass;
106
		device->oclass[NVDEV_SUBDEV_MC     ] =  nvc3_mc_oclass;
107
		device->oclass[NVDEV_SUBDEV_BUS    ] =  nvc0_bus_oclass;
108
		device->oclass[NVDEV_SUBDEV_TIMER  ] = &nv04_timer_oclass;
109
		device->oclass[NVDEV_SUBDEV_FB     ] =  nve0_fb_oclass;
110
		device->oclass[NVDEV_SUBDEV_LTC    ] =  gk104_ltc_oclass;
111
		device->oclass[NVDEV_SUBDEV_IBUS   ] = &nve0_ibus_oclass;
112
		device->oclass[NVDEV_SUBDEV_INSTMEM] =  nv50_instmem_oclass;
113
		device->oclass[NVDEV_SUBDEV_MMU    ] = &nvc0_mmu_oclass;
114
		device->oclass[NVDEV_SUBDEV_BAR    ] = &nvc0_bar_oclass;
115
		device->oclass[NVDEV_SUBDEV_PMU    ] =  nvd0_pmu_oclass;
116
		device->oclass[NVDEV_SUBDEV_VOLT   ] = &nv40_volt_oclass;
117
		device->oclass[NVDEV_ENGINE_DMAOBJ ] =  nvd0_dmaeng_oclass;
118
		device->oclass[NVDEV_ENGINE_FIFO   ] =  nve0_fifo_oclass;
119
		device->oclass[NVDEV_ENGINE_SW     ] =  nvc0_software_oclass;
120
		device->oclass[NVDEV_ENGINE_GR     ] =  nve4_gr_oclass;
121
		device->oclass[NVDEV_ENGINE_DISP   ] =  nve0_disp_oclass;
122 123 124
		device->oclass[NVDEV_ENGINE_CE0    ] = &nve0_ce0_oclass;
		device->oclass[NVDEV_ENGINE_CE1    ] = &nve0_ce1_oclass;
		device->oclass[NVDEV_ENGINE_CE2    ] = &nve0_ce2_oclass;
125
		device->oclass[NVDEV_ENGINE_MSVLD  ] = &nve0_msvld_oclass;
126
		device->oclass[NVDEV_ENGINE_VP     ] = &nve0_vp_oclass;
127
		device->oclass[NVDEV_ENGINE_MSPPP  ] = &nvc0_msppp_oclass;
128
		device->oclass[NVDEV_ENGINE_PM     ] = &nve0_pm_oclass;
129 130 131 132
		break;
	case 0xe6:
		device->cname = "GK106";
		device->oclass[NVDEV_SUBDEV_VBIOS  ] = &nouveau_bios_oclass;
133
		device->oclass[NVDEV_SUBDEV_GPIO   ] =  nve0_gpio_oclass;
134
		device->oclass[NVDEV_SUBDEV_I2C    ] =  nve0_i2c_oclass;
135
		device->oclass[NVDEV_SUBDEV_FUSE   ] = &gf100_fuse_oclass;
136
		device->oclass[NVDEV_SUBDEV_CLK    ] = &nve0_clk_oclass;
137
		device->oclass[NVDEV_SUBDEV_THERM  ] = &nvd0_therm_oclass;
138
		device->oclass[NVDEV_SUBDEV_MXM    ] = &nv50_mxm_oclass;
139
		device->oclass[NVDEV_SUBDEV_DEVINIT] =  nvc0_devinit_oclass;
140
		device->oclass[NVDEV_SUBDEV_MC     ] =  nvc3_mc_oclass;
141
		device->oclass[NVDEV_SUBDEV_BUS    ] =  nvc0_bus_oclass;
142
		device->oclass[NVDEV_SUBDEV_TIMER  ] = &nv04_timer_oclass;
143
		device->oclass[NVDEV_SUBDEV_FB     ] =  nve0_fb_oclass;
144
		device->oclass[NVDEV_SUBDEV_LTC    ] =  gk104_ltc_oclass;
145
		device->oclass[NVDEV_SUBDEV_IBUS   ] = &nve0_ibus_oclass;
146
		device->oclass[NVDEV_SUBDEV_INSTMEM] =  nv50_instmem_oclass;
147
		device->oclass[NVDEV_SUBDEV_MMU    ] = &nvc0_mmu_oclass;
148
		device->oclass[NVDEV_SUBDEV_BAR    ] = &nvc0_bar_oclass;
149
		device->oclass[NVDEV_SUBDEV_PMU    ] =  gk104_pmu_oclass;
150
		device->oclass[NVDEV_SUBDEV_VOLT   ] = &nv40_volt_oclass;
151
		device->oclass[NVDEV_ENGINE_DMAOBJ ] =  nvd0_dmaeng_oclass;
152
		device->oclass[NVDEV_ENGINE_FIFO   ] =  nve0_fifo_oclass;
153
		device->oclass[NVDEV_ENGINE_SW     ] =  nvc0_software_oclass;
154
		device->oclass[NVDEV_ENGINE_GR     ] =  nve4_gr_oclass;
155
		device->oclass[NVDEV_ENGINE_DISP   ] =  nve0_disp_oclass;
156 157 158
		device->oclass[NVDEV_ENGINE_CE0    ] = &nve0_ce0_oclass;
		device->oclass[NVDEV_ENGINE_CE1    ] = &nve0_ce1_oclass;
		device->oclass[NVDEV_ENGINE_CE2    ] = &nve0_ce2_oclass;
159
		device->oclass[NVDEV_ENGINE_MSVLD  ] = &nve0_msvld_oclass;
160
		device->oclass[NVDEV_ENGINE_VP     ] = &nve0_vp_oclass;
161
		device->oclass[NVDEV_ENGINE_MSPPP  ] = &nvc0_msppp_oclass;
162
		device->oclass[NVDEV_ENGINE_PM     ] = &nve0_pm_oclass;
163
		break;
164 165
	case 0xea:
		device->cname = "GK20A";
166
		device->oclass[NVDEV_SUBDEV_CLK    ] = &gk20a_clk_oclass;
167
		device->oclass[NVDEV_SUBDEV_MC     ] =  gk20a_mc_oclass;
168
		device->oclass[NVDEV_SUBDEV_BUS    ] =  nvc0_bus_oclass;
169
		device->oclass[NVDEV_SUBDEV_FUSE   ] = &gf100_fuse_oclass;
170 171
		device->oclass[NVDEV_SUBDEV_TIMER  ] = &gk20a_timer_oclass;
		device->oclass[NVDEV_SUBDEV_FB     ] =  gk20a_fb_oclass;
172
		device->oclass[NVDEV_SUBDEV_LTC    ] =  gk104_ltc_oclass;
173 174
		device->oclass[NVDEV_SUBDEV_IBUS   ] = &gk20a_ibus_oclass;
		device->oclass[NVDEV_SUBDEV_INSTMEM] = nv50_instmem_oclass;
175
		device->oclass[NVDEV_SUBDEV_MMU    ] = &nvc0_mmu_oclass;
A
Alexandre Courbot 已提交
176
		device->oclass[NVDEV_SUBDEV_BAR    ] = &gk20a_bar_oclass;
177
		device->oclass[NVDEV_ENGINE_DMAOBJ ] =  nvd0_dmaeng_oclass;
178 179
		device->oclass[NVDEV_ENGINE_FIFO   ] =  gk20a_fifo_oclass;
		device->oclass[NVDEV_ENGINE_SW     ] =  nvc0_software_oclass;
180
		device->oclass[NVDEV_ENGINE_GR     ] =  gk20a_gr_oclass;
181
		device->oclass[NVDEV_ENGINE_CE2    ] = &nve0_ce2_oclass;
182
		device->oclass[NVDEV_ENGINE_PM     ] = &nve0_pm_oclass;
183
		device->oclass[NVDEV_SUBDEV_VOLT   ] = &gk20a_volt_oclass;
184
		device->oclass[NVDEV_SUBDEV_PMU    ] =  gk20a_pmu_oclass;
185
		break;
186 187 188
	case 0xf0:
		device->cname = "GK110";
		device->oclass[NVDEV_SUBDEV_VBIOS  ] = &nouveau_bios_oclass;
189
		device->oclass[NVDEV_SUBDEV_GPIO   ] =  nve0_gpio_oclass;
190
		device->oclass[NVDEV_SUBDEV_I2C    ] =  nve0_i2c_oclass;
191
		device->oclass[NVDEV_SUBDEV_FUSE   ] = &gf100_fuse_oclass;
192
		device->oclass[NVDEV_SUBDEV_CLK    ] = &nve0_clk_oclass;
193 194
		device->oclass[NVDEV_SUBDEV_THERM  ] = &nvd0_therm_oclass;
		device->oclass[NVDEV_SUBDEV_MXM    ] = &nv50_mxm_oclass;
195
		device->oclass[NVDEV_SUBDEV_DEVINIT] =  nvc0_devinit_oclass;
196
		device->oclass[NVDEV_SUBDEV_MC     ] =  nvc3_mc_oclass;
197
		device->oclass[NVDEV_SUBDEV_BUS    ] =  nvc0_bus_oclass;
198
		device->oclass[NVDEV_SUBDEV_TIMER  ] = &nv04_timer_oclass;
199
		device->oclass[NVDEV_SUBDEV_FB     ] =  nve0_fb_oclass;
200
		device->oclass[NVDEV_SUBDEV_LTC    ] =  gk104_ltc_oclass;
201 202
		device->oclass[NVDEV_SUBDEV_IBUS   ] = &nve0_ibus_oclass;
		device->oclass[NVDEV_SUBDEV_INSTMEM] =  nv50_instmem_oclass;
203
		device->oclass[NVDEV_SUBDEV_MMU    ] = &nvc0_mmu_oclass;
204
		device->oclass[NVDEV_SUBDEV_BAR    ] = &nvc0_bar_oclass;
205
		device->oclass[NVDEV_SUBDEV_PMU    ] =  nvd0_pmu_oclass;
206
		device->oclass[NVDEV_SUBDEV_VOLT   ] = &nv40_volt_oclass;
207
		device->oclass[NVDEV_ENGINE_DMAOBJ ] =  nvd0_dmaeng_oclass;
208 209
		device->oclass[NVDEV_ENGINE_FIFO   ] =  nve0_fifo_oclass;
		device->oclass[NVDEV_ENGINE_SW     ] =  nvc0_software_oclass;
210
		device->oclass[NVDEV_ENGINE_GR     ] =  nvf0_gr_oclass;
211
		device->oclass[NVDEV_ENGINE_DISP   ] =  nvf0_disp_oclass;
212 213 214
		device->oclass[NVDEV_ENGINE_CE0    ] = &nve0_ce0_oclass;
		device->oclass[NVDEV_ENGINE_CE1    ] = &nve0_ce1_oclass;
		device->oclass[NVDEV_ENGINE_CE2    ] = &nve0_ce2_oclass;
215
		device->oclass[NVDEV_ENGINE_MSVLD  ] = &nve0_msvld_oclass;
216
		device->oclass[NVDEV_ENGINE_VP     ] = &nve0_vp_oclass;
217
		device->oclass[NVDEV_ENGINE_MSPPP  ] = &nvc0_msppp_oclass;
218
		device->oclass[NVDEV_ENGINE_PM     ] = &nvf0_pm_oclass;
219 220 221 222
		break;
	case 0xf1:
		device->cname = "GK110B";
		device->oclass[NVDEV_SUBDEV_VBIOS  ] = &nouveau_bios_oclass;
223
		device->oclass[NVDEV_SUBDEV_GPIO   ] =  nve0_gpio_oclass;
224
		device->oclass[NVDEV_SUBDEV_I2C    ] =  nvd0_i2c_oclass;
225
		device->oclass[NVDEV_SUBDEV_FUSE   ] = &gf100_fuse_oclass;
226
		device->oclass[NVDEV_SUBDEV_CLK    ] = &nve0_clk_oclass;
227 228 229 230 231 232 233
		device->oclass[NVDEV_SUBDEV_THERM  ] = &nvd0_therm_oclass;
		device->oclass[NVDEV_SUBDEV_MXM    ] = &nv50_mxm_oclass;
		device->oclass[NVDEV_SUBDEV_DEVINIT] =  nvc0_devinit_oclass;
		device->oclass[NVDEV_SUBDEV_MC     ] =  nvc3_mc_oclass;
		device->oclass[NVDEV_SUBDEV_BUS    ] =  nvc0_bus_oclass;
		device->oclass[NVDEV_SUBDEV_TIMER  ] = &nv04_timer_oclass;
		device->oclass[NVDEV_SUBDEV_FB     ] =  nve0_fb_oclass;
234
		device->oclass[NVDEV_SUBDEV_LTC    ] =  gk104_ltc_oclass;
235
		device->oclass[NVDEV_SUBDEV_IBUS   ] = &nve0_ibus_oclass;
236
		device->oclass[NVDEV_SUBDEV_INSTMEM] =  nv50_instmem_oclass;
237
		device->oclass[NVDEV_SUBDEV_MMU    ] = &nvc0_mmu_oclass;
238
		device->oclass[NVDEV_SUBDEV_BAR    ] = &nvc0_bar_oclass;
239
		device->oclass[NVDEV_SUBDEV_PMU    ] =  nvd0_pmu_oclass;
240
		device->oclass[NVDEV_SUBDEV_VOLT   ] = &nv40_volt_oclass;
241
		device->oclass[NVDEV_ENGINE_DMAOBJ ] =  nvd0_dmaeng_oclass;
242
		device->oclass[NVDEV_ENGINE_FIFO   ] =  nve0_fifo_oclass;
243
		device->oclass[NVDEV_ENGINE_SW     ] =  nvc0_software_oclass;
244
		device->oclass[NVDEV_ENGINE_GR     ] =  gk110b_gr_oclass;
245
		device->oclass[NVDEV_ENGINE_DISP   ] =  nvf0_disp_oclass;
246 247 248
		device->oclass[NVDEV_ENGINE_CE0    ] = &nve0_ce0_oclass;
		device->oclass[NVDEV_ENGINE_CE1    ] = &nve0_ce1_oclass;
		device->oclass[NVDEV_ENGINE_CE2    ] = &nve0_ce2_oclass;
249
		device->oclass[NVDEV_ENGINE_MSVLD  ] = &nve0_msvld_oclass;
250
		device->oclass[NVDEV_ENGINE_VP     ] = &nve0_vp_oclass;
251
		device->oclass[NVDEV_ENGINE_MSPPP  ] = &nvc0_msppp_oclass;
252
		device->oclass[NVDEV_ENGINE_PM     ] = &nvf0_pm_oclass;
B
Ben Skeggs 已提交
253
		break;
254 255 256 257 258 259
	case 0x106:
		device->cname = "GK208B";
		device->oclass[NVDEV_SUBDEV_VBIOS  ] = &nouveau_bios_oclass;
		device->oclass[NVDEV_SUBDEV_GPIO   ] =  nve0_gpio_oclass;
		device->oclass[NVDEV_SUBDEV_I2C    ] =  nve0_i2c_oclass;
		device->oclass[NVDEV_SUBDEV_FUSE   ] = &gf100_fuse_oclass;
260
		device->oclass[NVDEV_SUBDEV_CLK    ] = &nve0_clk_oclass;
261 262 263 264 265 266 267 268 269 270
		device->oclass[NVDEV_SUBDEV_THERM  ] = &nvd0_therm_oclass;
		device->oclass[NVDEV_SUBDEV_MXM    ] = &nv50_mxm_oclass;
		device->oclass[NVDEV_SUBDEV_DEVINIT] =  nvc0_devinit_oclass;
		device->oclass[NVDEV_SUBDEV_MC     ] =  gk20a_mc_oclass;
		device->oclass[NVDEV_SUBDEV_BUS    ] =  nvc0_bus_oclass;
		device->oclass[NVDEV_SUBDEV_TIMER  ] = &nv04_timer_oclass;
		device->oclass[NVDEV_SUBDEV_FB     ] =  nve0_fb_oclass;
		device->oclass[NVDEV_SUBDEV_LTC    ] =  gk104_ltc_oclass;
		device->oclass[NVDEV_SUBDEV_IBUS   ] = &nve0_ibus_oclass;
		device->oclass[NVDEV_SUBDEV_INSTMEM] =  nv50_instmem_oclass;
271
		device->oclass[NVDEV_SUBDEV_MMU    ] = &nvc0_mmu_oclass;
272
		device->oclass[NVDEV_SUBDEV_BAR    ] = &nvc0_bar_oclass;
273
		device->oclass[NVDEV_SUBDEV_PMU    ] =  nv108_pmu_oclass;
274 275 276 277
		device->oclass[NVDEV_SUBDEV_VOLT   ] = &nv40_volt_oclass;
		device->oclass[NVDEV_ENGINE_DMAOBJ ] =  nvd0_dmaeng_oclass;
		device->oclass[NVDEV_ENGINE_FIFO   ] =  nv108_fifo_oclass;
		device->oclass[NVDEV_ENGINE_SW     ] =  nvc0_software_oclass;
278
		device->oclass[NVDEV_ENGINE_GR     ] =  nv108_gr_oclass;
279
		device->oclass[NVDEV_ENGINE_DISP   ] =  nvf0_disp_oclass;
280 281 282
		device->oclass[NVDEV_ENGINE_CE0    ] = &nve0_ce0_oclass;
		device->oclass[NVDEV_ENGINE_CE1    ] = &nve0_ce1_oclass;
		device->oclass[NVDEV_ENGINE_CE2    ] = &nve0_ce2_oclass;
283
		device->oclass[NVDEV_ENGINE_MSVLD  ] = &nve0_msvld_oclass;
284
		device->oclass[NVDEV_ENGINE_VP     ] = &nve0_vp_oclass;
285
		device->oclass[NVDEV_ENGINE_MSPPP  ] = &nvc0_msppp_oclass;
286
		break;
B
Ben Skeggs 已提交
287 288 289
	case 0x108:
		device->cname = "GK208";
		device->oclass[NVDEV_SUBDEV_VBIOS  ] = &nouveau_bios_oclass;
290
		device->oclass[NVDEV_SUBDEV_GPIO   ] =  nve0_gpio_oclass;
291
		device->oclass[NVDEV_SUBDEV_I2C    ] =  nve0_i2c_oclass;
292
		device->oclass[NVDEV_SUBDEV_FUSE   ] = &gf100_fuse_oclass;
293
		device->oclass[NVDEV_SUBDEV_CLK    ] = &nve0_clk_oclass;
B
Ben Skeggs 已提交
294 295
		device->oclass[NVDEV_SUBDEV_THERM  ] = &nvd0_therm_oclass;
		device->oclass[NVDEV_SUBDEV_MXM    ] = &nv50_mxm_oclass;
296
		device->oclass[NVDEV_SUBDEV_DEVINIT] =  nvc0_devinit_oclass;
297
		device->oclass[NVDEV_SUBDEV_MC     ] =  gk20a_mc_oclass;
298
		device->oclass[NVDEV_SUBDEV_BUS    ] =  nvc0_bus_oclass;
B
Ben Skeggs 已提交
299
		device->oclass[NVDEV_SUBDEV_TIMER  ] = &nv04_timer_oclass;
300
		device->oclass[NVDEV_SUBDEV_FB     ] =  nve0_fb_oclass;
301
		device->oclass[NVDEV_SUBDEV_LTC    ] =  gk104_ltc_oclass;
B
Ben Skeggs 已提交
302
		device->oclass[NVDEV_SUBDEV_IBUS   ] = &nve0_ibus_oclass;
303
		device->oclass[NVDEV_SUBDEV_INSTMEM] =  nv50_instmem_oclass;
304
		device->oclass[NVDEV_SUBDEV_MMU    ] = &nvc0_mmu_oclass;
B
Ben Skeggs 已提交
305
		device->oclass[NVDEV_SUBDEV_BAR    ] = &nvc0_bar_oclass;
306
		device->oclass[NVDEV_SUBDEV_PMU    ] =  nv108_pmu_oclass;
307
		device->oclass[NVDEV_SUBDEV_VOLT   ] = &nv40_volt_oclass;
308
		device->oclass[NVDEV_ENGINE_DMAOBJ ] =  nvd0_dmaeng_oclass;
B
Ben Skeggs 已提交
309
		device->oclass[NVDEV_ENGINE_FIFO   ] =  nv108_fifo_oclass;
B
Ben Skeggs 已提交
310
		device->oclass[NVDEV_ENGINE_SW     ] =  nvc0_software_oclass;
311
		device->oclass[NVDEV_ENGINE_GR     ] =  nv108_gr_oclass;
312
		device->oclass[NVDEV_ENGINE_DISP   ] =  nvf0_disp_oclass;
313 314 315
		device->oclass[NVDEV_ENGINE_CE0    ] = &nve0_ce0_oclass;
		device->oclass[NVDEV_ENGINE_CE1    ] = &nve0_ce1_oclass;
		device->oclass[NVDEV_ENGINE_CE2    ] = &nve0_ce2_oclass;
316
		device->oclass[NVDEV_ENGINE_MSVLD  ] = &nve0_msvld_oclass;
B
Ben Skeggs 已提交
317
		device->oclass[NVDEV_ENGINE_VP     ] = &nve0_vp_oclass;
318
		device->oclass[NVDEV_ENGINE_MSPPP  ] = &nvc0_msppp_oclass;
319
		break;
320 321 322 323 324 325 326
	default:
		nv_fatal(device, "unknown Kepler chipset\n");
		return -EINVAL;
	}

	return 0;
}