Ben Skeggs | 9274f4a | 2012-07-06 07:36:43 +1000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2012 Red Hat Inc. |
| 3 | * |
| 4 | * Permission is hereby granted, free of charge, to any person obtaining a |
| 5 | * copy of this software and associated documentation files (the "Software"), |
| 6 | * to deal in the Software without restriction, including without limitation |
| 7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
| 8 | * and/or sell copies of the Software, and to permit persons to whom the |
| 9 | * Software is furnished to do so, subject to the following conditions: |
| 10 | * |
| 11 | * The above copyright notice and this permission notice shall be included in |
| 12 | * all copies or substantial portions of the Software. |
| 13 | * |
| 14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 16 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
| 17 | * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR |
| 18 | * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, |
| 19 | * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| 20 | * OTHER DEALINGS IN THE SOFTWARE. |
| 21 | * |
| 22 | * Authors: Ben Skeggs |
| 23 | */ |
| 24 | |
Ben Skeggs | 70c0f26 | 2012-07-10 10:49:22 +1000 | [diff] [blame] | 25 | #include <subdev/bios.h> |
Martin Peres | a10220b | 2012-11-04 01:01:53 +0100 | [diff] [blame] | 26 | #include <subdev/bus.h> |
Ben Skeggs | e0996ae | 2012-07-10 12:20:17 +1000 | [diff] [blame] | 27 | #include <subdev/gpio.h> |
Ben Skeggs | 4196faa | 2012-07-10 14:36:38 +1000 | [diff] [blame] | 28 | #include <subdev/i2c.h> |
Ben Skeggs | 8aceb7d | 2012-07-10 16:45:24 +1000 | [diff] [blame] | 29 | #include <subdev/clock.h> |
Martin Peres | aa1b9b4 | 2012-09-02 02:55:58 +0200 | [diff] [blame] | 30 | #include <subdev/therm.h> |
Ben Skeggs | d38ac52 | 2012-07-22 16:41:26 +1000 | [diff] [blame] | 31 | #include <subdev/mxm.h> |
Ben Skeggs | cb75d97 | 2012-07-11 10:44:20 +1000 | [diff] [blame] | 32 | #include <subdev/devinit.h> |
Ben Skeggs | 7d9115d | 2012-07-11 15:58:56 +1000 | [diff] [blame] | 33 | #include <subdev/mc.h> |
Ben Skeggs | 5a5c743 | 2012-07-11 16:08:25 +1000 | [diff] [blame] | 34 | #include <subdev/timer.h> |
Ben Skeggs | 861d210 | 2012-07-11 19:05:01 +1000 | [diff] [blame] | 35 | #include <subdev/fb.h> |
| 36 | #include <subdev/ltcg.h> |
Ben Skeggs | 2c1a425 | 2012-08-22 23:55:42 -0400 | [diff] [blame] | 37 | #include <subdev/ibus.h> |
Ben Skeggs | 3863c9b | 2012-07-14 19:09:17 +1000 | [diff] [blame] | 38 | #include <subdev/instmem.h> |
| 39 | #include <subdev/vm.h> |
| 40 | #include <subdev/bar.h> |
Ben Skeggs | 9274f4a | 2012-07-06 07:36:43 +1000 | [diff] [blame] | 41 | |
Ben Skeggs | dded35d | 2013-04-25 17:23:43 +1000 | [diff] [blame] | 42 | #include <engine/device.h> |
Ben Skeggs | ebb945a | 2012-07-20 08:17:34 +1000 | [diff] [blame] | 43 | #include <engine/dmaobj.h> |
| 44 | #include <engine/fifo.h> |
| 45 | #include <engine/software.h> |
| 46 | #include <engine/graph.h> |
| 47 | #include <engine/disp.h> |
Ben Skeggs | 4f32656 | 2012-08-06 19:28:02 +1000 | [diff] [blame] | 48 | #include <engine/copy.h> |
Ben Skeggs | b2f04fc | 2012-11-22 15:42:23 +1000 | [diff] [blame] | 49 | #include <engine/bsp.h> |
Ben Skeggs | a7416d0 | 2012-11-22 15:48:41 +1000 | [diff] [blame] | 50 | #include <engine/vp.h> |
Ben Skeggs | fb9bff2 | 2012-11-23 11:14:49 +1000 | [diff] [blame] | 51 | #include <engine/ppp.h> |
Ben Skeggs | ebb945a | 2012-07-20 08:17:34 +1000 | [diff] [blame] | 52 | |
Ben Skeggs | 9274f4a | 2012-07-06 07:36:43 +1000 | [diff] [blame] | 53 | int |
| 54 | nve0_identify(struct nouveau_device *device) |
| 55 | { |
| 56 | switch (device->chipset) { |
| 57 | case 0xe4: |
Ben Skeggs | 2094dd8 | 2012-07-27 08:28:20 +1000 | [diff] [blame] | 58 | device->cname = "GK104"; |
Ben Skeggs | 70c0f26 | 2012-07-10 10:49:22 +1000 | [diff] [blame] | 59 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
Ben Skeggs | fa531bc | 2013-02-13 13:34:39 +1000 | [diff] [blame] | 60 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nve0_gpio_oclass; |
Ben Skeggs | 7dcd060c | 2013-02-16 15:21:58 +1000 | [diff] [blame] | 61 | device->oclass[NVDEV_SUBDEV_I2C ] = &nvd0_i2c_oclass; |
Ben Skeggs | 8aceb7d | 2012-07-10 16:45:24 +1000 | [diff] [blame] | 62 | device->oclass[NVDEV_SUBDEV_CLOCK ] = &nvc0_clock_oclass; |
Ben Skeggs | bc79202 | 2012-12-04 09:50:33 +1000 | [diff] [blame] | 63 | device->oclass[NVDEV_SUBDEV_THERM ] = &nvd0_therm_oclass; |
Ben Skeggs | d38ac52 | 2012-07-22 16:41:26 +1000 | [diff] [blame] | 64 | device->oclass[NVDEV_SUBDEV_MXM ] = &nv50_mxm_oclass; |
Ben Skeggs | 88524bc | 2013-03-05 10:53:54 +1000 | [diff] [blame] | 65 | device->oclass[NVDEV_SUBDEV_DEVINIT] = &nvc0_devinit_oclass; |
Ben Skeggs | 1b4fea0 | 2013-10-11 15:38:15 +1000 | [diff] [blame^] | 66 | device->oclass[NVDEV_SUBDEV_MC ] = nvc3_mc_oclass; |
Martin Peres | a10220b | 2012-11-04 01:01:53 +0100 | [diff] [blame] | 67 | device->oclass[NVDEV_SUBDEV_BUS ] = &nvc0_bus_oclass; |
Ben Skeggs | 5a5c743 | 2012-07-11 16:08:25 +1000 | [diff] [blame] | 68 | device->oclass[NVDEV_SUBDEV_TIMER ] = &nv04_timer_oclass; |
Ben Skeggs | 861d210 | 2012-07-11 19:05:01 +1000 | [diff] [blame] | 69 | device->oclass[NVDEV_SUBDEV_FB ] = &nvc0_fb_oclass; |
| 70 | device->oclass[NVDEV_SUBDEV_LTCG ] = &nvc0_ltcg_oclass; |
Ben Skeggs | 2c1a425 | 2012-08-22 23:55:42 -0400 | [diff] [blame] | 71 | device->oclass[NVDEV_SUBDEV_IBUS ] = &nve0_ibus_oclass; |
Ben Skeggs | 3863c9b | 2012-07-14 19:09:17 +1000 | [diff] [blame] | 72 | device->oclass[NVDEV_SUBDEV_INSTMEM] = &nv50_instmem_oclass; |
| 73 | device->oclass[NVDEV_SUBDEV_VM ] = &nvc0_vmmgr_oclass; |
| 74 | device->oclass[NVDEV_SUBDEV_BAR ] = &nvc0_bar_oclass; |
Ben Skeggs | 344e107 | 2012-10-08 14:11:35 +1000 | [diff] [blame] | 75 | device->oclass[NVDEV_ENGINE_DMAOBJ ] = &nvd0_dmaeng_oclass; |
Ben Skeggs | ebb945a | 2012-07-20 08:17:34 +1000 | [diff] [blame] | 76 | device->oclass[NVDEV_ENGINE_FIFO ] = &nve0_fifo_oclass; |
Ben Skeggs | c46c3dd | 2013-10-03 07:30:11 +1000 | [diff] [blame] | 77 | device->oclass[NVDEV_ENGINE_SW ] = nvc0_software_oclass; |
Ben Skeggs | 30f4e08 | 2013-06-09 16:08:22 +1000 | [diff] [blame] | 78 | device->oclass[NVDEV_ENGINE_GR ] = nve4_graph_oclass; |
Ben Skeggs | 4665406 | 2012-08-28 14:10:39 +1000 | [diff] [blame] | 79 | device->oclass[NVDEV_ENGINE_DISP ] = &nve0_disp_oclass; |
Ben Skeggs | 4f32656 | 2012-08-06 19:28:02 +1000 | [diff] [blame] | 80 | device->oclass[NVDEV_ENGINE_COPY0 ] = &nve0_copy0_oclass; |
| 81 | device->oclass[NVDEV_ENGINE_COPY1 ] = &nve0_copy1_oclass; |
Ben Skeggs | b0bc530 | 2013-04-29 09:31:05 +1000 | [diff] [blame] | 82 | device->oclass[NVDEV_ENGINE_COPY2 ] = &nve0_copy2_oclass; |
Ben Skeggs | b2f04fc | 2012-11-22 15:42:23 +1000 | [diff] [blame] | 83 | device->oclass[NVDEV_ENGINE_BSP ] = &nve0_bsp_oclass; |
Ben Skeggs | a7416d0 | 2012-11-22 15:48:41 +1000 | [diff] [blame] | 84 | device->oclass[NVDEV_ENGINE_VP ] = &nve0_vp_oclass; |
Ben Skeggs | fb9bff2 | 2012-11-23 11:14:49 +1000 | [diff] [blame] | 85 | device->oclass[NVDEV_ENGINE_PPP ] = &nvc0_ppp_oclass; |
Ben Skeggs | 9274f4a | 2012-07-06 07:36:43 +1000 | [diff] [blame] | 86 | break; |
| 87 | case 0xe7: |
Ben Skeggs | 2094dd8 | 2012-07-27 08:28:20 +1000 | [diff] [blame] | 88 | device->cname = "GK107"; |
Ben Skeggs | 70c0f26 | 2012-07-10 10:49:22 +1000 | [diff] [blame] | 89 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
Ben Skeggs | fa531bc | 2013-02-13 13:34:39 +1000 | [diff] [blame] | 90 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nve0_gpio_oclass; |
Ben Skeggs | 7dcd060c | 2013-02-16 15:21:58 +1000 | [diff] [blame] | 91 | device->oclass[NVDEV_SUBDEV_I2C ] = &nvd0_i2c_oclass; |
Ben Skeggs | 8aceb7d | 2012-07-10 16:45:24 +1000 | [diff] [blame] | 92 | device->oclass[NVDEV_SUBDEV_CLOCK ] = &nvc0_clock_oclass; |
Ben Skeggs | bc79202 | 2012-12-04 09:50:33 +1000 | [diff] [blame] | 93 | device->oclass[NVDEV_SUBDEV_THERM ] = &nvd0_therm_oclass; |
Ben Skeggs | d38ac52 | 2012-07-22 16:41:26 +1000 | [diff] [blame] | 94 | device->oclass[NVDEV_SUBDEV_MXM ] = &nv50_mxm_oclass; |
Ben Skeggs | 88524bc | 2013-03-05 10:53:54 +1000 | [diff] [blame] | 95 | device->oclass[NVDEV_SUBDEV_DEVINIT] = &nvc0_devinit_oclass; |
Ben Skeggs | 1b4fea0 | 2013-10-11 15:38:15 +1000 | [diff] [blame^] | 96 | device->oclass[NVDEV_SUBDEV_MC ] = nvc3_mc_oclass; |
Martin Peres | a10220b | 2012-11-04 01:01:53 +0100 | [diff] [blame] | 97 | device->oclass[NVDEV_SUBDEV_BUS ] = &nvc0_bus_oclass; |
Ben Skeggs | 5a5c743 | 2012-07-11 16:08:25 +1000 | [diff] [blame] | 98 | device->oclass[NVDEV_SUBDEV_TIMER ] = &nv04_timer_oclass; |
Ben Skeggs | 861d210 | 2012-07-11 19:05:01 +1000 | [diff] [blame] | 99 | device->oclass[NVDEV_SUBDEV_FB ] = &nvc0_fb_oclass; |
| 100 | device->oclass[NVDEV_SUBDEV_LTCG ] = &nvc0_ltcg_oclass; |
Ben Skeggs | 2c1a425 | 2012-08-22 23:55:42 -0400 | [diff] [blame] | 101 | device->oclass[NVDEV_SUBDEV_IBUS ] = &nve0_ibus_oclass; |
Ben Skeggs | 3863c9b | 2012-07-14 19:09:17 +1000 | [diff] [blame] | 102 | device->oclass[NVDEV_SUBDEV_INSTMEM] = &nv50_instmem_oclass; |
| 103 | device->oclass[NVDEV_SUBDEV_VM ] = &nvc0_vmmgr_oclass; |
| 104 | device->oclass[NVDEV_SUBDEV_BAR ] = &nvc0_bar_oclass; |
Ben Skeggs | 344e107 | 2012-10-08 14:11:35 +1000 | [diff] [blame] | 105 | device->oclass[NVDEV_ENGINE_DMAOBJ ] = &nvd0_dmaeng_oclass; |
Ben Skeggs | ebb945a | 2012-07-20 08:17:34 +1000 | [diff] [blame] | 106 | device->oclass[NVDEV_ENGINE_FIFO ] = &nve0_fifo_oclass; |
Ben Skeggs | c46c3dd | 2013-10-03 07:30:11 +1000 | [diff] [blame] | 107 | device->oclass[NVDEV_ENGINE_SW ] = nvc0_software_oclass; |
Ben Skeggs | 30f4e08 | 2013-06-09 16:08:22 +1000 | [diff] [blame] | 108 | device->oclass[NVDEV_ENGINE_GR ] = nve4_graph_oclass; |
Ben Skeggs | 4665406 | 2012-08-28 14:10:39 +1000 | [diff] [blame] | 109 | device->oclass[NVDEV_ENGINE_DISP ] = &nve0_disp_oclass; |
Ben Skeggs | 4f32656 | 2012-08-06 19:28:02 +1000 | [diff] [blame] | 110 | device->oclass[NVDEV_ENGINE_COPY0 ] = &nve0_copy0_oclass; |
| 111 | device->oclass[NVDEV_ENGINE_COPY1 ] = &nve0_copy1_oclass; |
Ben Skeggs | b0bc530 | 2013-04-29 09:31:05 +1000 | [diff] [blame] | 112 | device->oclass[NVDEV_ENGINE_COPY2 ] = &nve0_copy2_oclass; |
Ben Skeggs | b2f04fc | 2012-11-22 15:42:23 +1000 | [diff] [blame] | 113 | device->oclass[NVDEV_ENGINE_BSP ] = &nve0_bsp_oclass; |
Ben Skeggs | a7416d0 | 2012-11-22 15:48:41 +1000 | [diff] [blame] | 114 | device->oclass[NVDEV_ENGINE_VP ] = &nve0_vp_oclass; |
Ben Skeggs | fb9bff2 | 2012-11-23 11:14:49 +1000 | [diff] [blame] | 115 | device->oclass[NVDEV_ENGINE_PPP ] = &nvc0_ppp_oclass; |
Ben Skeggs | 9274f4a | 2012-07-06 07:36:43 +1000 | [diff] [blame] | 116 | break; |
Ben Skeggs | caba557 | 2012-12-06 14:45:57 +1000 | [diff] [blame] | 117 | case 0xe6: |
| 118 | device->cname = "GK106"; |
| 119 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
Ben Skeggs | fa531bc | 2013-02-13 13:34:39 +1000 | [diff] [blame] | 120 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nve0_gpio_oclass; |
Ben Skeggs | 7dcd060c | 2013-02-16 15:21:58 +1000 | [diff] [blame] | 121 | device->oclass[NVDEV_SUBDEV_I2C ] = &nvd0_i2c_oclass; |
Ben Skeggs | caba557 | 2012-12-06 14:45:57 +1000 | [diff] [blame] | 122 | device->oclass[NVDEV_SUBDEV_CLOCK ] = &nvc0_clock_oclass; |
Ben Skeggs | bc79202 | 2012-12-04 09:50:33 +1000 | [diff] [blame] | 123 | device->oclass[NVDEV_SUBDEV_THERM ] = &nvd0_therm_oclass; |
Ben Skeggs | caba557 | 2012-12-06 14:45:57 +1000 | [diff] [blame] | 124 | device->oclass[NVDEV_SUBDEV_MXM ] = &nv50_mxm_oclass; |
Ben Skeggs | 88524bc | 2013-03-05 10:53:54 +1000 | [diff] [blame] | 125 | device->oclass[NVDEV_SUBDEV_DEVINIT] = &nvc0_devinit_oclass; |
Ben Skeggs | 1b4fea0 | 2013-10-11 15:38:15 +1000 | [diff] [blame^] | 126 | device->oclass[NVDEV_SUBDEV_MC ] = nvc3_mc_oclass; |
Martin Peres | a10220b | 2012-11-04 01:01:53 +0100 | [diff] [blame] | 127 | device->oclass[NVDEV_SUBDEV_BUS ] = &nvc0_bus_oclass; |
Ben Skeggs | caba557 | 2012-12-06 14:45:57 +1000 | [diff] [blame] | 128 | device->oclass[NVDEV_SUBDEV_TIMER ] = &nv04_timer_oclass; |
| 129 | device->oclass[NVDEV_SUBDEV_FB ] = &nvc0_fb_oclass; |
| 130 | device->oclass[NVDEV_SUBDEV_LTCG ] = &nvc0_ltcg_oclass; |
| 131 | device->oclass[NVDEV_SUBDEV_IBUS ] = &nve0_ibus_oclass; |
| 132 | device->oclass[NVDEV_SUBDEV_INSTMEM] = &nv50_instmem_oclass; |
| 133 | device->oclass[NVDEV_SUBDEV_VM ] = &nvc0_vmmgr_oclass; |
| 134 | device->oclass[NVDEV_SUBDEV_BAR ] = &nvc0_bar_oclass; |
| 135 | device->oclass[NVDEV_ENGINE_DMAOBJ ] = &nvd0_dmaeng_oclass; |
| 136 | device->oclass[NVDEV_ENGINE_FIFO ] = &nve0_fifo_oclass; |
Ben Skeggs | c46c3dd | 2013-10-03 07:30:11 +1000 | [diff] [blame] | 137 | device->oclass[NVDEV_ENGINE_SW ] = nvc0_software_oclass; |
Ben Skeggs | 30f4e08 | 2013-06-09 16:08:22 +1000 | [diff] [blame] | 138 | device->oclass[NVDEV_ENGINE_GR ] = nve4_graph_oclass; |
Ben Skeggs | caba557 | 2012-12-06 14:45:57 +1000 | [diff] [blame] | 139 | device->oclass[NVDEV_ENGINE_DISP ] = &nve0_disp_oclass; |
| 140 | device->oclass[NVDEV_ENGINE_COPY0 ] = &nve0_copy0_oclass; |
| 141 | device->oclass[NVDEV_ENGINE_COPY1 ] = &nve0_copy1_oclass; |
Ben Skeggs | b0bc530 | 2013-04-29 09:31:05 +1000 | [diff] [blame] | 142 | device->oclass[NVDEV_ENGINE_COPY2 ] = &nve0_copy2_oclass; |
Ben Skeggs | caba557 | 2012-12-06 14:45:57 +1000 | [diff] [blame] | 143 | device->oclass[NVDEV_ENGINE_BSP ] = &nve0_bsp_oclass; |
| 144 | device->oclass[NVDEV_ENGINE_VP ] = &nve0_vp_oclass; |
| 145 | device->oclass[NVDEV_ENGINE_PPP ] = &nvc0_ppp_oclass; |
| 146 | break; |
Ben Skeggs | 7b4f638 | 2013-03-30 22:21:54 +1000 | [diff] [blame] | 147 | case 0xf0: |
| 148 | device->cname = "GK110"; |
| 149 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
| 150 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nve0_gpio_oclass; |
| 151 | device->oclass[NVDEV_SUBDEV_I2C ] = &nvd0_i2c_oclass; |
| 152 | device->oclass[NVDEV_SUBDEV_CLOCK ] = &nvc0_clock_oclass; |
| 153 | device->oclass[NVDEV_SUBDEV_THERM ] = &nvd0_therm_oclass; |
| 154 | device->oclass[NVDEV_SUBDEV_MXM ] = &nv50_mxm_oclass; |
Ben Skeggs | 88524bc | 2013-03-05 10:53:54 +1000 | [diff] [blame] | 155 | device->oclass[NVDEV_SUBDEV_DEVINIT] = &nvc0_devinit_oclass; |
Ben Skeggs | 1b4fea0 | 2013-10-11 15:38:15 +1000 | [diff] [blame^] | 156 | device->oclass[NVDEV_SUBDEV_MC ] = nvc3_mc_oclass; |
Ben Skeggs | 7b4f638 | 2013-03-30 22:21:54 +1000 | [diff] [blame] | 157 | device->oclass[NVDEV_SUBDEV_BUS ] = &nvc0_bus_oclass; |
| 158 | device->oclass[NVDEV_SUBDEV_TIMER ] = &nv04_timer_oclass; |
| 159 | device->oclass[NVDEV_SUBDEV_FB ] = &nvc0_fb_oclass; |
| 160 | device->oclass[NVDEV_SUBDEV_LTCG ] = &nvc0_ltcg_oclass; |
| 161 | device->oclass[NVDEV_SUBDEV_IBUS ] = &nve0_ibus_oclass; |
| 162 | device->oclass[NVDEV_SUBDEV_INSTMEM] = &nv50_instmem_oclass; |
| 163 | device->oclass[NVDEV_SUBDEV_VM ] = &nvc0_vmmgr_oclass; |
| 164 | device->oclass[NVDEV_SUBDEV_BAR ] = &nvc0_bar_oclass; |
| 165 | device->oclass[NVDEV_ENGINE_DMAOBJ ] = &nvd0_dmaeng_oclass; |
Ben Skeggs | 7b4f638 | 2013-03-30 22:21:54 +1000 | [diff] [blame] | 166 | device->oclass[NVDEV_ENGINE_FIFO ] = &nve0_fifo_oclass; |
Ben Skeggs | c46c3dd | 2013-10-03 07:30:11 +1000 | [diff] [blame] | 167 | device->oclass[NVDEV_ENGINE_SW ] = nvc0_software_oclass; |
Ben Skeggs | 30f4e08 | 2013-06-09 16:08:22 +1000 | [diff] [blame] | 168 | device->oclass[NVDEV_ENGINE_GR ] = nvf0_graph_oclass; |
Ben Skeggs | 7b4f638 | 2013-03-30 22:21:54 +1000 | [diff] [blame] | 169 | device->oclass[NVDEV_ENGINE_DISP ] = &nvf0_disp_oclass; |
Ben Skeggs | 7b4f638 | 2013-03-30 22:21:54 +1000 | [diff] [blame] | 170 | device->oclass[NVDEV_ENGINE_COPY0 ] = &nve0_copy0_oclass; |
| 171 | device->oclass[NVDEV_ENGINE_COPY1 ] = &nve0_copy1_oclass; |
| 172 | device->oclass[NVDEV_ENGINE_COPY2 ] = &nve0_copy2_oclass; |
Ben Skeggs | 9ec2dbb | 2013-05-02 12:38:41 +1000 | [diff] [blame] | 173 | #if 0 |
Ben Skeggs | 7b4f638 | 2013-03-30 22:21:54 +1000 | [diff] [blame] | 174 | device->oclass[NVDEV_ENGINE_BSP ] = &nve0_bsp_oclass; |
| 175 | device->oclass[NVDEV_ENGINE_VP ] = &nve0_vp_oclass; |
| 176 | device->oclass[NVDEV_ENGINE_PPP ] = &nvc0_ppp_oclass; |
| 177 | #endif |
| 178 | break; |
Ben Skeggs | 9274f4a | 2012-07-06 07:36:43 +1000 | [diff] [blame] | 179 | default: |
| 180 | nv_fatal(device, "unknown Kepler chipset\n"); |
| 181 | return -EINVAL; |
| 182 | } |
| 183 | |
| 184 | return 0; |
| 185 | } |