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> |
Martin Peres | 3ca6cd4 | 2014-08-26 00:26:38 +0200 | [diff] [blame] | 29 | #include <subdev/fuse.h> |
Ben Skeggs | f3867f4 | 2015-01-13 23:37:38 +1000 | [diff] [blame] | 30 | #include <subdev/clk.h> |
Martin Peres | aa1b9b4 | 2012-09-02 02:55:58 +0200 | [diff] [blame] | 31 | #include <subdev/therm.h> |
Ben Skeggs | d38ac52 | 2012-07-22 16:41:26 +1000 | [diff] [blame] | 32 | #include <subdev/mxm.h> |
Ben Skeggs | cb75d97 | 2012-07-11 10:44:20 +1000 | [diff] [blame] | 33 | #include <subdev/devinit.h> |
Ben Skeggs | 7d9115d | 2012-07-11 15:58:56 +1000 | [diff] [blame] | 34 | #include <subdev/mc.h> |
Ben Skeggs | 5a5c743 | 2012-07-11 16:08:25 +1000 | [diff] [blame] | 35 | #include <subdev/timer.h> |
Ben Skeggs | 861d210 | 2012-07-11 19:05:01 +1000 | [diff] [blame] | 36 | #include <subdev/fb.h> |
Ben Skeggs | 95484b5 | 2014-08-10 04:10:28 +1000 | [diff] [blame] | 37 | #include <subdev/ltc.h> |
Ben Skeggs | c0abf5c | 2012-09-26 13:05:01 +1000 | [diff] [blame] | 38 | #include <subdev/ibus.h> |
Ben Skeggs | 3863c9b | 2012-07-14 19:09:17 +1000 | [diff] [blame] | 39 | #include <subdev/instmem.h> |
Ben Skeggs | 5ce3bf3 | 2015-01-14 09:57:36 +1000 | [diff] [blame] | 40 | #include <subdev/mmu.h> |
Ben Skeggs | 3863c9b | 2012-07-14 19:09:17 +1000 | [diff] [blame] | 41 | #include <subdev/bar.h> |
Ben Skeggs | ebb58dc | 2015-01-14 00:04:21 +1000 | [diff] [blame] | 42 | #include <subdev/pmu.h> |
Ben Skeggs | c9c0cca | 2013-02-08 09:34:56 +1000 | [diff] [blame] | 43 | #include <subdev/volt.h> |
Ben Skeggs | 9274f4a | 2012-07-06 07:36:43 +1000 | [diff] [blame] | 44 | |
Ben Skeggs | dded35d | 2013-04-25 17:23:43 +1000 | [diff] [blame] | 45 | #include <engine/device.h> |
Ben Skeggs | ebb945a | 2012-07-20 08:17:34 +1000 | [diff] [blame] | 46 | #include <engine/dmaobj.h> |
| 47 | #include <engine/fifo.h> |
Ben Skeggs | 8700287 | 2015-01-14 12:34:00 +1000 | [diff] [blame] | 48 | #include <engine/sw.h> |
Ben Skeggs | b8bf04e | 2015-01-14 12:02:28 +1000 | [diff] [blame] | 49 | #include <engine/gr.h> |
Ben Skeggs | 37a5d02 | 2015-01-14 12:50:04 +1000 | [diff] [blame] | 50 | #include <engine/mspdec.h> |
Ben Skeggs | ebb945a | 2012-07-20 08:17:34 +1000 | [diff] [blame] | 51 | #include <engine/bsp.h> |
Ben Skeggs | eccf7e8a | 2015-01-14 10:09:24 +1000 | [diff] [blame] | 52 | #include <engine/msvld.h> |
Ben Skeggs | fd8666f | 2015-01-14 12:26:28 +1000 | [diff] [blame] | 53 | #include <engine/msppp.h> |
Ben Skeggs | aedf24f | 2015-01-14 11:50:20 +1000 | [diff] [blame] | 54 | #include <engine/ce.h> |
Ben Skeggs | ebb945a | 2012-07-20 08:17:34 +1000 | [diff] [blame] | 55 | #include <engine/disp.h> |
Ben Skeggs | d5752b9 | 2015-01-14 12:11:28 +1000 | [diff] [blame] | 56 | #include <engine/pm.h> |
Ben Skeggs | ebb945a | 2012-07-20 08:17:34 +1000 | [diff] [blame] | 57 | |
Ben Skeggs | 9274f4a | 2012-07-06 07:36:43 +1000 | [diff] [blame] | 58 | int |
| 59 | nvc0_identify(struct nouveau_device *device) |
| 60 | { |
| 61 | switch (device->chipset) { |
| 62 | case 0xc0: |
Ben Skeggs | 2094dd8 | 2012-07-27 08:28:20 +1000 | [diff] [blame] | 63 | device->cname = "GF100"; |
Ben Skeggs | 70c0f26 | 2012-07-10 10:49:22 +1000 | [diff] [blame] | 64 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
Ben Skeggs | 4e7659f | 2015-01-14 15:02:59 +1000 | [diff] [blame] | 65 | device->oclass[NVDEV_SUBDEV_GPIO ] = g94_gpio_oclass; |
Ben Skeggs | b9ec142 | 2015-01-14 15:04:16 +1000 | [diff] [blame] | 66 | device->oclass[NVDEV_SUBDEV_I2C ] = g94_i2c_oclass; |
Martin Peres | 3ca6cd4 | 2014-08-26 00:26:38 +0200 | [diff] [blame] | 67 | device->oclass[NVDEV_SUBDEV_FUSE ] = &gf100_fuse_oclass; |
Ben Skeggs | 7632b30 | 2015-01-14 14:47:24 +1000 | [diff] [blame] | 68 | device->oclass[NVDEV_SUBDEV_CLK ] = &gf100_clk_oclass; |
Ben Skeggs | e140461 | 2015-01-14 15:11:48 +1000 | [diff] [blame] | 69 | device->oclass[NVDEV_SUBDEV_THERM ] = >215_therm_oclass; |
Ben Skeggs | d38ac52 | 2012-07-22 16:41:26 +1000 | [diff] [blame] | 70 | device->oclass[NVDEV_SUBDEV_MXM ] = &nv50_mxm_oclass; |
Ben Skeggs | a8c4362 | 2015-01-14 14:48:16 +1000 | [diff] [blame] | 71 | device->oclass[NVDEV_SUBDEV_DEVINIT] = gf100_devinit_oclass; |
Ben Skeggs | d7e5fcd | 2015-01-14 15:08:21 +1000 | [diff] [blame] | 72 | device->oclass[NVDEV_SUBDEV_MC ] = gf100_mc_oclass; |
Ben Skeggs | 5f8824d | 2015-01-14 14:40:22 +1000 | [diff] [blame] | 73 | device->oclass[NVDEV_SUBDEV_BUS ] = gf100_bus_oclass; |
Ben Skeggs | 5a5c743 | 2012-07-11 16:08:25 +1000 | [diff] [blame] | 74 | device->oclass[NVDEV_SUBDEV_TIMER ] = &nv04_timer_oclass; |
Ben Skeggs | 639c308 | 2015-01-14 14:52:58 +1000 | [diff] [blame] | 75 | device->oclass[NVDEV_SUBDEV_FB ] = gf100_fb_oclass; |
Ben Skeggs | 95484b5 | 2014-08-10 04:10:28 +1000 | [diff] [blame] | 76 | device->oclass[NVDEV_SUBDEV_LTC ] = gf100_ltc_oclass; |
Ben Skeggs | 5ecfade | 2015-01-14 15:04:31 +1000 | [diff] [blame] | 77 | device->oclass[NVDEV_SUBDEV_IBUS ] = &gf100_ibus_oclass; |
Ben Skeggs | 24a4ae8 | 2013-12-23 00:39:47 +1000 | [diff] [blame] | 78 | device->oclass[NVDEV_SUBDEV_INSTMEM] = nv50_instmem_oclass; |
Ben Skeggs | 4259460 | 2015-01-14 15:09:19 +1000 | [diff] [blame] | 79 | device->oclass[NVDEV_SUBDEV_MMU ] = &gf100_mmu_oclass; |
Ben Skeggs | 245dcfe | 2015-01-14 14:35:35 +1000 | [diff] [blame] | 80 | device->oclass[NVDEV_SUBDEV_BAR ] = &gf100_bar_oclass; |
Ben Skeggs | 21b1379 | 2015-01-14 15:10:40 +1000 | [diff] [blame] | 81 | device->oclass[NVDEV_SUBDEV_PMU ] = gf100_pmu_oclass; |
Ben Skeggs | c9c0cca | 2013-02-08 09:34:56 +1000 | [diff] [blame] | 82 | device->oclass[NVDEV_SUBDEV_VOLT ] = &nv40_volt_oclass; |
Ben Skeggs | bc98540 | 2014-08-10 04:10:24 +1000 | [diff] [blame] | 83 | device->oclass[NVDEV_ENGINE_DMAOBJ ] = nvc0_dmaeng_oclass; |
Ben Skeggs | 16c4f22 | 2013-11-05 14:26:58 +1000 | [diff] [blame] | 84 | device->oclass[NVDEV_ENGINE_FIFO ] = nvc0_fifo_oclass; |
Ben Skeggs | 8700287 | 2015-01-14 12:34:00 +1000 | [diff] [blame] | 85 | device->oclass[NVDEV_ENGINE_SW ] = nvc0_sw_oclass; |
Ben Skeggs | b8bf04e | 2015-01-14 12:02:28 +1000 | [diff] [blame] | 86 | device->oclass[NVDEV_ENGINE_GR ] = nvc0_gr_oclass; |
Ben Skeggs | 37a5d02 | 2015-01-14 12:50:04 +1000 | [diff] [blame] | 87 | device->oclass[NVDEV_ENGINE_MSPDEC ] = &nvc0_mspdec_oclass; |
Ben Skeggs | eccf7e8a | 2015-01-14 10:09:24 +1000 | [diff] [blame] | 88 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nvc0_msvld_oclass; |
Ben Skeggs | fd8666f | 2015-01-14 12:26:28 +1000 | [diff] [blame] | 89 | device->oclass[NVDEV_ENGINE_MSPPP ] = &nvc0_msppp_oclass; |
Ben Skeggs | bd6c5ca | 2015-01-14 15:22:32 +1000 | [diff] [blame] | 90 | device->oclass[NVDEV_ENGINE_CE0 ] = &gf100_ce0_oclass; |
| 91 | device->oclass[NVDEV_ENGINE_CE1 ] = &gf100_ce1_oclass; |
Ben Skeggs | 878da15 | 2015-01-14 15:24:57 +1000 | [diff] [blame^] | 92 | device->oclass[NVDEV_ENGINE_DISP ] = gt215_disp_oclass; |
Ben Skeggs | d5752b9 | 2015-01-14 12:11:28 +1000 | [diff] [blame] | 93 | device->oclass[NVDEV_ENGINE_PM ] = &nvc0_pm_oclass; |
Ben Skeggs | 9274f4a | 2012-07-06 07:36:43 +1000 | [diff] [blame] | 94 | break; |
| 95 | case 0xc4: |
Ben Skeggs | 2094dd8 | 2012-07-27 08:28:20 +1000 | [diff] [blame] | 96 | device->cname = "GF104"; |
Ben Skeggs | 70c0f26 | 2012-07-10 10:49:22 +1000 | [diff] [blame] | 97 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
Ben Skeggs | 4e7659f | 2015-01-14 15:02:59 +1000 | [diff] [blame] | 98 | device->oclass[NVDEV_SUBDEV_GPIO ] = g94_gpio_oclass; |
Ben Skeggs | b9ec142 | 2015-01-14 15:04:16 +1000 | [diff] [blame] | 99 | device->oclass[NVDEV_SUBDEV_I2C ] = g94_i2c_oclass; |
Martin Peres | 3ca6cd4 | 2014-08-26 00:26:38 +0200 | [diff] [blame] | 100 | device->oclass[NVDEV_SUBDEV_FUSE ] = &gf100_fuse_oclass; |
Ben Skeggs | 7632b30 | 2015-01-14 14:47:24 +1000 | [diff] [blame] | 101 | device->oclass[NVDEV_SUBDEV_CLK ] = &gf100_clk_oclass; |
Ben Skeggs | e140461 | 2015-01-14 15:11:48 +1000 | [diff] [blame] | 102 | device->oclass[NVDEV_SUBDEV_THERM ] = >215_therm_oclass; |
Ben Skeggs | d38ac52 | 2012-07-22 16:41:26 +1000 | [diff] [blame] | 103 | device->oclass[NVDEV_SUBDEV_MXM ] = &nv50_mxm_oclass; |
Ben Skeggs | a8c4362 | 2015-01-14 14:48:16 +1000 | [diff] [blame] | 104 | device->oclass[NVDEV_SUBDEV_DEVINIT] = gf100_devinit_oclass; |
Ben Skeggs | d7e5fcd | 2015-01-14 15:08:21 +1000 | [diff] [blame] | 105 | device->oclass[NVDEV_SUBDEV_MC ] = gf100_mc_oclass; |
Ben Skeggs | 5f8824d | 2015-01-14 14:40:22 +1000 | [diff] [blame] | 106 | device->oclass[NVDEV_SUBDEV_BUS ] = gf100_bus_oclass; |
Ben Skeggs | 5a5c743 | 2012-07-11 16:08:25 +1000 | [diff] [blame] | 107 | device->oclass[NVDEV_SUBDEV_TIMER ] = &nv04_timer_oclass; |
Ben Skeggs | 639c308 | 2015-01-14 14:52:58 +1000 | [diff] [blame] | 108 | device->oclass[NVDEV_SUBDEV_FB ] = gf100_fb_oclass; |
Ben Skeggs | 95484b5 | 2014-08-10 04:10:28 +1000 | [diff] [blame] | 109 | device->oclass[NVDEV_SUBDEV_LTC ] = gf100_ltc_oclass; |
Ben Skeggs | 5ecfade | 2015-01-14 15:04:31 +1000 | [diff] [blame] | 110 | device->oclass[NVDEV_SUBDEV_IBUS ] = &gf100_ibus_oclass; |
Ben Skeggs | 24a4ae8 | 2013-12-23 00:39:47 +1000 | [diff] [blame] | 111 | device->oclass[NVDEV_SUBDEV_INSTMEM] = nv50_instmem_oclass; |
Ben Skeggs | 4259460 | 2015-01-14 15:09:19 +1000 | [diff] [blame] | 112 | device->oclass[NVDEV_SUBDEV_MMU ] = &gf100_mmu_oclass; |
Ben Skeggs | 245dcfe | 2015-01-14 14:35:35 +1000 | [diff] [blame] | 113 | device->oclass[NVDEV_SUBDEV_BAR ] = &gf100_bar_oclass; |
Ben Skeggs | 21b1379 | 2015-01-14 15:10:40 +1000 | [diff] [blame] | 114 | device->oclass[NVDEV_SUBDEV_PMU ] = gf100_pmu_oclass; |
Ben Skeggs | c9c0cca | 2013-02-08 09:34:56 +1000 | [diff] [blame] | 115 | device->oclass[NVDEV_SUBDEV_VOLT ] = &nv40_volt_oclass; |
Ben Skeggs | bc98540 | 2014-08-10 04:10:24 +1000 | [diff] [blame] | 116 | device->oclass[NVDEV_ENGINE_DMAOBJ ] = nvc0_dmaeng_oclass; |
Ben Skeggs | 16c4f22 | 2013-11-05 14:26:58 +1000 | [diff] [blame] | 117 | device->oclass[NVDEV_ENGINE_FIFO ] = nvc0_fifo_oclass; |
Ben Skeggs | 8700287 | 2015-01-14 12:34:00 +1000 | [diff] [blame] | 118 | device->oclass[NVDEV_ENGINE_SW ] = nvc0_sw_oclass; |
Ben Skeggs | b8bf04e | 2015-01-14 12:02:28 +1000 | [diff] [blame] | 119 | device->oclass[NVDEV_ENGINE_GR ] = nvc4_gr_oclass; |
Ben Skeggs | 37a5d02 | 2015-01-14 12:50:04 +1000 | [diff] [blame] | 120 | device->oclass[NVDEV_ENGINE_MSPDEC ] = &nvc0_mspdec_oclass; |
Ben Skeggs | eccf7e8a | 2015-01-14 10:09:24 +1000 | [diff] [blame] | 121 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nvc0_msvld_oclass; |
Ben Skeggs | fd8666f | 2015-01-14 12:26:28 +1000 | [diff] [blame] | 122 | device->oclass[NVDEV_ENGINE_MSPPP ] = &nvc0_msppp_oclass; |
Ben Skeggs | bd6c5ca | 2015-01-14 15:22:32 +1000 | [diff] [blame] | 123 | device->oclass[NVDEV_ENGINE_CE0 ] = &gf100_ce0_oclass; |
| 124 | device->oclass[NVDEV_ENGINE_CE1 ] = &gf100_ce1_oclass; |
Ben Skeggs | 878da15 | 2015-01-14 15:24:57 +1000 | [diff] [blame^] | 125 | device->oclass[NVDEV_ENGINE_DISP ] = gt215_disp_oclass; |
Ben Skeggs | d5752b9 | 2015-01-14 12:11:28 +1000 | [diff] [blame] | 126 | device->oclass[NVDEV_ENGINE_PM ] = &nvc0_pm_oclass; |
Ben Skeggs | 9274f4a | 2012-07-06 07:36:43 +1000 | [diff] [blame] | 127 | break; |
| 128 | case 0xc3: |
Ben Skeggs | 2094dd8 | 2012-07-27 08:28:20 +1000 | [diff] [blame] | 129 | device->cname = "GF106"; |
Ben Skeggs | 70c0f26 | 2012-07-10 10:49:22 +1000 | [diff] [blame] | 130 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
Ben Skeggs | 4e7659f | 2015-01-14 15:02:59 +1000 | [diff] [blame] | 131 | device->oclass[NVDEV_SUBDEV_GPIO ] = g94_gpio_oclass; |
Ben Skeggs | b9ec142 | 2015-01-14 15:04:16 +1000 | [diff] [blame] | 132 | device->oclass[NVDEV_SUBDEV_I2C ] = g94_i2c_oclass; |
Martin Peres | 3ca6cd4 | 2014-08-26 00:26:38 +0200 | [diff] [blame] | 133 | device->oclass[NVDEV_SUBDEV_FUSE ] = &gf100_fuse_oclass; |
Ben Skeggs | 7632b30 | 2015-01-14 14:47:24 +1000 | [diff] [blame] | 134 | device->oclass[NVDEV_SUBDEV_CLK ] = &gf100_clk_oclass; |
Ben Skeggs | e140461 | 2015-01-14 15:11:48 +1000 | [diff] [blame] | 135 | device->oclass[NVDEV_SUBDEV_THERM ] = >215_therm_oclass; |
Ben Skeggs | d38ac52 | 2012-07-22 16:41:26 +1000 | [diff] [blame] | 136 | device->oclass[NVDEV_SUBDEV_MXM ] = &nv50_mxm_oclass; |
Ben Skeggs | a8c4362 | 2015-01-14 14:48:16 +1000 | [diff] [blame] | 137 | device->oclass[NVDEV_SUBDEV_DEVINIT] = gf100_devinit_oclass; |
Ben Skeggs | d7e5fcd | 2015-01-14 15:08:21 +1000 | [diff] [blame] | 138 | device->oclass[NVDEV_SUBDEV_MC ] = gf106_mc_oclass; |
Ben Skeggs | 5f8824d | 2015-01-14 14:40:22 +1000 | [diff] [blame] | 139 | device->oclass[NVDEV_SUBDEV_BUS ] = gf100_bus_oclass; |
Ben Skeggs | 5a5c743 | 2012-07-11 16:08:25 +1000 | [diff] [blame] | 140 | device->oclass[NVDEV_SUBDEV_TIMER ] = &nv04_timer_oclass; |
Ben Skeggs | 639c308 | 2015-01-14 14:52:58 +1000 | [diff] [blame] | 141 | device->oclass[NVDEV_SUBDEV_FB ] = gf100_fb_oclass; |
Ben Skeggs | 95484b5 | 2014-08-10 04:10:28 +1000 | [diff] [blame] | 142 | device->oclass[NVDEV_SUBDEV_LTC ] = gf100_ltc_oclass; |
Ben Skeggs | 5ecfade | 2015-01-14 15:04:31 +1000 | [diff] [blame] | 143 | device->oclass[NVDEV_SUBDEV_IBUS ] = &gf100_ibus_oclass; |
Ben Skeggs | 24a4ae8 | 2013-12-23 00:39:47 +1000 | [diff] [blame] | 144 | device->oclass[NVDEV_SUBDEV_INSTMEM] = nv50_instmem_oclass; |
Ben Skeggs | 4259460 | 2015-01-14 15:09:19 +1000 | [diff] [blame] | 145 | device->oclass[NVDEV_SUBDEV_MMU ] = &gf100_mmu_oclass; |
Ben Skeggs | 245dcfe | 2015-01-14 14:35:35 +1000 | [diff] [blame] | 146 | device->oclass[NVDEV_SUBDEV_BAR ] = &gf100_bar_oclass; |
Ben Skeggs | 21b1379 | 2015-01-14 15:10:40 +1000 | [diff] [blame] | 147 | device->oclass[NVDEV_SUBDEV_PMU ] = gf100_pmu_oclass; |
Ben Skeggs | c9c0cca | 2013-02-08 09:34:56 +1000 | [diff] [blame] | 148 | device->oclass[NVDEV_SUBDEV_VOLT ] = &nv40_volt_oclass; |
Ben Skeggs | bc98540 | 2014-08-10 04:10:24 +1000 | [diff] [blame] | 149 | device->oclass[NVDEV_ENGINE_DMAOBJ ] = nvc0_dmaeng_oclass; |
Ben Skeggs | 16c4f22 | 2013-11-05 14:26:58 +1000 | [diff] [blame] | 150 | device->oclass[NVDEV_ENGINE_FIFO ] = nvc0_fifo_oclass; |
Ben Skeggs | 8700287 | 2015-01-14 12:34:00 +1000 | [diff] [blame] | 151 | device->oclass[NVDEV_ENGINE_SW ] = nvc0_sw_oclass; |
Ben Skeggs | b8bf04e | 2015-01-14 12:02:28 +1000 | [diff] [blame] | 152 | device->oclass[NVDEV_ENGINE_GR ] = nvc4_gr_oclass; |
Ben Skeggs | 37a5d02 | 2015-01-14 12:50:04 +1000 | [diff] [blame] | 153 | device->oclass[NVDEV_ENGINE_MSPDEC ] = &nvc0_mspdec_oclass; |
Ben Skeggs | eccf7e8a | 2015-01-14 10:09:24 +1000 | [diff] [blame] | 154 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nvc0_msvld_oclass; |
Ben Skeggs | fd8666f | 2015-01-14 12:26:28 +1000 | [diff] [blame] | 155 | device->oclass[NVDEV_ENGINE_MSPPP ] = &nvc0_msppp_oclass; |
Ben Skeggs | bd6c5ca | 2015-01-14 15:22:32 +1000 | [diff] [blame] | 156 | device->oclass[NVDEV_ENGINE_CE0 ] = &gf100_ce0_oclass; |
Ben Skeggs | 878da15 | 2015-01-14 15:24:57 +1000 | [diff] [blame^] | 157 | device->oclass[NVDEV_ENGINE_DISP ] = gt215_disp_oclass; |
Ben Skeggs | d5752b9 | 2015-01-14 12:11:28 +1000 | [diff] [blame] | 158 | device->oclass[NVDEV_ENGINE_PM ] = &nvc0_pm_oclass; |
Ben Skeggs | 9274f4a | 2012-07-06 07:36:43 +1000 | [diff] [blame] | 159 | break; |
| 160 | case 0xce: |
Ben Skeggs | 2094dd8 | 2012-07-27 08:28:20 +1000 | [diff] [blame] | 161 | device->cname = "GF114"; |
Ben Skeggs | 70c0f26 | 2012-07-10 10:49:22 +1000 | [diff] [blame] | 162 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
Ben Skeggs | 4e7659f | 2015-01-14 15:02:59 +1000 | [diff] [blame] | 163 | device->oclass[NVDEV_SUBDEV_GPIO ] = g94_gpio_oclass; |
Ben Skeggs | b9ec142 | 2015-01-14 15:04:16 +1000 | [diff] [blame] | 164 | device->oclass[NVDEV_SUBDEV_I2C ] = g94_i2c_oclass; |
Martin Peres | 3ca6cd4 | 2014-08-26 00:26:38 +0200 | [diff] [blame] | 165 | device->oclass[NVDEV_SUBDEV_FUSE ] = &gf100_fuse_oclass; |
Ben Skeggs | 7632b30 | 2015-01-14 14:47:24 +1000 | [diff] [blame] | 166 | device->oclass[NVDEV_SUBDEV_CLK ] = &gf100_clk_oclass; |
Ben Skeggs | e140461 | 2015-01-14 15:11:48 +1000 | [diff] [blame] | 167 | device->oclass[NVDEV_SUBDEV_THERM ] = >215_therm_oclass; |
Ben Skeggs | d38ac52 | 2012-07-22 16:41:26 +1000 | [diff] [blame] | 168 | device->oclass[NVDEV_SUBDEV_MXM ] = &nv50_mxm_oclass; |
Ben Skeggs | a8c4362 | 2015-01-14 14:48:16 +1000 | [diff] [blame] | 169 | device->oclass[NVDEV_SUBDEV_DEVINIT] = gf100_devinit_oclass; |
Ben Skeggs | d7e5fcd | 2015-01-14 15:08:21 +1000 | [diff] [blame] | 170 | device->oclass[NVDEV_SUBDEV_MC ] = gf100_mc_oclass; |
Ben Skeggs | 5f8824d | 2015-01-14 14:40:22 +1000 | [diff] [blame] | 171 | device->oclass[NVDEV_SUBDEV_BUS ] = gf100_bus_oclass; |
Ben Skeggs | 5a5c743 | 2012-07-11 16:08:25 +1000 | [diff] [blame] | 172 | device->oclass[NVDEV_SUBDEV_TIMER ] = &nv04_timer_oclass; |
Ben Skeggs | 639c308 | 2015-01-14 14:52:58 +1000 | [diff] [blame] | 173 | device->oclass[NVDEV_SUBDEV_FB ] = gf100_fb_oclass; |
Ben Skeggs | 95484b5 | 2014-08-10 04:10:28 +1000 | [diff] [blame] | 174 | device->oclass[NVDEV_SUBDEV_LTC ] = gf100_ltc_oclass; |
Ben Skeggs | 5ecfade | 2015-01-14 15:04:31 +1000 | [diff] [blame] | 175 | device->oclass[NVDEV_SUBDEV_IBUS ] = &gf100_ibus_oclass; |
Ben Skeggs | 24a4ae8 | 2013-12-23 00:39:47 +1000 | [diff] [blame] | 176 | device->oclass[NVDEV_SUBDEV_INSTMEM] = nv50_instmem_oclass; |
Ben Skeggs | 4259460 | 2015-01-14 15:09:19 +1000 | [diff] [blame] | 177 | device->oclass[NVDEV_SUBDEV_MMU ] = &gf100_mmu_oclass; |
Ben Skeggs | 245dcfe | 2015-01-14 14:35:35 +1000 | [diff] [blame] | 178 | device->oclass[NVDEV_SUBDEV_BAR ] = &gf100_bar_oclass; |
Ben Skeggs | 21b1379 | 2015-01-14 15:10:40 +1000 | [diff] [blame] | 179 | device->oclass[NVDEV_SUBDEV_PMU ] = gf100_pmu_oclass; |
Ben Skeggs | c9c0cca | 2013-02-08 09:34:56 +1000 | [diff] [blame] | 180 | device->oclass[NVDEV_SUBDEV_VOLT ] = &nv40_volt_oclass; |
Ben Skeggs | bc98540 | 2014-08-10 04:10:24 +1000 | [diff] [blame] | 181 | device->oclass[NVDEV_ENGINE_DMAOBJ ] = nvc0_dmaeng_oclass; |
Ben Skeggs | 16c4f22 | 2013-11-05 14:26:58 +1000 | [diff] [blame] | 182 | device->oclass[NVDEV_ENGINE_FIFO ] = nvc0_fifo_oclass; |
Ben Skeggs | 8700287 | 2015-01-14 12:34:00 +1000 | [diff] [blame] | 183 | device->oclass[NVDEV_ENGINE_SW ] = nvc0_sw_oclass; |
Ben Skeggs | b8bf04e | 2015-01-14 12:02:28 +1000 | [diff] [blame] | 184 | device->oclass[NVDEV_ENGINE_GR ] = nvc4_gr_oclass; |
Ben Skeggs | 37a5d02 | 2015-01-14 12:50:04 +1000 | [diff] [blame] | 185 | device->oclass[NVDEV_ENGINE_MSPDEC ] = &nvc0_mspdec_oclass; |
Ben Skeggs | eccf7e8a | 2015-01-14 10:09:24 +1000 | [diff] [blame] | 186 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nvc0_msvld_oclass; |
Ben Skeggs | fd8666f | 2015-01-14 12:26:28 +1000 | [diff] [blame] | 187 | device->oclass[NVDEV_ENGINE_MSPPP ] = &nvc0_msppp_oclass; |
Ben Skeggs | bd6c5ca | 2015-01-14 15:22:32 +1000 | [diff] [blame] | 188 | device->oclass[NVDEV_ENGINE_CE0 ] = &gf100_ce0_oclass; |
| 189 | device->oclass[NVDEV_ENGINE_CE1 ] = &gf100_ce1_oclass; |
Ben Skeggs | 878da15 | 2015-01-14 15:24:57 +1000 | [diff] [blame^] | 190 | device->oclass[NVDEV_ENGINE_DISP ] = gt215_disp_oclass; |
Ben Skeggs | d5752b9 | 2015-01-14 12:11:28 +1000 | [diff] [blame] | 191 | device->oclass[NVDEV_ENGINE_PM ] = &nvc0_pm_oclass; |
Ben Skeggs | 9274f4a | 2012-07-06 07:36:43 +1000 | [diff] [blame] | 192 | break; |
| 193 | case 0xcf: |
Ben Skeggs | 2094dd8 | 2012-07-27 08:28:20 +1000 | [diff] [blame] | 194 | device->cname = "GF116"; |
Ben Skeggs | 70c0f26 | 2012-07-10 10:49:22 +1000 | [diff] [blame] | 195 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
Ben Skeggs | 4e7659f | 2015-01-14 15:02:59 +1000 | [diff] [blame] | 196 | device->oclass[NVDEV_SUBDEV_GPIO ] = g94_gpio_oclass; |
Ben Skeggs | b9ec142 | 2015-01-14 15:04:16 +1000 | [diff] [blame] | 197 | device->oclass[NVDEV_SUBDEV_I2C ] = g94_i2c_oclass; |
Martin Peres | 3ca6cd4 | 2014-08-26 00:26:38 +0200 | [diff] [blame] | 198 | device->oclass[NVDEV_SUBDEV_FUSE ] = &gf100_fuse_oclass; |
Ben Skeggs | 7632b30 | 2015-01-14 14:47:24 +1000 | [diff] [blame] | 199 | device->oclass[NVDEV_SUBDEV_CLK ] = &gf100_clk_oclass; |
Ben Skeggs | e140461 | 2015-01-14 15:11:48 +1000 | [diff] [blame] | 200 | device->oclass[NVDEV_SUBDEV_THERM ] = >215_therm_oclass; |
Ben Skeggs | d38ac52 | 2012-07-22 16:41:26 +1000 | [diff] [blame] | 201 | device->oclass[NVDEV_SUBDEV_MXM ] = &nv50_mxm_oclass; |
Ben Skeggs | a8c4362 | 2015-01-14 14:48:16 +1000 | [diff] [blame] | 202 | device->oclass[NVDEV_SUBDEV_DEVINIT] = gf100_devinit_oclass; |
Ben Skeggs | d7e5fcd | 2015-01-14 15:08:21 +1000 | [diff] [blame] | 203 | device->oclass[NVDEV_SUBDEV_MC ] = gf106_mc_oclass; |
Ben Skeggs | 5f8824d | 2015-01-14 14:40:22 +1000 | [diff] [blame] | 204 | device->oclass[NVDEV_SUBDEV_BUS ] = gf100_bus_oclass; |
Ben Skeggs | 5a5c743 | 2012-07-11 16:08:25 +1000 | [diff] [blame] | 205 | device->oclass[NVDEV_SUBDEV_TIMER ] = &nv04_timer_oclass; |
Ben Skeggs | 639c308 | 2015-01-14 14:52:58 +1000 | [diff] [blame] | 206 | device->oclass[NVDEV_SUBDEV_FB ] = gf100_fb_oclass; |
Ben Skeggs | 95484b5 | 2014-08-10 04:10:28 +1000 | [diff] [blame] | 207 | device->oclass[NVDEV_SUBDEV_LTC ] = gf100_ltc_oclass; |
Ben Skeggs | 5ecfade | 2015-01-14 15:04:31 +1000 | [diff] [blame] | 208 | device->oclass[NVDEV_SUBDEV_IBUS ] = &gf100_ibus_oclass; |
Ben Skeggs | 24a4ae8 | 2013-12-23 00:39:47 +1000 | [diff] [blame] | 209 | device->oclass[NVDEV_SUBDEV_INSTMEM] = nv50_instmem_oclass; |
Ben Skeggs | 4259460 | 2015-01-14 15:09:19 +1000 | [diff] [blame] | 210 | device->oclass[NVDEV_SUBDEV_MMU ] = &gf100_mmu_oclass; |
Ben Skeggs | 245dcfe | 2015-01-14 14:35:35 +1000 | [diff] [blame] | 211 | device->oclass[NVDEV_SUBDEV_BAR ] = &gf100_bar_oclass; |
Ben Skeggs | 21b1379 | 2015-01-14 15:10:40 +1000 | [diff] [blame] | 212 | device->oclass[NVDEV_SUBDEV_PMU ] = gf100_pmu_oclass; |
Ben Skeggs | c9c0cca | 2013-02-08 09:34:56 +1000 | [diff] [blame] | 213 | device->oclass[NVDEV_SUBDEV_VOLT ] = &nv40_volt_oclass; |
Ben Skeggs | bc98540 | 2014-08-10 04:10:24 +1000 | [diff] [blame] | 214 | device->oclass[NVDEV_ENGINE_DMAOBJ ] = nvc0_dmaeng_oclass; |
Ben Skeggs | 16c4f22 | 2013-11-05 14:26:58 +1000 | [diff] [blame] | 215 | device->oclass[NVDEV_ENGINE_FIFO ] = nvc0_fifo_oclass; |
Ben Skeggs | 8700287 | 2015-01-14 12:34:00 +1000 | [diff] [blame] | 216 | device->oclass[NVDEV_ENGINE_SW ] = nvc0_sw_oclass; |
Ben Skeggs | b8bf04e | 2015-01-14 12:02:28 +1000 | [diff] [blame] | 217 | device->oclass[NVDEV_ENGINE_GR ] = nvc4_gr_oclass; |
Ben Skeggs | 37a5d02 | 2015-01-14 12:50:04 +1000 | [diff] [blame] | 218 | device->oclass[NVDEV_ENGINE_MSPDEC ] = &nvc0_mspdec_oclass; |
Ben Skeggs | eccf7e8a | 2015-01-14 10:09:24 +1000 | [diff] [blame] | 219 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nvc0_msvld_oclass; |
Ben Skeggs | fd8666f | 2015-01-14 12:26:28 +1000 | [diff] [blame] | 220 | device->oclass[NVDEV_ENGINE_MSPPP ] = &nvc0_msppp_oclass; |
Ben Skeggs | bd6c5ca | 2015-01-14 15:22:32 +1000 | [diff] [blame] | 221 | device->oclass[NVDEV_ENGINE_CE0 ] = &gf100_ce0_oclass; |
Ben Skeggs | 878da15 | 2015-01-14 15:24:57 +1000 | [diff] [blame^] | 222 | device->oclass[NVDEV_ENGINE_DISP ] = gt215_disp_oclass; |
Ben Skeggs | d5752b9 | 2015-01-14 12:11:28 +1000 | [diff] [blame] | 223 | device->oclass[NVDEV_ENGINE_PM ] = &nvc0_pm_oclass; |
Ben Skeggs | 9274f4a | 2012-07-06 07:36:43 +1000 | [diff] [blame] | 224 | break; |
| 225 | case 0xc1: |
Ben Skeggs | 2094dd8 | 2012-07-27 08:28:20 +1000 | [diff] [blame] | 226 | device->cname = "GF108"; |
Ben Skeggs | 70c0f26 | 2012-07-10 10:49:22 +1000 | [diff] [blame] | 227 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
Ben Skeggs | 4e7659f | 2015-01-14 15:02:59 +1000 | [diff] [blame] | 228 | device->oclass[NVDEV_SUBDEV_GPIO ] = g94_gpio_oclass; |
Ben Skeggs | b9ec142 | 2015-01-14 15:04:16 +1000 | [diff] [blame] | 229 | device->oclass[NVDEV_SUBDEV_I2C ] = g94_i2c_oclass; |
Martin Peres | 3ca6cd4 | 2014-08-26 00:26:38 +0200 | [diff] [blame] | 230 | device->oclass[NVDEV_SUBDEV_FUSE ] = &gf100_fuse_oclass; |
Ben Skeggs | 7632b30 | 2015-01-14 14:47:24 +1000 | [diff] [blame] | 231 | device->oclass[NVDEV_SUBDEV_CLK ] = &gf100_clk_oclass; |
Ben Skeggs | e140461 | 2015-01-14 15:11:48 +1000 | [diff] [blame] | 232 | device->oclass[NVDEV_SUBDEV_THERM ] = >215_therm_oclass; |
Ben Skeggs | d38ac52 | 2012-07-22 16:41:26 +1000 | [diff] [blame] | 233 | device->oclass[NVDEV_SUBDEV_MXM ] = &nv50_mxm_oclass; |
Ben Skeggs | a8c4362 | 2015-01-14 14:48:16 +1000 | [diff] [blame] | 234 | device->oclass[NVDEV_SUBDEV_DEVINIT] = gf100_devinit_oclass; |
Ben Skeggs | d7e5fcd | 2015-01-14 15:08:21 +1000 | [diff] [blame] | 235 | device->oclass[NVDEV_SUBDEV_MC ] = gf106_mc_oclass; |
Ben Skeggs | 5f8824d | 2015-01-14 14:40:22 +1000 | [diff] [blame] | 236 | device->oclass[NVDEV_SUBDEV_BUS ] = gf100_bus_oclass; |
Ben Skeggs | 5a5c743 | 2012-07-11 16:08:25 +1000 | [diff] [blame] | 237 | device->oclass[NVDEV_SUBDEV_TIMER ] = &nv04_timer_oclass; |
Ben Skeggs | 639c308 | 2015-01-14 14:52:58 +1000 | [diff] [blame] | 238 | device->oclass[NVDEV_SUBDEV_FB ] = gf100_fb_oclass; |
Ben Skeggs | 95484b5 | 2014-08-10 04:10:28 +1000 | [diff] [blame] | 239 | device->oclass[NVDEV_SUBDEV_LTC ] = gf100_ltc_oclass; |
Ben Skeggs | 5ecfade | 2015-01-14 15:04:31 +1000 | [diff] [blame] | 240 | device->oclass[NVDEV_SUBDEV_IBUS ] = &gf100_ibus_oclass; |
Ben Skeggs | 24a4ae8 | 2013-12-23 00:39:47 +1000 | [diff] [blame] | 241 | device->oclass[NVDEV_SUBDEV_INSTMEM] = nv50_instmem_oclass; |
Ben Skeggs | 4259460 | 2015-01-14 15:09:19 +1000 | [diff] [blame] | 242 | device->oclass[NVDEV_SUBDEV_MMU ] = &gf100_mmu_oclass; |
Ben Skeggs | 245dcfe | 2015-01-14 14:35:35 +1000 | [diff] [blame] | 243 | device->oclass[NVDEV_SUBDEV_BAR ] = &gf100_bar_oclass; |
Ben Skeggs | 21b1379 | 2015-01-14 15:10:40 +1000 | [diff] [blame] | 244 | device->oclass[NVDEV_SUBDEV_PMU ] = gf100_pmu_oclass; |
Ben Skeggs | c9c0cca | 2013-02-08 09:34:56 +1000 | [diff] [blame] | 245 | device->oclass[NVDEV_SUBDEV_VOLT ] = &nv40_volt_oclass; |
Ben Skeggs | bc98540 | 2014-08-10 04:10:24 +1000 | [diff] [blame] | 246 | device->oclass[NVDEV_ENGINE_DMAOBJ ] = nvc0_dmaeng_oclass; |
Ben Skeggs | 16c4f22 | 2013-11-05 14:26:58 +1000 | [diff] [blame] | 247 | device->oclass[NVDEV_ENGINE_FIFO ] = nvc0_fifo_oclass; |
Ben Skeggs | 8700287 | 2015-01-14 12:34:00 +1000 | [diff] [blame] | 248 | device->oclass[NVDEV_ENGINE_SW ] = nvc0_sw_oclass; |
Ben Skeggs | b8bf04e | 2015-01-14 12:02:28 +1000 | [diff] [blame] | 249 | device->oclass[NVDEV_ENGINE_GR ] = nvc1_gr_oclass; |
Ben Skeggs | 37a5d02 | 2015-01-14 12:50:04 +1000 | [diff] [blame] | 250 | device->oclass[NVDEV_ENGINE_MSPDEC ] = &nvc0_mspdec_oclass; |
Ben Skeggs | eccf7e8a | 2015-01-14 10:09:24 +1000 | [diff] [blame] | 251 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nvc0_msvld_oclass; |
Ben Skeggs | fd8666f | 2015-01-14 12:26:28 +1000 | [diff] [blame] | 252 | device->oclass[NVDEV_ENGINE_MSPPP ] = &nvc0_msppp_oclass; |
Ben Skeggs | bd6c5ca | 2015-01-14 15:22:32 +1000 | [diff] [blame] | 253 | device->oclass[NVDEV_ENGINE_CE0 ] = &gf100_ce0_oclass; |
Ben Skeggs | 878da15 | 2015-01-14 15:24:57 +1000 | [diff] [blame^] | 254 | device->oclass[NVDEV_ENGINE_DISP ] = gt215_disp_oclass; |
Ben Skeggs | d5752b9 | 2015-01-14 12:11:28 +1000 | [diff] [blame] | 255 | device->oclass[NVDEV_ENGINE_PM ] = &nvc0_pm_oclass; |
Ben Skeggs | 9274f4a | 2012-07-06 07:36:43 +1000 | [diff] [blame] | 256 | break; |
| 257 | case 0xc8: |
Ben Skeggs | 2094dd8 | 2012-07-27 08:28:20 +1000 | [diff] [blame] | 258 | device->cname = "GF110"; |
Ben Skeggs | 70c0f26 | 2012-07-10 10:49:22 +1000 | [diff] [blame] | 259 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
Ben Skeggs | 4e7659f | 2015-01-14 15:02:59 +1000 | [diff] [blame] | 260 | device->oclass[NVDEV_SUBDEV_GPIO ] = g94_gpio_oclass; |
Ben Skeggs | b9ec142 | 2015-01-14 15:04:16 +1000 | [diff] [blame] | 261 | device->oclass[NVDEV_SUBDEV_I2C ] = g94_i2c_oclass; |
Martin Peres | 3ca6cd4 | 2014-08-26 00:26:38 +0200 | [diff] [blame] | 262 | device->oclass[NVDEV_SUBDEV_FUSE ] = &gf100_fuse_oclass; |
Ben Skeggs | 7632b30 | 2015-01-14 14:47:24 +1000 | [diff] [blame] | 263 | device->oclass[NVDEV_SUBDEV_CLK ] = &gf100_clk_oclass; |
Ben Skeggs | e140461 | 2015-01-14 15:11:48 +1000 | [diff] [blame] | 264 | device->oclass[NVDEV_SUBDEV_THERM ] = >215_therm_oclass; |
Ben Skeggs | d38ac52 | 2012-07-22 16:41:26 +1000 | [diff] [blame] | 265 | device->oclass[NVDEV_SUBDEV_MXM ] = &nv50_mxm_oclass; |
Ben Skeggs | a8c4362 | 2015-01-14 14:48:16 +1000 | [diff] [blame] | 266 | device->oclass[NVDEV_SUBDEV_DEVINIT] = gf100_devinit_oclass; |
Ben Skeggs | d7e5fcd | 2015-01-14 15:08:21 +1000 | [diff] [blame] | 267 | device->oclass[NVDEV_SUBDEV_MC ] = gf100_mc_oclass; |
Ben Skeggs | 5f8824d | 2015-01-14 14:40:22 +1000 | [diff] [blame] | 268 | device->oclass[NVDEV_SUBDEV_BUS ] = gf100_bus_oclass; |
Ben Skeggs | 5a5c743 | 2012-07-11 16:08:25 +1000 | [diff] [blame] | 269 | device->oclass[NVDEV_SUBDEV_TIMER ] = &nv04_timer_oclass; |
Ben Skeggs | 639c308 | 2015-01-14 14:52:58 +1000 | [diff] [blame] | 270 | device->oclass[NVDEV_SUBDEV_FB ] = gf100_fb_oclass; |
Ben Skeggs | 95484b5 | 2014-08-10 04:10:28 +1000 | [diff] [blame] | 271 | device->oclass[NVDEV_SUBDEV_LTC ] = gf100_ltc_oclass; |
Ben Skeggs | 5ecfade | 2015-01-14 15:04:31 +1000 | [diff] [blame] | 272 | device->oclass[NVDEV_SUBDEV_IBUS ] = &gf100_ibus_oclass; |
Ben Skeggs | 24a4ae8 | 2013-12-23 00:39:47 +1000 | [diff] [blame] | 273 | device->oclass[NVDEV_SUBDEV_INSTMEM] = nv50_instmem_oclass; |
Ben Skeggs | 4259460 | 2015-01-14 15:09:19 +1000 | [diff] [blame] | 274 | device->oclass[NVDEV_SUBDEV_MMU ] = &gf100_mmu_oclass; |
Ben Skeggs | 245dcfe | 2015-01-14 14:35:35 +1000 | [diff] [blame] | 275 | device->oclass[NVDEV_SUBDEV_BAR ] = &gf100_bar_oclass; |
Ben Skeggs | 21b1379 | 2015-01-14 15:10:40 +1000 | [diff] [blame] | 276 | device->oclass[NVDEV_SUBDEV_PMU ] = gf100_pmu_oclass; |
Ben Skeggs | c9c0cca | 2013-02-08 09:34:56 +1000 | [diff] [blame] | 277 | device->oclass[NVDEV_SUBDEV_VOLT ] = &nv40_volt_oclass; |
Ben Skeggs | bc98540 | 2014-08-10 04:10:24 +1000 | [diff] [blame] | 278 | device->oclass[NVDEV_ENGINE_DMAOBJ ] = nvc0_dmaeng_oclass; |
Ben Skeggs | 16c4f22 | 2013-11-05 14:26:58 +1000 | [diff] [blame] | 279 | device->oclass[NVDEV_ENGINE_FIFO ] = nvc0_fifo_oclass; |
Ben Skeggs | 8700287 | 2015-01-14 12:34:00 +1000 | [diff] [blame] | 280 | device->oclass[NVDEV_ENGINE_SW ] = nvc0_sw_oclass; |
Ben Skeggs | b8bf04e | 2015-01-14 12:02:28 +1000 | [diff] [blame] | 281 | device->oclass[NVDEV_ENGINE_GR ] = nvc8_gr_oclass; |
Ben Skeggs | 37a5d02 | 2015-01-14 12:50:04 +1000 | [diff] [blame] | 282 | device->oclass[NVDEV_ENGINE_MSPDEC ] = &nvc0_mspdec_oclass; |
Ben Skeggs | eccf7e8a | 2015-01-14 10:09:24 +1000 | [diff] [blame] | 283 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nvc0_msvld_oclass; |
Ben Skeggs | fd8666f | 2015-01-14 12:26:28 +1000 | [diff] [blame] | 284 | device->oclass[NVDEV_ENGINE_MSPPP ] = &nvc0_msppp_oclass; |
Ben Skeggs | bd6c5ca | 2015-01-14 15:22:32 +1000 | [diff] [blame] | 285 | device->oclass[NVDEV_ENGINE_CE0 ] = &gf100_ce0_oclass; |
| 286 | device->oclass[NVDEV_ENGINE_CE1 ] = &gf100_ce1_oclass; |
Ben Skeggs | 878da15 | 2015-01-14 15:24:57 +1000 | [diff] [blame^] | 287 | device->oclass[NVDEV_ENGINE_DISP ] = gt215_disp_oclass; |
Ben Skeggs | d5752b9 | 2015-01-14 12:11:28 +1000 | [diff] [blame] | 288 | device->oclass[NVDEV_ENGINE_PM ] = &nvc0_pm_oclass; |
Ben Skeggs | 9274f4a | 2012-07-06 07:36:43 +1000 | [diff] [blame] | 289 | break; |
| 290 | case 0xd9: |
Ben Skeggs | 2094dd8 | 2012-07-27 08:28:20 +1000 | [diff] [blame] | 291 | device->cname = "GF119"; |
Ben Skeggs | 70c0f26 | 2012-07-10 10:49:22 +1000 | [diff] [blame] | 292 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
Ben Skeggs | 4e7659f | 2015-01-14 15:02:59 +1000 | [diff] [blame] | 293 | device->oclass[NVDEV_SUBDEV_GPIO ] = gf110_gpio_oclass; |
Ben Skeggs | b9ec142 | 2015-01-14 15:04:16 +1000 | [diff] [blame] | 294 | device->oclass[NVDEV_SUBDEV_I2C ] = gf110_i2c_oclass; |
Martin Peres | 3ca6cd4 | 2014-08-26 00:26:38 +0200 | [diff] [blame] | 295 | device->oclass[NVDEV_SUBDEV_FUSE ] = &gf100_fuse_oclass; |
Ben Skeggs | 7632b30 | 2015-01-14 14:47:24 +1000 | [diff] [blame] | 296 | device->oclass[NVDEV_SUBDEV_CLK ] = &gf100_clk_oclass; |
Ben Skeggs | e140461 | 2015-01-14 15:11:48 +1000 | [diff] [blame] | 297 | device->oclass[NVDEV_SUBDEV_THERM ] = &gf110_therm_oclass; |
Ben Skeggs | d38ac52 | 2012-07-22 16:41:26 +1000 | [diff] [blame] | 298 | device->oclass[NVDEV_SUBDEV_MXM ] = &nv50_mxm_oclass; |
Ben Skeggs | a8c4362 | 2015-01-14 14:48:16 +1000 | [diff] [blame] | 299 | device->oclass[NVDEV_SUBDEV_DEVINIT] = gf100_devinit_oclass; |
Ben Skeggs | d7e5fcd | 2015-01-14 15:08:21 +1000 | [diff] [blame] | 300 | device->oclass[NVDEV_SUBDEV_MC ] = gf106_mc_oclass; |
Ben Skeggs | 5f8824d | 2015-01-14 14:40:22 +1000 | [diff] [blame] | 301 | device->oclass[NVDEV_SUBDEV_BUS ] = gf100_bus_oclass; |
Ben Skeggs | 5a5c743 | 2012-07-11 16:08:25 +1000 | [diff] [blame] | 302 | device->oclass[NVDEV_SUBDEV_TIMER ] = &nv04_timer_oclass; |
Ben Skeggs | 639c308 | 2015-01-14 14:52:58 +1000 | [diff] [blame] | 303 | device->oclass[NVDEV_SUBDEV_FB ] = gf100_fb_oclass; |
Ben Skeggs | 95484b5 | 2014-08-10 04:10:28 +1000 | [diff] [blame] | 304 | device->oclass[NVDEV_SUBDEV_LTC ] = gf100_ltc_oclass; |
Ben Skeggs | 5ecfade | 2015-01-14 15:04:31 +1000 | [diff] [blame] | 305 | device->oclass[NVDEV_SUBDEV_IBUS ] = &gf100_ibus_oclass; |
Ben Skeggs | 24a4ae8 | 2013-12-23 00:39:47 +1000 | [diff] [blame] | 306 | device->oclass[NVDEV_SUBDEV_INSTMEM] = nv50_instmem_oclass; |
Ben Skeggs | 4259460 | 2015-01-14 15:09:19 +1000 | [diff] [blame] | 307 | device->oclass[NVDEV_SUBDEV_MMU ] = &gf100_mmu_oclass; |
Ben Skeggs | 245dcfe | 2015-01-14 14:35:35 +1000 | [diff] [blame] | 308 | device->oclass[NVDEV_SUBDEV_BAR ] = &gf100_bar_oclass; |
Ben Skeggs | 21b1379 | 2015-01-14 15:10:40 +1000 | [diff] [blame] | 309 | device->oclass[NVDEV_SUBDEV_PMU ] = gf110_pmu_oclass; |
Ben Skeggs | c9c0cca | 2013-02-08 09:34:56 +1000 | [diff] [blame] | 310 | device->oclass[NVDEV_SUBDEV_VOLT ] = &nv40_volt_oclass; |
Ben Skeggs | bc98540 | 2014-08-10 04:10:24 +1000 | [diff] [blame] | 311 | device->oclass[NVDEV_ENGINE_DMAOBJ ] = nvd0_dmaeng_oclass; |
Ben Skeggs | 16c4f22 | 2013-11-05 14:26:58 +1000 | [diff] [blame] | 312 | device->oclass[NVDEV_ENGINE_FIFO ] = nvc0_fifo_oclass; |
Ben Skeggs | 8700287 | 2015-01-14 12:34:00 +1000 | [diff] [blame] | 313 | device->oclass[NVDEV_ENGINE_SW ] = nvc0_sw_oclass; |
Ben Skeggs | b8bf04e | 2015-01-14 12:02:28 +1000 | [diff] [blame] | 314 | device->oclass[NVDEV_ENGINE_GR ] = nvd9_gr_oclass; |
Ben Skeggs | 37a5d02 | 2015-01-14 12:50:04 +1000 | [diff] [blame] | 315 | device->oclass[NVDEV_ENGINE_MSPDEC ] = &nvc0_mspdec_oclass; |
Ben Skeggs | eccf7e8a | 2015-01-14 10:09:24 +1000 | [diff] [blame] | 316 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nvc0_msvld_oclass; |
Ben Skeggs | fd8666f | 2015-01-14 12:26:28 +1000 | [diff] [blame] | 317 | device->oclass[NVDEV_ENGINE_MSPPP ] = &nvc0_msppp_oclass; |
Ben Skeggs | bd6c5ca | 2015-01-14 15:22:32 +1000 | [diff] [blame] | 318 | device->oclass[NVDEV_ENGINE_CE0 ] = &gf100_ce0_oclass; |
Ben Skeggs | 878da15 | 2015-01-14 15:24:57 +1000 | [diff] [blame^] | 319 | device->oclass[NVDEV_ENGINE_DISP ] = gf110_disp_oclass; |
Ben Skeggs | d5752b9 | 2015-01-14 12:11:28 +1000 | [diff] [blame] | 320 | device->oclass[NVDEV_ENGINE_PM ] = &nvc0_pm_oclass; |
Ben Skeggs | 9274f4a | 2012-07-06 07:36:43 +1000 | [diff] [blame] | 321 | break; |
Ben Skeggs | 3f196a0 | 2013-03-30 21:56:26 +1000 | [diff] [blame] | 322 | case 0xd7: |
| 323 | device->cname = "GF117"; |
| 324 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
Ben Skeggs | 4e7659f | 2015-01-14 15:02:59 +1000 | [diff] [blame] | 325 | device->oclass[NVDEV_SUBDEV_GPIO ] = gf110_gpio_oclass; |
Ben Skeggs | 82c2b5e | 2014-06-18 15:46:22 +1000 | [diff] [blame] | 326 | device->oclass[NVDEV_SUBDEV_I2C ] = gf117_i2c_oclass; |
Martin Peres | 3ca6cd4 | 2014-08-26 00:26:38 +0200 | [diff] [blame] | 327 | device->oclass[NVDEV_SUBDEV_FUSE ] = &gf100_fuse_oclass; |
Ben Skeggs | 7632b30 | 2015-01-14 14:47:24 +1000 | [diff] [blame] | 328 | device->oclass[NVDEV_SUBDEV_CLK ] = &gf100_clk_oclass; |
Ben Skeggs | e140461 | 2015-01-14 15:11:48 +1000 | [diff] [blame] | 329 | device->oclass[NVDEV_SUBDEV_THERM ] = &gf110_therm_oclass; |
Ben Skeggs | 3f196a0 | 2013-03-30 21:56:26 +1000 | [diff] [blame] | 330 | device->oclass[NVDEV_SUBDEV_MXM ] = &nv50_mxm_oclass; |
Ben Skeggs | a8c4362 | 2015-01-14 14:48:16 +1000 | [diff] [blame] | 331 | device->oclass[NVDEV_SUBDEV_DEVINIT] = gf100_devinit_oclass; |
Ben Skeggs | d7e5fcd | 2015-01-14 15:08:21 +1000 | [diff] [blame] | 332 | device->oclass[NVDEV_SUBDEV_MC ] = gf106_mc_oclass; |
Ben Skeggs | 5f8824d | 2015-01-14 14:40:22 +1000 | [diff] [blame] | 333 | device->oclass[NVDEV_SUBDEV_BUS ] = gf100_bus_oclass; |
Ben Skeggs | 3f196a0 | 2013-03-30 21:56:26 +1000 | [diff] [blame] | 334 | device->oclass[NVDEV_SUBDEV_TIMER ] = &nv04_timer_oclass; |
Ben Skeggs | 639c308 | 2015-01-14 14:52:58 +1000 | [diff] [blame] | 335 | device->oclass[NVDEV_SUBDEV_FB ] = gf100_fb_oclass; |
Ben Skeggs | 95484b5 | 2014-08-10 04:10:28 +1000 | [diff] [blame] | 336 | device->oclass[NVDEV_SUBDEV_LTC ] = gf100_ltc_oclass; |
Ben Skeggs | 5ecfade | 2015-01-14 15:04:31 +1000 | [diff] [blame] | 337 | device->oclass[NVDEV_SUBDEV_IBUS ] = &gf100_ibus_oclass; |
Ben Skeggs | 24a4ae8 | 2013-12-23 00:39:47 +1000 | [diff] [blame] | 338 | device->oclass[NVDEV_SUBDEV_INSTMEM] = nv50_instmem_oclass; |
Ben Skeggs | 4259460 | 2015-01-14 15:09:19 +1000 | [diff] [blame] | 339 | device->oclass[NVDEV_SUBDEV_MMU ] = &gf100_mmu_oclass; |
Ben Skeggs | 245dcfe | 2015-01-14 14:35:35 +1000 | [diff] [blame] | 340 | device->oclass[NVDEV_SUBDEV_BAR ] = &gf100_bar_oclass; |
Ben Skeggs | bc98540 | 2014-08-10 04:10:24 +1000 | [diff] [blame] | 341 | device->oclass[NVDEV_ENGINE_DMAOBJ ] = nvd0_dmaeng_oclass; |
Ben Skeggs | 16c4f22 | 2013-11-05 14:26:58 +1000 | [diff] [blame] | 342 | device->oclass[NVDEV_ENGINE_FIFO ] = nvc0_fifo_oclass; |
Ben Skeggs | 8700287 | 2015-01-14 12:34:00 +1000 | [diff] [blame] | 343 | device->oclass[NVDEV_ENGINE_SW ] = nvc0_sw_oclass; |
Ben Skeggs | b8bf04e | 2015-01-14 12:02:28 +1000 | [diff] [blame] | 344 | device->oclass[NVDEV_ENGINE_GR ] = nvd7_gr_oclass; |
Ben Skeggs | 37a5d02 | 2015-01-14 12:50:04 +1000 | [diff] [blame] | 345 | device->oclass[NVDEV_ENGINE_MSPDEC ] = &nvc0_mspdec_oclass; |
Ben Skeggs | eccf7e8a | 2015-01-14 10:09:24 +1000 | [diff] [blame] | 346 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nvc0_msvld_oclass; |
Ben Skeggs | fd8666f | 2015-01-14 12:26:28 +1000 | [diff] [blame] | 347 | device->oclass[NVDEV_ENGINE_MSPPP ] = &nvc0_msppp_oclass; |
Ben Skeggs | bd6c5ca | 2015-01-14 15:22:32 +1000 | [diff] [blame] | 348 | device->oclass[NVDEV_ENGINE_CE0 ] = &gf100_ce0_oclass; |
Ben Skeggs | 878da15 | 2015-01-14 15:24:57 +1000 | [diff] [blame^] | 349 | device->oclass[NVDEV_ENGINE_DISP ] = gf110_disp_oclass; |
Ben Skeggs | d5752b9 | 2015-01-14 12:11:28 +1000 | [diff] [blame] | 350 | device->oclass[NVDEV_ENGINE_PM ] = &nvc0_pm_oclass; |
Ben Skeggs | 3f196a0 | 2013-03-30 21:56:26 +1000 | [diff] [blame] | 351 | break; |
Ben Skeggs | 9274f4a | 2012-07-06 07:36:43 +1000 | [diff] [blame] | 352 | default: |
| 353 | nv_fatal(device, "unknown Fermi chipset\n"); |
| 354 | return -EINVAL; |
| 355 | } |
| 356 | |
| 357 | return 0; |
Ben Skeggs | 7b49bd6 | 2012-12-04 12:18:59 +1000 | [diff] [blame] | 358 | } |