Commit bd70563f authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau/dma: convert to new-style nvkm_engine

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 14d74aca
...@@ -251,13 +251,13 @@ struct gf100_dma_v0 { ...@@ -251,13 +251,13 @@ struct gf100_dma_v0 {
__u8 pad03[5]; __u8 pad03[5];
}; };
struct gf110_dma_v0 { struct gf119_dma_v0 {
__u8 version; __u8 version;
#define GF110_DMA_V0_PAGE_LP 0x00 #define GF119_DMA_V0_PAGE_LP 0x00
#define GF110_DMA_V0_PAGE_SP 0x01 #define GF119_DMA_V0_PAGE_SP 0x01
__u8 page; __u8 page;
#define GF110_DMA_V0_KIND_PITCH 0x00 #define GF119_DMA_V0_KIND_PITCH 0x00
#define GF110_DMA_V0_KIND_VM 0xff #define GF119_DMA_V0_KIND_VM 0xff
__u8 kind; __u8 kind;
__u8 pad03[5]; __u8 pad03[5];
}; };
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
#define __NVKM_DMA_H__ #define __NVKM_DMA_H__
#include <core/engine.h> #include <core/engine.h>
struct nvkm_client; struct nvkm_client;
struct nvkm_gpuobj;
struct nvkm_dmaobj { struct nvkm_dmaobj {
const struct nvkm_dmaobj_func *func; const struct nvkm_dmaobj_func *func;
...@@ -18,20 +17,16 @@ struct nvkm_dmaobj { ...@@ -18,20 +17,16 @@ struct nvkm_dmaobj {
u64 handle; /*XXX HANDLE MERGE */ u64 handle; /*XXX HANDLE MERGE */
}; };
struct nvkm_dmaobj_func {
int (*bind)(struct nvkm_dmaobj *, struct nvkm_gpuobj *, int align,
struct nvkm_gpuobj **);
};
struct nvkm_dma { struct nvkm_dma {
const struct nvkm_dma_func *func;
struct nvkm_engine engine; struct nvkm_engine engine;
}; };
struct nvkm_dmaobj * struct nvkm_dmaobj *
nvkm_dma_search(struct nvkm_dma *, struct nvkm_client *, u64 object); nvkm_dma_search(struct nvkm_dma *, struct nvkm_client *, u64 object);
extern struct nvkm_oclass *nv04_dmaeng_oclass; int nv04_dma_new(struct nvkm_device *, int, struct nvkm_dma **);
extern struct nvkm_oclass *nv50_dmaeng_oclass; int nv50_dma_new(struct nvkm_device *, int, struct nvkm_dma **);
extern struct nvkm_oclass *gf100_dmaeng_oclass; int gf100_dma_new(struct nvkm_device *, int, struct nvkm_dma **);
extern struct nvkm_oclass *gf110_dmaeng_oclass; int gf119_dma_new(struct nvkm_device *, int, struct nvkm_dma **);
#endif #endif
...@@ -2339,7 +2339,7 @@ nv50_fbdma_init(struct drm_device *dev, u32 name, u64 offset, u64 length, u8 kin ...@@ -2339,7 +2339,7 @@ nv50_fbdma_init(struct drm_device *dev, u32 name, u64 offset, u64 length, u8 kin
union { union {
struct nv50_dma_v0 nv50; struct nv50_dma_v0 nv50;
struct gf100_dma_v0 gf100; struct gf100_dma_v0 gf100;
struct gf110_dma_v0 gf110; struct gf119_dma_v0 gf119;
}; };
} args = {}; } args = {};
struct nv50_fbdma *fbdma; struct nv50_fbdma *fbdma;
...@@ -2375,9 +2375,9 @@ nv50_fbdma_init(struct drm_device *dev, u32 name, u64 offset, u64 length, u8 kin ...@@ -2375,9 +2375,9 @@ nv50_fbdma_init(struct drm_device *dev, u32 name, u64 offset, u64 length, u8 kin
args.gf100.kind = kind; args.gf100.kind = kind;
size += sizeof(args.gf100); size += sizeof(args.gf100);
} else { } else {
args.gf110.page = GF110_DMA_V0_PAGE_LP; args.gf119.page = GF119_DMA_V0_PAGE_LP;
args.gf110.kind = kind; args.gf119.kind = kind;
size += sizeof(args.gf110); size += sizeof(args.gf119);
} }
list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) { list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) {
......
...@@ -87,7 +87,7 @@ nv4_chipset = { ...@@ -87,7 +87,7 @@ nv4_chipset = {
.mmu = nv04_mmu_new, .mmu = nv04_mmu_new,
.timer = nv04_timer_new, .timer = nv04_timer_new,
// .disp = nv04_disp_new, // .disp = nv04_disp_new,
// .dma = nv04_dma_new, .dma = nv04_dma_new,
// .fifo = nv04_fifo_new, // .fifo = nv04_fifo_new,
// .gr = nv04_gr_new, // .gr = nv04_gr_new,
// .sw = nv04_sw_new, // .sw = nv04_sw_new,
...@@ -107,7 +107,7 @@ nv5_chipset = { ...@@ -107,7 +107,7 @@ nv5_chipset = {
.mmu = nv04_mmu_new, .mmu = nv04_mmu_new,
.timer = nv04_timer_new, .timer = nv04_timer_new,
// .disp = nv04_disp_new, // .disp = nv04_disp_new,
// .dma = nv04_dma_new, .dma = nv04_dma_new,
// .fifo = nv04_fifo_new, // .fifo = nv04_fifo_new,
// .gr = nv04_gr_new, // .gr = nv04_gr_new,
// .sw = nv04_sw_new, // .sw = nv04_sw_new,
...@@ -128,7 +128,7 @@ nv10_chipset = { ...@@ -128,7 +128,7 @@ nv10_chipset = {
.mmu = nv04_mmu_new, .mmu = nv04_mmu_new,
.timer = nv04_timer_new, .timer = nv04_timer_new,
// .disp = nv04_disp_new, // .disp = nv04_disp_new,
// .dma = nv04_dma_new, .dma = nv04_dma_new,
// .gr = nv10_gr_new, // .gr = nv10_gr_new,
}; };
...@@ -147,7 +147,7 @@ nv11_chipset = { ...@@ -147,7 +147,7 @@ nv11_chipset = {
.mmu = nv04_mmu_new, .mmu = nv04_mmu_new,
.timer = nv04_timer_new, .timer = nv04_timer_new,
// .disp = nv04_disp_new, // .disp = nv04_disp_new,
// .dma = nv04_dma_new, .dma = nv04_dma_new,
// .fifo = nv10_fifo_new, // .fifo = nv10_fifo_new,
// .gr = nv10_gr_new, // .gr = nv10_gr_new,
// .sw = nv10_sw_new, // .sw = nv10_sw_new,
...@@ -168,7 +168,7 @@ nv15_chipset = { ...@@ -168,7 +168,7 @@ nv15_chipset = {
.mmu = nv04_mmu_new, .mmu = nv04_mmu_new,
.timer = nv04_timer_new, .timer = nv04_timer_new,
// .disp = nv04_disp_new, // .disp = nv04_disp_new,
// .dma = nv04_dma_new, .dma = nv04_dma_new,
// .fifo = nv10_fifo_new, // .fifo = nv10_fifo_new,
// .gr = nv10_gr_new, // .gr = nv10_gr_new,
// .sw = nv10_sw_new, // .sw = nv10_sw_new,
...@@ -189,7 +189,7 @@ nv17_chipset = { ...@@ -189,7 +189,7 @@ nv17_chipset = {
.mmu = nv04_mmu_new, .mmu = nv04_mmu_new,
.timer = nv04_timer_new, .timer = nv04_timer_new,
// .disp = nv04_disp_new, // .disp = nv04_disp_new,
// .dma = nv04_dma_new, .dma = nv04_dma_new,
// .fifo = nv17_fifo_new, // .fifo = nv17_fifo_new,
// .gr = nv10_gr_new, // .gr = nv10_gr_new,
// .sw = nv10_sw_new, // .sw = nv10_sw_new,
...@@ -210,7 +210,7 @@ nv18_chipset = { ...@@ -210,7 +210,7 @@ nv18_chipset = {
.mmu = nv04_mmu_new, .mmu = nv04_mmu_new,
.timer = nv04_timer_new, .timer = nv04_timer_new,
// .disp = nv04_disp_new, // .disp = nv04_disp_new,
// .dma = nv04_dma_new, .dma = nv04_dma_new,
// .fifo = nv17_fifo_new, // .fifo = nv17_fifo_new,
// .gr = nv10_gr_new, // .gr = nv10_gr_new,
// .sw = nv10_sw_new, // .sw = nv10_sw_new,
...@@ -231,7 +231,7 @@ nv1a_chipset = { ...@@ -231,7 +231,7 @@ nv1a_chipset = {
.mmu = nv04_mmu_new, .mmu = nv04_mmu_new,
.timer = nv04_timer_new, .timer = nv04_timer_new,
// .disp = nv04_disp_new, // .disp = nv04_disp_new,
// .dma = nv04_dma_new, .dma = nv04_dma_new,
// .fifo = nv10_fifo_new, // .fifo = nv10_fifo_new,
// .gr = nv10_gr_new, // .gr = nv10_gr_new,
// .sw = nv10_sw_new, // .sw = nv10_sw_new,
...@@ -252,7 +252,7 @@ nv1f_chipset = { ...@@ -252,7 +252,7 @@ nv1f_chipset = {
.mmu = nv04_mmu_new, .mmu = nv04_mmu_new,
.timer = nv04_timer_new, .timer = nv04_timer_new,
// .disp = nv04_disp_new, // .disp = nv04_disp_new,
// .dma = nv04_dma_new, .dma = nv04_dma_new,
// .fifo = nv17_fifo_new, // .fifo = nv17_fifo_new,
// .gr = nv10_gr_new, // .gr = nv10_gr_new,
// .sw = nv10_sw_new, // .sw = nv10_sw_new,
...@@ -273,7 +273,7 @@ nv20_chipset = { ...@@ -273,7 +273,7 @@ nv20_chipset = {
.mmu = nv04_mmu_new, .mmu = nv04_mmu_new,
.timer = nv04_timer_new, .timer = nv04_timer_new,
// .disp = nv04_disp_new, // .disp = nv04_disp_new,
// .dma = nv04_dma_new, .dma = nv04_dma_new,
// .fifo = nv17_fifo_new, // .fifo = nv17_fifo_new,
// .gr = nv20_gr_new, // .gr = nv20_gr_new,
// .sw = nv10_sw_new, // .sw = nv10_sw_new,
...@@ -294,7 +294,7 @@ nv25_chipset = { ...@@ -294,7 +294,7 @@ nv25_chipset = {
.mmu = nv04_mmu_new, .mmu = nv04_mmu_new,
.timer = nv04_timer_new, .timer = nv04_timer_new,
// .disp = nv04_disp_new, // .disp = nv04_disp_new,
// .dma = nv04_dma_new, .dma = nv04_dma_new,
// .fifo = nv17_fifo_new, // .fifo = nv17_fifo_new,
// .gr = nv25_gr_new, // .gr = nv25_gr_new,
// .sw = nv10_sw_new, // .sw = nv10_sw_new,
...@@ -315,7 +315,7 @@ nv28_chipset = { ...@@ -315,7 +315,7 @@ nv28_chipset = {
.mmu = nv04_mmu_new, .mmu = nv04_mmu_new,
.timer = nv04_timer_new, .timer = nv04_timer_new,
// .disp = nv04_disp_new, // .disp = nv04_disp_new,
// .dma = nv04_dma_new, .dma = nv04_dma_new,
// .fifo = nv17_fifo_new, // .fifo = nv17_fifo_new,
// .gr = nv25_gr_new, // .gr = nv25_gr_new,
// .sw = nv10_sw_new, // .sw = nv10_sw_new,
...@@ -336,7 +336,7 @@ nv2a_chipset = { ...@@ -336,7 +336,7 @@ nv2a_chipset = {
.mmu = nv04_mmu_new, .mmu = nv04_mmu_new,
.timer = nv04_timer_new, .timer = nv04_timer_new,
// .disp = nv04_disp_new, // .disp = nv04_disp_new,
// .dma = nv04_dma_new, .dma = nv04_dma_new,
// .fifo = nv17_fifo_new, // .fifo = nv17_fifo_new,
// .gr = nv2a_gr_new, // .gr = nv2a_gr_new,
// .sw = nv10_sw_new, // .sw = nv10_sw_new,
...@@ -357,7 +357,7 @@ nv30_chipset = { ...@@ -357,7 +357,7 @@ nv30_chipset = {
.mmu = nv04_mmu_new, .mmu = nv04_mmu_new,
.timer = nv04_timer_new, .timer = nv04_timer_new,
// .disp = nv04_disp_new, // .disp = nv04_disp_new,
// .dma = nv04_dma_new, .dma = nv04_dma_new,
// .fifo = nv17_fifo_new, // .fifo = nv17_fifo_new,
// .gr = nv30_gr_new, // .gr = nv30_gr_new,
// .sw = nv10_sw_new, // .sw = nv10_sw_new,
...@@ -378,7 +378,7 @@ nv31_chipset = { ...@@ -378,7 +378,7 @@ nv31_chipset = {
.mmu = nv04_mmu_new, .mmu = nv04_mmu_new,
.timer = nv04_timer_new, .timer = nv04_timer_new,
// .disp = nv04_disp_new, // .disp = nv04_disp_new,
// .dma = nv04_dma_new, .dma = nv04_dma_new,
// .fifo = nv17_fifo_new, // .fifo = nv17_fifo_new,
// .gr = nv30_gr_new, // .gr = nv30_gr_new,
// .mpeg = nv31_mpeg_new, // .mpeg = nv31_mpeg_new,
...@@ -400,7 +400,7 @@ nv34_chipset = { ...@@ -400,7 +400,7 @@ nv34_chipset = {
.mmu = nv04_mmu_new, .mmu = nv04_mmu_new,
.timer = nv04_timer_new, .timer = nv04_timer_new,
// .disp = nv04_disp_new, // .disp = nv04_disp_new,
// .dma = nv04_dma_new, .dma = nv04_dma_new,
// .fifo = nv17_fifo_new, // .fifo = nv17_fifo_new,
// .gr = nv34_gr_new, // .gr = nv34_gr_new,
// .mpeg = nv31_mpeg_new, // .mpeg = nv31_mpeg_new,
...@@ -422,7 +422,7 @@ nv35_chipset = { ...@@ -422,7 +422,7 @@ nv35_chipset = {
.mmu = nv04_mmu_new, .mmu = nv04_mmu_new,
.timer = nv04_timer_new, .timer = nv04_timer_new,
// .disp = nv04_disp_new, // .disp = nv04_disp_new,
// .dma = nv04_dma_new, .dma = nv04_dma_new,
// .fifo = nv17_fifo_new, // .fifo = nv17_fifo_new,
// .gr = nv35_gr_new, // .gr = nv35_gr_new,
// .sw = nv10_sw_new, // .sw = nv10_sw_new,
...@@ -443,7 +443,7 @@ nv36_chipset = { ...@@ -443,7 +443,7 @@ nv36_chipset = {
.mmu = nv04_mmu_new, .mmu = nv04_mmu_new,
.timer = nv04_timer_new, .timer = nv04_timer_new,
// .disp = nv04_disp_new, // .disp = nv04_disp_new,
// .dma = nv04_dma_new, .dma = nv04_dma_new,
// .fifo = nv17_fifo_new, // .fifo = nv17_fifo_new,
// .gr = nv35_gr_new, // .gr = nv35_gr_new,
// .mpeg = nv31_mpeg_new, // .mpeg = nv31_mpeg_new,
...@@ -467,7 +467,7 @@ nv40_chipset = { ...@@ -467,7 +467,7 @@ nv40_chipset = {
.timer = nv40_timer_new, .timer = nv40_timer_new,
.volt = nv40_volt_new, .volt = nv40_volt_new,
// .disp = nv04_disp_new, // .disp = nv04_disp_new,
// .dma = nv04_dma_new, .dma = nv04_dma_new,
// .fifo = nv40_fifo_new, // .fifo = nv40_fifo_new,
// .gr = nv40_gr_new, // .gr = nv40_gr_new,
// .mpeg = nv40_mpeg_new, // .mpeg = nv40_mpeg_new,
...@@ -492,7 +492,7 @@ nv41_chipset = { ...@@ -492,7 +492,7 @@ nv41_chipset = {
.timer = nv41_timer_new, .timer = nv41_timer_new,
.volt = nv40_volt_new, .volt = nv40_volt_new,
// .disp = nv04_disp_new, // .disp = nv04_disp_new,
// .dma = nv04_dma_new, .dma = nv04_dma_new,
// .fifo = nv40_fifo_new, // .fifo = nv40_fifo_new,
// .gr = nv40_gr_new, // .gr = nv40_gr_new,
// .mpeg = nv40_mpeg_new, // .mpeg = nv40_mpeg_new,
...@@ -517,7 +517,7 @@ nv42_chipset = { ...@@ -517,7 +517,7 @@ nv42_chipset = {
.timer = nv41_timer_new, .timer = nv41_timer_new,
.volt = nv40_volt_new, .volt = nv40_volt_new,
// .disp = nv04_disp_new, // .disp = nv04_disp_new,
// .dma = nv04_dma_new, .dma = nv04_dma_new,
// .fifo = nv40_fifo_new, // .fifo = nv40_fifo_new,
// .gr = nv40_gr_new, // .gr = nv40_gr_new,
// .mpeg = nv40_mpeg_new, // .mpeg = nv40_mpeg_new,
...@@ -542,7 +542,7 @@ nv43_chipset = { ...@@ -542,7 +542,7 @@ nv43_chipset = {
.timer = nv41_timer_new, .timer = nv41_timer_new,
.volt = nv40_volt_new, .volt = nv40_volt_new,
// .disp = nv04_disp_new, // .disp = nv04_disp_new,
// .dma = nv04_dma_new, .dma = nv04_dma_new,
// .fifo = nv40_fifo_new, // .fifo = nv40_fifo_new,
// .gr = nv40_gr_new, // .gr = nv40_gr_new,
// .mpeg = nv40_mpeg_new, // .mpeg = nv40_mpeg_new,
...@@ -567,7 +567,7 @@ nv44_chipset = { ...@@ -567,7 +567,7 @@ nv44_chipset = {
.timer = nv41_timer_new, .timer = nv41_timer_new,
.volt = nv40_volt_new, .volt = nv40_volt_new,
// .disp = nv04_disp_new, // .disp = nv04_disp_new,
// .dma = nv04_dma_new, .dma = nv04_dma_new,
// .fifo = nv40_fifo_new, // .fifo = nv40_fifo_new,
// .gr = nv40_gr_new, // .gr = nv40_gr_new,
// .mpeg = nv44_mpeg_new, // .mpeg = nv44_mpeg_new,
...@@ -592,7 +592,7 @@ nv45_chipset = { ...@@ -592,7 +592,7 @@ nv45_chipset = {
.timer = nv41_timer_new, .timer = nv41_timer_new,
.volt = nv40_volt_new, .volt = nv40_volt_new,
// .disp = nv04_disp_new, // .disp = nv04_disp_new,
// .dma = nv04_dma_new, .dma = nv04_dma_new,
// .fifo = nv40_fifo_new, // .fifo = nv40_fifo_new,
// .gr = nv40_gr_new, // .gr = nv40_gr_new,
// .mpeg = nv44_mpeg_new, // .mpeg = nv44_mpeg_new,
...@@ -617,7 +617,7 @@ nv46_chipset = { ...@@ -617,7 +617,7 @@ nv46_chipset = {
.timer = nv41_timer_new, .timer = nv41_timer_new,
.volt = nv40_volt_new, .volt = nv40_volt_new,
// .disp = nv04_disp_new, // .disp = nv04_disp_new,
// .dma = nv04_dma_new, .dma = nv04_dma_new,
// .fifo = nv40_fifo_new, // .fifo = nv40_fifo_new,
// .gr = nv40_gr_new, // .gr = nv40_gr_new,
// .mpeg = nv44_mpeg_new, // .mpeg = nv44_mpeg_new,
...@@ -642,7 +642,7 @@ nv47_chipset = { ...@@ -642,7 +642,7 @@ nv47_chipset = {
.timer = nv41_timer_new, .timer = nv41_timer_new,
.volt = nv40_volt_new, .volt = nv40_volt_new,
// .disp = nv04_disp_new, // .disp = nv04_disp_new,
// .dma = nv04_dma_new, .dma = nv04_dma_new,
// .fifo = nv40_fifo_new, // .fifo = nv40_fifo_new,
// .gr = nv40_gr_new, // .gr = nv40_gr_new,
// .mpeg = nv44_mpeg_new, // .mpeg = nv44_mpeg_new,
...@@ -667,7 +667,7 @@ nv49_chipset = { ...@@ -667,7 +667,7 @@ nv49_chipset = {
.timer = nv41_timer_new, .timer = nv41_timer_new,
.volt = nv40_volt_new, .volt = nv40_volt_new,
// .disp = nv04_disp_new, // .disp = nv04_disp_new,
// .dma = nv04_dma_new, .dma = nv04_dma_new,
// .fifo = nv40_fifo_new, // .fifo = nv40_fifo_new,
// .gr = nv40_gr_new, // .gr = nv40_gr_new,
// .mpeg = nv44_mpeg_new, // .mpeg = nv44_mpeg_new,
...@@ -692,7 +692,7 @@ nv4a_chipset = { ...@@ -692,7 +692,7 @@ nv4a_chipset = {
.timer = nv41_timer_new, .timer = nv41_timer_new,
.volt = nv40_volt_new, .volt = nv40_volt_new,
// .disp = nv04_disp_new, // .disp = nv04_disp_new,
// .dma = nv04_dma_new, .dma = nv04_dma_new,
// .fifo = nv40_fifo_new, // .fifo = nv40_fifo_new,
// .gr = nv40_gr_new, // .gr = nv40_gr_new,
// .mpeg = nv44_mpeg_new, // .mpeg = nv44_mpeg_new,
...@@ -717,7 +717,7 @@ nv4b_chipset = { ...@@ -717,7 +717,7 @@ nv4b_chipset = {
.timer = nv41_timer_new, .timer = nv41_timer_new,
.volt = nv40_volt_new, .volt = nv40_volt_new,
// .disp = nv04_disp_new, // .disp = nv04_disp_new,
// .dma = nv04_dma_new, .dma = nv04_dma_new,
// .fifo = nv40_fifo_new, // .fifo = nv40_fifo_new,
// .gr = nv40_gr_new, // .gr = nv40_gr_new,
// .mpeg = nv44_mpeg_new, // .mpeg = nv44_mpeg_new,
...@@ -742,7 +742,7 @@ nv4c_chipset = { ...@@ -742,7 +742,7 @@ nv4c_chipset = {
.timer = nv41_timer_new, .timer = nv41_timer_new,
.volt = nv40_volt_new, .volt = nv40_volt_new,
// .disp = nv04_disp_new, // .disp = nv04_disp_new,
// .dma = nv04_dma_new, .dma = nv04_dma_new,
// .fifo = nv40_fifo_new, // .fifo = nv40_fifo_new,
// .gr = nv40_gr_new, // .gr = nv40_gr_new,
// .mpeg = nv44_mpeg_new, // .mpeg = nv44_mpeg_new,
...@@ -767,7 +767,7 @@ nv4e_chipset = { ...@@ -767,7 +767,7 @@ nv4e_chipset = {
.timer = nv41_timer_new, .timer = nv41_timer_new,
.volt = nv40_volt_new, .volt = nv40_volt_new,
// .disp = nv04_disp_new, // .disp = nv04_disp_new,
// .dma = nv04_dma_new, .dma = nv04_dma_new,
// .fifo = nv40_fifo_new, // .fifo = nv40_fifo_new,
// .gr = nv40_gr_new, // .gr = nv40_gr_new,
// .mpeg = nv44_mpeg_new, // .mpeg = nv44_mpeg_new,
...@@ -795,7 +795,7 @@ nv50_chipset = { ...@@ -795,7 +795,7 @@ nv50_chipset = {
.timer = nv41_timer_new, .timer = nv41_timer_new,
.volt = nv40_volt_new, .volt = nv40_volt_new,
// .disp = nv50_disp_new, // .disp = nv50_disp_new,
// .dma = nv50_dma_new, .dma = nv50_dma_new,
// .fifo = nv50_fifo_new, // .fifo = nv50_fifo_new,
// .gr = nv50_gr_new, // .gr = nv50_gr_new,
// .mpeg = nv50_mpeg_new, // .mpeg = nv50_mpeg_new,
...@@ -820,7 +820,7 @@ nv63_chipset = { ...@@ -820,7 +820,7 @@ nv63_chipset = {
.timer = nv41_timer_new, .timer = nv41_timer_new,
.volt = nv40_volt_new, .volt = nv40_volt_new,
// .disp = nv04_disp_new, // .disp = nv04_disp_new,
// .dma = nv04_dma_new, .dma = nv04_dma_new,
// .fifo = nv40_fifo_new, // .fifo = nv40_fifo_new,
// .gr = nv40_gr_new, // .gr = nv40_gr_new,
// .mpeg = nv44_mpeg_new, // .mpeg = nv44_mpeg_new,
...@@ -845,7 +845,7 @@ nv67_chipset = { ...@@ -845,7 +845,7 @@ nv67_chipset = {
.timer = nv41_timer_new, .timer = nv41_timer_new,
.volt = nv40_volt_new, .volt = nv40_volt_new,
// .disp = nv04_disp_new, // .disp = nv04_disp_new,
// .dma = nv04_dma_new, .dma = nv04_dma_new,
// .fifo = nv40_fifo_new, // .fifo = nv40_fifo_new,
// .gr = nv40_gr_new, // .gr = nv40_gr_new,
// .mpeg = nv44_mpeg_new, // .mpeg = nv44_mpeg_new,
...@@ -870,7 +870,7 @@ nv68_chipset = { ...@@ -870,7 +870,7 @@ nv68_chipset = {
.timer = nv41_timer_new, .timer = nv41_timer_new,
.volt = nv40_volt_new, .volt = nv40_volt_new,
// .disp = nv04_disp_new, // .disp = nv04_disp_new,
// .dma = nv04_dma_new, .dma = nv04_dma_new,
// .fifo = nv40_fifo_new, // .fifo = nv40_fifo_new,
// .gr = nv40_gr_new, // .gr = nv40_gr_new,
// .mpeg = nv44_mpeg_new, // .mpeg = nv44_mpeg_new,
...@@ -900,7 +900,7 @@ nv84_chipset = { ...@@ -900,7 +900,7 @@ nv84_chipset = {
.bsp = g84_bsp_new, .bsp = g84_bsp_new,
.cipher = g84_cipher_new, .cipher = g84_cipher_new,
// .disp = g84_disp_new, // .disp = g84_disp_new,
// .dma = nv50_dma_new, .dma = nv50_dma_new,
// .fifo = g84_fifo_new, // .fifo = g84_fifo_new,
// .gr = nv50_gr_new, // .gr = nv50_gr_new,
// .mpeg = g84_mpeg_new, // .mpeg = g84_mpeg_new,
...@@ -931,7 +931,7 @@ nv86_chipset = { ...@@ -931,7 +931,7 @@ nv86_chipset = {
.bsp = g84_bsp_new, .bsp = g84_bsp_new,
.cipher = g84_cipher_new, .cipher = g84_cipher_new,
// .disp = g84_disp_new, // .disp = g84_disp_new,
// .dma = nv50_dma_new, .dma = nv50_dma_new,
// .fifo = g84_fifo_new, // .fifo = g84_fifo_new,
// .gr = nv50_gr_new, // .gr = nv50_gr_new,
// .mpeg = g84_mpeg_new, // .mpeg = g84_mpeg_new,
...@@ -962,7 +962,7 @@ nv92_chipset = { ...@@ -962,7 +962,7 @@ nv92_chipset = {
.bsp = g84_bsp_new, .bsp = g84_bsp_new,
.cipher = g84_cipher_new, .cipher = g84_cipher_new,
// .disp = g84_disp_new, // .disp = g84_disp_new,
// .dma = nv50_dma_new, .dma = nv50_dma_new,
// .fifo = g84_fifo_new, // .fifo = g84_fifo_new,
// .gr = nv50_gr_new, // .gr = nv50_gr_new,
// .mpeg = g84_mpeg_new, // .mpeg = g84_mpeg_new,
...@@ -993,7 +993,7 @@ nv94_chipset = { ...@@ -993,7 +993,7 @@ nv94_chipset = {
.bsp = g84_bsp_new, .bsp = g84_bsp_new,
.cipher = g84_cipher_new, .cipher = g84_cipher_new,
// .disp = g94_disp_new, // .disp = g94_disp_new,
// .dma = nv50_dma_new, .dma = nv50_dma_new,
// .fifo = g84_fifo_new, // .fifo = g84_fifo_new,
// .gr = nv50_gr_new, // .gr = nv50_gr_new,
// .mpeg = g84_mpeg_new, // .mpeg = g84_mpeg_new,
...@@ -1021,7 +1021,7 @@ nv96_chipset = { ...@@ -1021,7 +1021,7 @@ nv96_chipset = {
.mmu = nv50_mmu_new, .mmu = nv50_mmu_new,
.bar = g84_bar_new, .bar = g84_bar_new,
.volt = nv40_volt_new, .volt = nv40_volt_new,
// .dma = nv50_dma_new, .dma = nv50_dma_new,
// .fifo = g84_fifo_new, // .fifo = g84_fifo_new,
// .sw = nv50_sw_new, // .sw = nv50_sw_new,
// .gr = nv50_gr_new, // .gr = nv50_gr_new,
...@@ -1052,7 +1052,7 @@ nv98_chipset = { ...@@ -1052,7 +1052,7 @@ nv98_chipset = {
.mmu = nv50_mmu_new, .mmu = nv50_mmu_new,
.bar = g84_bar_new, .bar = g84_bar_new,
.volt = nv40_volt_new, .volt = nv40_volt_new,
// .dma = nv50_dma_new, .dma = nv50_dma_new,
// .fifo = g84_fifo_new, // .fifo = g84_fifo_new,
// .sw = nv50_sw_new, // .sw = nv50_sw_new,
// .gr = nv50_gr_new, // .gr = nv50_gr_new,
...@@ -1086,7 +1086,7 @@ nva0_chipset = { ...@@ -1086,7 +1086,7 @@ nva0_chipset = {
.bsp = g84_bsp_new, .bsp = g84_bsp_new,
.cipher = g84_cipher_new, .cipher = g84_cipher_new,
// .disp = gt200_disp_new, // .disp = gt200_disp_new,
// .dma = nv50_dma_new, .dma = nv50_dma_new,
// .fifo = g84_fifo_new, // .fifo = g84_fifo_new,
// .gr = nv50_gr_new, // .gr = nv50_gr_new,
// .mpeg = g84_mpeg_new, // .mpeg = g84_mpeg_new,
...@@ -1117,7 +1117,7 @@ nva3_chipset = { ...@@ -1117,7 +1117,7 @@ nva3_chipset = {
.volt = nv40_volt_new, .volt = nv40_volt_new,
.ce[0] = gt215_ce_new, .ce[0] = gt215_ce_new,
// .disp = gt215_disp_new, // .disp = gt215_disp_new,
// .dma = nv50_dma_new, .dma = nv50_dma_new,
// .fifo = g84_fifo_new, // .fifo = g84_fifo_new,
// .gr = nv50_gr_new, // .gr = nv50_gr_new,
// .mpeg = g84_mpeg_new, // .mpeg = g84_mpeg_new,
...@@ -1150,7 +1150,7 @@ nva5_chipset = { ...@@ -1150,7 +1150,7 @@ nva5_chipset = {
.volt = nv40_volt_new, .volt = nv40_volt_new,
.ce[0] = gt215_ce_new, .ce[0] = gt215_ce_new,
// .disp = gt215_disp_new, // .disp = gt215_disp_new,
// .dma = nv50_dma_new, .dma = nv50_dma_new,
// .fifo = g84_fifo_new, // .fifo = g84_fifo_new,
// .gr = nv50_gr_new, // .gr = nv50_gr_new,
.mspdec = gt215_mspdec_new, .mspdec = gt215_mspdec_new,
...@@ -1182,7 +1182,7 @@ nva8_chipset = { ...@@ -1182,7 +1182,7 @@ nva8_chipset = {
.volt = nv40_volt_new, .volt = nv40_volt_new,
.ce[0] = gt215_ce_new, .ce[0] = gt215_ce_new,
// .disp = gt215_disp_new, // .disp = gt215_disp_new,
// .dma = nv50_dma_new, .dma = nv50_dma_new,
// .fifo = g84_fifo_new, // .fifo = g84_fifo_new,
// .gr = nv50_gr_new, // .gr = nv50_gr_new,
.mspdec = gt215_mspdec_new, .mspdec = gt215_mspdec_new,
...@@ -1212,7 +1212,7 @@ nvaa_chipset = { ...@@ -1212,7 +1212,7 @@ nvaa_chipset = {
.timer = nv41_timer_new, .timer = nv41_timer_new,
.volt = nv40_volt_new, .volt = nv40_volt_new,
// .disp = g94_disp_new, // .disp = g94_disp_new,
// .dma = nv50_dma_new, .dma = nv50_dma_new,
// .fifo = g84_fifo_new, // .fifo = g84_fifo_new,
// .gr = nv50_gr_new, // .gr = nv50_gr_new,
.mspdec = g98_mspdec_new, .mspdec = g98_mspdec_new,
...@@ -1243,7 +1243,7 @@ nvac_chipset = { ...@@ -1243,7 +1243,7 @@ nvac_chipset = {
.timer = nv41_timer_new, .timer = nv41_timer_new,
.volt = nv40_volt_new, .volt = nv40_volt_new,
// .disp = g94_disp_new, // .disp = g94_disp_new,
// .dma = nv50_dma_new, .dma = nv50_dma_new,
// .fifo = g84_fifo_new, // .fifo = g84_fifo_new,
// .gr = nv50_gr_new, // .gr = nv50_gr_new,
.mspdec = g98_mspdec_new, .mspdec = g98_mspdec_new,
...@@ -1276,7 +1276,7 @@ nvaf_chipset = { ...@@ -1276,7 +1276,7 @@ nvaf_chipset = {
.volt = nv40_volt_new, .volt = nv40_volt_new,
.ce[0] = gt215_ce_new, .ce[0] = gt215_ce_new,
// .disp = gt215_disp_new, // .disp = gt215_disp_new,
// .dma = nv50_dma_new, .dma = nv50_dma_new,
// .fifo = g84_fifo_new, // .fifo = g84_fifo_new,
// .gr = nv50_gr_new, // .gr = nv50_gr_new,
.mspdec = gt215_mspdec_new, .mspdec = gt215_mspdec_new,
...@@ -1311,7 +1311,7 @@ nvc0_chipset = { ...@@ -1311,7 +1311,7 @@ nvc0_chipset = {
.ce[0] = gf100_ce_new, .ce[0] = gf100_ce_new,
.ce[1] = gf100_ce_new, .ce[1] = gf100_ce_new,
// .disp = gt215_disp_new, // .disp = gt215_disp_new,
// .dma = gf100_dma_new, .dma = gf100_dma_new,
// .fifo = gf100_fifo_new, // .fifo = gf100_fifo_new,
// .gr = gf100_gr_new, // .gr = gf100_gr_new,
.mspdec = gf100_mspdec_new, .mspdec = gf100_mspdec_new,
...@@ -1345,7 +1345,7 @@ nvc1_chipset = { ...@@ -1345,7 +1345,7 @@ nvc1_chipset = {
.volt = nv40_volt_new, .volt = nv40_volt_new,
.ce[0] = gf100_ce_new, .ce[0] = gf100_ce_new,
// .disp = gt215_disp_new, // .disp = gt215_disp_new,
// .dma = gf100_dma_new, .dma = gf100_dma_new,
// .fifo = gf100_fifo_new, // .fifo = gf100_fifo_new,
// .gr = gf108_gr_new, // .gr = gf108_gr_new,
.mspdec = gf100_mspdec_new, .mspdec = gf100_mspdec_new,
...@@ -1379,7 +1379,7 @@ nvc3_chipset = { ...@@ -1379,7 +1379,7 @@ nvc3_chipset = {
.volt = nv40_volt_new, .volt = nv40_volt_new,
.ce[0] = gf100_ce_new, .ce[0] = gf100_ce_new,
// .disp = gt215_disp_new, // .disp = gt215_disp_new,
// .dma = gf100_dma_new, .dma = gf100_dma_new,
// .fifo = gf100_fifo_new, // .fifo = gf100_fifo_new,
// .gr = gf104_gr_new, // .gr = gf104_gr_new,
.mspdec = gf100_mspdec_new, .mspdec = gf100_mspdec_new,
...@@ -1414,7 +1414,7 @@ nvc4_chipset = { ...@@ -1414,7 +1414,7 @@ nvc4_chipset = {
.ce[0] = gf100_ce_new, .ce[0] = gf100_ce_new,
.ce[1] = gf100_ce_new, .ce[1] = gf100_ce_new,
// .disp = gt215_disp_new, // .disp = gt215_disp_new,
// .dma = gf100_dma_new, .dma = gf100_dma_new,
// .fifo = gf100_fifo_new, // .fifo = gf100_fifo_new,
// .gr = gf104_gr_new, // .gr = gf104_gr_new,
.mspdec = gf100_mspdec_new, .mspdec = gf100_mspdec_new,
...@@ -1449,7 +1449,7 @@ nvc8_chipset = { ...@@ -1449,7 +1449,7 @@ nvc8_chipset = {
.ce[0] = gf100_ce_new, .ce[0] = gf100_ce_new,
.ce[1] = gf100_ce_new, .ce[1] = gf100_ce_new,
// .disp = gt215_disp_new, // .disp = gt215_disp_new,
// .dma = gf100_dma_new, .dma = gf100_dma_new,
// .fifo = gf100_fifo_new, // .fifo = gf100_fifo_new,
// .gr = gf110_gr_new, // .gr = gf110_gr_new,
.mspdec = gf100_mspdec_new, .mspdec = gf100_mspdec_new,
...@@ -1484,7 +1484,7 @@ nvce_chipset = { ...@@ -1484,7 +1484,7 @@ nvce_chipset = {
.ce[0] = gf100_ce_new, .ce[0] = gf100_ce_new,
.ce[1] = gf100_ce_new, .ce[1] = gf100_ce_new,
// .disp = gt215_disp_new, // .disp = gt215_disp_new,
// .dma = gf100_dma_new, .dma = gf100_dma_new,
// .fifo = gf100_fifo_new, // .fifo = gf100_fifo_new,
// .gr = gf104_gr_new, // .gr = gf104_gr_new,
.mspdec = gf100_mspdec_new, .mspdec = gf100_mspdec_new,
...@@ -1518,7 +1518,7 @@ nvcf_chipset = { ...@@ -1518,7 +1518,7 @@ nvcf_chipset = {
.volt = nv40_volt_new, .volt = nv40_volt_new,
.ce[0] = gf100_ce_new, .ce[0] = gf100_ce_new,
// .disp = gt215_disp_new, // .disp = gt215_disp_new,
// .dma = gf100_dma_new, .dma = gf100_dma_new,
// .fifo = gf100_fifo_new, // .fifo = gf100_fifo_new,
// .gr = gf104_gr_new, // .gr = gf104_gr_new,
.mspdec = gf100_mspdec_new, .mspdec = gf100_mspdec_new,
...@@ -1550,7 +1550,7 @@ nvd7_chipset = { ...@@ -1550,7 +1550,7 @@ nvd7_chipset = {
.timer = nv41_timer_new, .timer = nv41_timer_new,
.ce[0] = gf100_ce_new, .ce[0] = gf100_ce_new,
// .disp = gf119_disp_new, // .disp = gf119_disp_new,
// .dma = gf119_dma_new, .dma = gf119_dma_new,
// .fifo = gf100_fifo_new, // .fifo = gf100_fifo_new,
// .gr = gf117_gr_new, // .gr = gf117_gr_new,
.mspdec = gf100_mspdec_new, .mspdec = gf100_mspdec_new,
...@@ -1584,7 +1584,7 @@ nvd9_chipset = { ...@@ -1584,7 +1584,7 @@ nvd9_chipset = {
.volt = nv40_volt_new, .volt = nv40_volt_new,
.ce[0] = gf100_ce_new, .ce[0] = gf100_ce_new,
// .disp = gf119_disp_new, // .disp = gf119_disp_new,
// .dma = gf119_dma_new, .dma = gf119_dma_new,
// .fifo = gf100_fifo_new, // .fifo = gf100_fifo_new,
// .gr = gf119_gr_new, // .gr = gf119_gr_new,
.mspdec = gf100_mspdec_new, .mspdec = gf100_mspdec_new,
...@@ -1620,7 +1620,7 @@ nve4_chipset = { ...@@ -1620,7 +1620,7 @@ nve4_chipset = {
.ce[1] = gk104_ce_new, .ce[1] = gk104_ce_new,
.ce[2] = gk104_ce_new, .ce[2] = gk104_ce_new,
// .disp = gk104_disp_new, // .disp = gk104_disp_new,
// .dma = gf119_dma_new, .dma = gf119_dma_new,
// .fifo = gk104_fifo_new, // .fifo = gk104_fifo_new,
// .gr = gk104_gr_new, // .gr = gk104_gr_new,
.mspdec = gk104_mspdec_new, .mspdec = gk104_mspdec_new,
...@@ -1656,7 +1656,7 @@ nve6_chipset = { ...@@ -1656,7 +1656,7 @@ nve6_chipset = {
.ce[1] = gk104_ce_new, .ce[1] = gk104_ce_new,
.ce[2] = gk104_ce_new, .ce[2] = gk104_ce_new,
// .disp = gk104_disp_new, // .disp = gk104_disp_new,
// .dma = gf119_dma_new, .dma = gf119_dma_new,
// .fifo = gk104_fifo_new, // .fifo = gk104_fifo_new,
// .gr = gk104_gr_new, // .gr = gk104_gr_new,
.mspdec = gk104_mspdec_new, .mspdec = gk104_mspdec_new,
...@@ -1692,7 +1692,7 @@ nve7_chipset = { ...@@ -1692,7 +1692,7 @@ nve7_chipset = {
.ce[1] = gk104_ce_new, .ce[1] = gk104_ce_new,
.ce[2] = gk104_ce_new, .ce[2] = gk104_ce_new,
// .disp = gk104_disp_new, // .disp = gk104_disp_new,
// .dma = gf119_dma_new, .dma = gf119_dma_new,
// .fifo = gk104_fifo_new, // .fifo = gk104_fifo_new,
// .gr = gk104_gr_new, // .gr = gk104_gr_new,
.mspdec = gk104_mspdec_new, .mspdec = gk104_mspdec_new,
...@@ -1719,7 +1719,7 @@ nvea_chipset = { ...@@ -1719,7 +1719,7 @@ nvea_chipset = {
.timer = gk20a_timer_new, .timer = gk20a_timer_new,
.volt = gk20a_volt_new, .volt = gk20a_volt_new,
.ce[2] = gk104_ce_new, .ce[2] = gk104_ce_new,
// .dma = gf119_dma_new, .dma = gf119_dma_new,
// .fifo = gk20a_fifo_new, // .fifo = gk20a_fifo_new,
// .gr = gk20a_gr_new, // .gr = gk20a_gr_new,
// .pm = gk104_pm_new, // .pm = gk104_pm_new,
...@@ -1752,7 +1752,7 @@ nvf0_chipset = { ...@@ -1752,7 +1752,7 @@ nvf0_chipset = {
.ce[1] = gk104_ce_new, .ce[1] = gk104_ce_new,
.ce[2] = gk104_ce_new, .ce[2] = gk104_ce_new,
// .disp = gk110_disp_new, // .disp = gk110_disp_new,
// .dma = gf119_dma_new, .dma = gf119_dma_new,
// .fifo = gk104_fifo_new, // .fifo = gk104_fifo_new,
// .gr = gk110_gr_new, // .gr = gk110_gr_new,
.mspdec = gk104_mspdec_new, .mspdec = gk104_mspdec_new,
...@@ -1788,7 +1788,7 @@ nvf1_chipset = { ...@@ -1788,7 +1788,7 @@ nvf1_chipset = {
.ce[1] = gk104_ce_new, .ce[1] = gk104_ce_new,
.ce[2] = gk104_ce_new, .ce[2] = gk104_ce_new,
// .disp = gk110_disp_new, // .disp = gk110_disp_new,
// .dma = gf119_dma_new, .dma = gf119_dma_new,
// .fifo = gk104_fifo_new, // .fifo = gk104_fifo_new,
// .gr = gk110b_gr_new, // .gr = gk110b_gr_new,
.mspdec = gk104_mspdec_new, .mspdec = gk104_mspdec_new,
...@@ -1824,7 +1824,7 @@ nv106_chipset = { ...@@ -1824,7 +1824,7 @@ nv106_chipset = {
.ce[1] = gk104_ce_new, .ce[1] = gk104_ce_new,
.ce[2] = gk104_ce_new, .ce[2] = gk104_ce_new,
// .disp = gk110_disp_new, // .disp = gk110_disp_new,
// .dma = gf119_dma_new, .dma = gf119_dma_new,
// .fifo = gk208_fifo_new, // .fifo = gk208_fifo_new,
// .gr = gk208_gr_new, // .gr = gk208_gr_new,
.mspdec = gk104_mspdec_new, .mspdec = gk104_mspdec_new,
...@@ -1859,7 +1859,7 @@ nv108_chipset = { ...@@ -1859,7 +1859,7 @@ nv108_chipset = {
.ce[1] = gk104_ce_new, .ce[1] = gk104_ce_new,
.ce[2] = gk104_ce_new, .ce[2] = gk104_ce_new,
// .disp = gk110_disp_new, // .disp = gk110_disp_new,
// .dma = gf119_dma_new, .dma = gf119_dma_new,
// .fifo = gk208_fifo_new, // .fifo = gk208_fifo_new,
// .gr = gk208_gr_new, // .gr = gk208_gr_new,
.mspdec = gk104_mspdec_new, .mspdec = gk104_mspdec_new,
...@@ -1892,7 +1892,7 @@ nv117_chipset = { ...@@ -1892,7 +1892,7 @@ nv117_chipset = {
.ce[0] = gk104_ce_new, .ce[0] = gk104_ce_new,
.ce[2] = gk104_ce_new, .ce[2] = gk104_ce_new,
// .disp = gm107_disp_new, // .disp = gm107_disp_new,
// .dma = gf119_dma_new, .dma = gf119_dma_new,
// .fifo = gk208_fifo_new, // .fifo = gk208_fifo_new,
// .gr = gm107_gr_new, // .gr = gm107_gr_new,
// .sw = gf100_sw_new, // .sw = gf100_sw_new,
...@@ -1921,7 +1921,7 @@ nv124_chipset = { ...@@ -1921,7 +1921,7 @@ nv124_chipset = {
.ce[1] = gm204_ce_new, .ce[1] = gm204_ce_new,
.ce[2] = gm204_ce_new, .ce[2] = gm204_ce_new,
// .disp = gm204_disp_new, // .disp = gm204_disp_new,
// .dma = gf119_dma_new, .dma = gf119_dma_new,
// .fifo = gm204_fifo_new, // .fifo = gm204_fifo_new,
// .gr = gm204_gr_new, // .gr = gm204_gr_new,
// .sw = gf100_sw_new, // .sw = gf100_sw_new,
...@@ -1950,7 +1950,7 @@ nv126_chipset = { ...@@ -1950,7 +1950,7 @@ nv126_chipset = {
.ce[1] = gm204_ce_new, .ce[1] = gm204_ce_new,
.ce[2] = gm204_ce_new, .ce[2] = gm204_ce_new,
// .disp = gm204_disp_new, // .disp = gm204_disp_new,
// .dma = gf119_dma_new, .dma = gf119_dma_new,
// .fifo = gm204_fifo_new, // .fifo = gm204_fifo_new,
// .gr = gm206_gr_new, // .gr = gm206_gr_new,
// .sw = gf100_sw_new, // .sw = gf100_sw_new,
...@@ -1971,7 +1971,7 @@ nv12b_chipset = { ...@@ -1971,7 +1971,7 @@ nv12b_chipset = {
.mmu = gf100_mmu_new, .mmu = gf100_mmu_new,
.timer = gk20a_timer_new, .timer = gk20a_timer_new,
.ce[2] = gm204_ce_new, .ce[2] = gm204_ce_new,
// .dma = gf119_dma_new, .dma = gf119_dma_new,
// .fifo = gm20b_fifo_new, // .fifo = gm20b_fifo_new,
// .gr = gm20b_gr_new, // .gr = gm20b_gr_new,
// .sw = gf100_sw_new, // .sw = gf100_sw_new,
......
...@@ -28,7 +28,6 @@ gf100_identify(struct nvkm_device *device) ...@@ -28,7 +28,6 @@ gf100_identify(struct nvkm_device *device)
{ {
switch (device->chipset) { switch (device->chipset) {
case 0xc0: case 0xc0:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = gf100_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = gf100_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = gf100_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = gf100_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = gf100_gr_oclass;
...@@ -36,7 +35,6 @@ gf100_identify(struct nvkm_device *device) ...@@ -36,7 +35,6 @@ gf100_identify(struct nvkm_device *device)
device->oclass[NVDEV_ENGINE_PM ] = gf100_pm_oclass; device->oclass[NVDEV_ENGINE_PM ] = gf100_pm_oclass;
break; break;
case 0xc4: case 0xc4:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = gf100_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = gf100_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = gf100_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = gf104_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = gf104_gr_oclass;
...@@ -44,7 +42,6 @@ gf100_identify(struct nvkm_device *device) ...@@ -44,7 +42,6 @@ gf100_identify(struct nvkm_device *device)
device->oclass[NVDEV_ENGINE_PM ] = gf100_pm_oclass; device->oclass[NVDEV_ENGINE_PM ] = gf100_pm_oclass;
break; break;
case 0xc3: case 0xc3:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = gf100_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = gf100_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = gf100_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = gf104_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = gf104_gr_oclass;
...@@ -52,7 +49,6 @@ gf100_identify(struct nvkm_device *device) ...@@ -52,7 +49,6 @@ gf100_identify(struct nvkm_device *device)
device->oclass[NVDEV_ENGINE_PM ] = gf100_pm_oclass; device->oclass[NVDEV_ENGINE_PM ] = gf100_pm_oclass;
break; break;
case 0xce: case 0xce:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = gf100_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = gf100_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = gf100_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = gf104_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = gf104_gr_oclass;
...@@ -60,7 +56,6 @@ gf100_identify(struct nvkm_device *device) ...@@ -60,7 +56,6 @@ gf100_identify(struct nvkm_device *device)
device->oclass[NVDEV_ENGINE_PM ] = gf100_pm_oclass; device->oclass[NVDEV_ENGINE_PM ] = gf100_pm_oclass;
break; break;
case 0xcf: case 0xcf:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = gf100_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = gf100_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = gf100_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = gf104_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = gf104_gr_oclass;
...@@ -68,7 +63,6 @@ gf100_identify(struct nvkm_device *device) ...@@ -68,7 +63,6 @@ gf100_identify(struct nvkm_device *device)
device->oclass[NVDEV_ENGINE_PM ] = gf100_pm_oclass; device->oclass[NVDEV_ENGINE_PM ] = gf100_pm_oclass;
break; break;
case 0xc1: case 0xc1:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = gf100_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = gf100_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = gf100_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = gf108_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = gf108_gr_oclass;
...@@ -76,7 +70,6 @@ gf100_identify(struct nvkm_device *device) ...@@ -76,7 +70,6 @@ gf100_identify(struct nvkm_device *device)
device->oclass[NVDEV_ENGINE_PM ] = gf108_pm_oclass; device->oclass[NVDEV_ENGINE_PM ] = gf108_pm_oclass;
break; break;
case 0xc8: case 0xc8:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = gf100_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = gf100_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = gf100_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = gf110_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = gf110_gr_oclass;
...@@ -84,7 +77,6 @@ gf100_identify(struct nvkm_device *device) ...@@ -84,7 +77,6 @@ gf100_identify(struct nvkm_device *device)
device->oclass[NVDEV_ENGINE_PM ] = gf100_pm_oclass; device->oclass[NVDEV_ENGINE_PM ] = gf100_pm_oclass;
break; break;
case 0xd9: case 0xd9:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = gf110_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = gf100_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = gf100_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = gf119_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = gf119_gr_oclass;
...@@ -92,7 +84,6 @@ gf100_identify(struct nvkm_device *device) ...@@ -92,7 +84,6 @@ gf100_identify(struct nvkm_device *device)
device->oclass[NVDEV_ENGINE_PM ] = gf117_pm_oclass; device->oclass[NVDEV_ENGINE_PM ] = gf117_pm_oclass;
break; break;
case 0xd7: case 0xd7:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = gf110_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = gf100_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = gf100_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = gf117_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = gf117_gr_oclass;
......
...@@ -28,7 +28,6 @@ gk104_identify(struct nvkm_device *device) ...@@ -28,7 +28,6 @@ gk104_identify(struct nvkm_device *device)
{ {
switch (device->chipset) { switch (device->chipset) {
case 0xe4: case 0xe4:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = gf110_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = gk104_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = gk104_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = gk104_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = gk104_gr_oclass;
...@@ -36,7 +35,6 @@ gk104_identify(struct nvkm_device *device) ...@@ -36,7 +35,6 @@ gk104_identify(struct nvkm_device *device)
device->oclass[NVDEV_ENGINE_PM ] = gk104_pm_oclass; device->oclass[NVDEV_ENGINE_PM ] = gk104_pm_oclass;
break; break;
case 0xe7: case 0xe7:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = gf110_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = gk104_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = gk104_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = gk104_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = gk104_gr_oclass;
...@@ -44,7 +42,6 @@ gk104_identify(struct nvkm_device *device) ...@@ -44,7 +42,6 @@ gk104_identify(struct nvkm_device *device)
device->oclass[NVDEV_ENGINE_PM ] = gk104_pm_oclass; device->oclass[NVDEV_ENGINE_PM ] = gk104_pm_oclass;
break; break;
case 0xe6: case 0xe6:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = gf110_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = gk104_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = gk104_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = gk104_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = gk104_gr_oclass;
...@@ -52,14 +49,12 @@ gk104_identify(struct nvkm_device *device) ...@@ -52,14 +49,12 @@ gk104_identify(struct nvkm_device *device)
device->oclass[NVDEV_ENGINE_PM ] = gk104_pm_oclass; device->oclass[NVDEV_ENGINE_PM ] = gk104_pm_oclass;
break; break;
case 0xea: case 0xea:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = gf110_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = gk20a_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = gk20a_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = gk20a_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = gk20a_gr_oclass;
device->oclass[NVDEV_ENGINE_PM ] = gk104_pm_oclass; device->oclass[NVDEV_ENGINE_PM ] = gk104_pm_oclass;
break; break;
case 0xf0: case 0xf0:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = gf110_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = gk104_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = gk104_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = gk110_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = gk110_gr_oclass;
...@@ -67,7 +62,6 @@ gk104_identify(struct nvkm_device *device) ...@@ -67,7 +62,6 @@ gk104_identify(struct nvkm_device *device)
device->oclass[NVDEV_ENGINE_PM ] = &gk110_pm_oclass; device->oclass[NVDEV_ENGINE_PM ] = &gk110_pm_oclass;
break; break;
case 0xf1: case 0xf1:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = gf110_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = gk104_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = gk104_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = gk110b_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = gk110b_gr_oclass;
...@@ -75,14 +69,12 @@ gk104_identify(struct nvkm_device *device) ...@@ -75,14 +69,12 @@ gk104_identify(struct nvkm_device *device)
device->oclass[NVDEV_ENGINE_PM ] = &gk110_pm_oclass; device->oclass[NVDEV_ENGINE_PM ] = &gk110_pm_oclass;
break; break;
case 0x106: case 0x106:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = gf110_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = gk208_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = gk208_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = gk208_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = gk208_gr_oclass;
device->oclass[NVDEV_ENGINE_DISP ] = gk110_disp_oclass; device->oclass[NVDEV_ENGINE_DISP ] = gk110_disp_oclass;
break; break;
case 0x108: case 0x108:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = gf110_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = gk208_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = gk208_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = gk208_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = gk208_gr_oclass;
......
...@@ -31,7 +31,6 @@ gm100_identify(struct nvkm_device *device) ...@@ -31,7 +31,6 @@ gm100_identify(struct nvkm_device *device)
#if 0 #if 0
#endif #endif
device->oclass[NVDEV_ENGINE_DMAOBJ ] = gf110_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = gk208_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = gk208_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = gm107_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = gm107_gr_oclass;
...@@ -48,7 +47,6 @@ gm100_identify(struct nvkm_device *device) ...@@ -48,7 +47,6 @@ gm100_identify(struct nvkm_device *device)
#endif #endif
#if 0 #if 0
#endif #endif
device->oclass[NVDEV_ENGINE_DMAOBJ ] = gf110_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = gm204_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = gm204_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = gm204_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = gm204_gr_oclass;
...@@ -63,7 +61,6 @@ gm100_identify(struct nvkm_device *device) ...@@ -63,7 +61,6 @@ gm100_identify(struct nvkm_device *device)
#endif #endif
#if 0 #if 0
#endif #endif
device->oclass[NVDEV_ENGINE_DMAOBJ ] = gf110_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = gm204_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = gm204_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = gm206_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = gm206_gr_oclass;
...@@ -73,7 +70,6 @@ gm100_identify(struct nvkm_device *device) ...@@ -73,7 +70,6 @@ gm100_identify(struct nvkm_device *device)
break; break;
case 0x12b: case 0x12b:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = gf110_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = gm20b_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = gm20b_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = gm20b_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = gm20b_gr_oclass;
......
...@@ -28,14 +28,12 @@ nv04_identify(struct nvkm_device *device) ...@@ -28,14 +28,12 @@ nv04_identify(struct nvkm_device *device)
{ {
switch (device->chipset) { switch (device->chipset) {
case 0x04: case 0x04:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = nv04_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = nv04_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = nv04_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = nv04_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = nv04_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = &nv04_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = &nv04_gr_oclass;
device->oclass[NVDEV_ENGINE_DISP ] = nv04_disp_oclass; device->oclass[NVDEV_ENGINE_DISP ] = nv04_disp_oclass;
break; break;
case 0x05: case 0x05:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = nv04_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = nv04_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = nv04_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = nv04_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = nv04_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = &nv04_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = &nv04_gr_oclass;
......
...@@ -28,54 +28,46 @@ nv10_identify(struct nvkm_device *device) ...@@ -28,54 +28,46 @@ nv10_identify(struct nvkm_device *device)
{ {
switch (device->chipset) { switch (device->chipset) {
case 0x10: case 0x10:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = nv04_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_GR ] = &nv10_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = &nv10_gr_oclass;
device->oclass[NVDEV_ENGINE_DISP ] = nv04_disp_oclass; device->oclass[NVDEV_ENGINE_DISP ] = nv04_disp_oclass;
break; break;
case 0x15: case 0x15:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = nv04_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = nv10_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = nv10_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = &nv10_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = &nv10_gr_oclass;
device->oclass[NVDEV_ENGINE_DISP ] = nv04_disp_oclass; device->oclass[NVDEV_ENGINE_DISP ] = nv04_disp_oclass;
break; break;
case 0x16: case 0x16:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = nv04_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = nv10_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = nv10_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = &nv10_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = &nv10_gr_oclass;
device->oclass[NVDEV_ENGINE_DISP ] = nv04_disp_oclass; device->oclass[NVDEV_ENGINE_DISP ] = nv04_disp_oclass;
break; break;
case 0x1a: case 0x1a:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = nv04_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = nv10_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = nv10_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = &nv10_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = &nv10_gr_oclass;
device->oclass[NVDEV_ENGINE_DISP ] = nv04_disp_oclass; device->oclass[NVDEV_ENGINE_DISP ] = nv04_disp_oclass;
break; break;
case 0x11: case 0x11:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = nv04_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = nv10_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = nv10_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = &nv10_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = &nv10_gr_oclass;
device->oclass[NVDEV_ENGINE_DISP ] = nv04_disp_oclass; device->oclass[NVDEV_ENGINE_DISP ] = nv04_disp_oclass;
break; break;
case 0x17: case 0x17:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = nv04_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = nv17_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = nv17_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = &nv10_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = &nv10_gr_oclass;
device->oclass[NVDEV_ENGINE_DISP ] = nv04_disp_oclass; device->oclass[NVDEV_ENGINE_DISP ] = nv04_disp_oclass;
break; break;
case 0x1f: case 0x1f:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = nv04_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = nv17_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = nv17_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = &nv10_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = &nv10_gr_oclass;
device->oclass[NVDEV_ENGINE_DISP ] = nv04_disp_oclass; device->oclass[NVDEV_ENGINE_DISP ] = nv04_disp_oclass;
break; break;
case 0x18: case 0x18:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = nv04_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = nv17_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = nv17_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = &nv10_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = &nv10_gr_oclass;
......
...@@ -28,28 +28,24 @@ nv20_identify(struct nvkm_device *device) ...@@ -28,28 +28,24 @@ nv20_identify(struct nvkm_device *device)
{ {
switch (device->chipset) { switch (device->chipset) {
case 0x20: case 0x20:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = nv04_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = nv17_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = nv17_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = &nv20_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = &nv20_gr_oclass;
device->oclass[NVDEV_ENGINE_DISP ] = nv04_disp_oclass; device->oclass[NVDEV_ENGINE_DISP ] = nv04_disp_oclass;
break; break;
case 0x25: case 0x25:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = nv04_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = nv17_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = nv17_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = &nv25_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = &nv25_gr_oclass;
device->oclass[NVDEV_ENGINE_DISP ] = nv04_disp_oclass; device->oclass[NVDEV_ENGINE_DISP ] = nv04_disp_oclass;
break; break;
case 0x28: case 0x28:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = nv04_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = nv17_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = nv17_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = &nv25_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = &nv25_gr_oclass;
device->oclass[NVDEV_ENGINE_DISP ] = nv04_disp_oclass; device->oclass[NVDEV_ENGINE_DISP ] = nv04_disp_oclass;
break; break;
case 0x2a: case 0x2a:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = nv04_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = nv17_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = nv17_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = &nv2a_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = &nv2a_gr_oclass;
......
...@@ -28,21 +28,18 @@ nv30_identify(struct nvkm_device *device) ...@@ -28,21 +28,18 @@ nv30_identify(struct nvkm_device *device)
{ {
switch (device->chipset) { switch (device->chipset) {
case 0x30: case 0x30:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = nv04_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = nv17_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = nv17_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = &nv30_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = &nv30_gr_oclass;
device->oclass[NVDEV_ENGINE_DISP ] = nv04_disp_oclass; device->oclass[NVDEV_ENGINE_DISP ] = nv04_disp_oclass;
break; break;
case 0x35: case 0x35:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = nv04_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = nv17_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = nv17_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = &nv35_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = &nv35_gr_oclass;
device->oclass[NVDEV_ENGINE_DISP ] = nv04_disp_oclass; device->oclass[NVDEV_ENGINE_DISP ] = nv04_disp_oclass;
break; break;
case 0x31: case 0x31:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = nv04_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = nv17_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = nv17_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = &nv30_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = &nv30_gr_oclass;
...@@ -50,7 +47,6 @@ nv30_identify(struct nvkm_device *device) ...@@ -50,7 +47,6 @@ nv30_identify(struct nvkm_device *device)
device->oclass[NVDEV_ENGINE_DISP ] = nv04_disp_oclass; device->oclass[NVDEV_ENGINE_DISP ] = nv04_disp_oclass;
break; break;
case 0x36: case 0x36:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = nv04_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = nv17_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = nv17_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = &nv35_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = &nv35_gr_oclass;
...@@ -58,7 +54,6 @@ nv30_identify(struct nvkm_device *device) ...@@ -58,7 +54,6 @@ nv30_identify(struct nvkm_device *device)
device->oclass[NVDEV_ENGINE_DISP ] = nv04_disp_oclass; device->oclass[NVDEV_ENGINE_DISP ] = nv04_disp_oclass;
break; break;
case 0x34: case 0x34:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = nv04_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = nv17_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = nv17_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = &nv34_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = &nv34_gr_oclass;
......
...@@ -28,7 +28,6 @@ nv40_identify(struct nvkm_device *device) ...@@ -28,7 +28,6 @@ nv40_identify(struct nvkm_device *device)
{ {
switch (device->chipset) { switch (device->chipset) {
case 0x40: case 0x40:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = nv04_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = nv40_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = nv40_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = &nv40_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = &nv40_gr_oclass;
...@@ -37,7 +36,6 @@ nv40_identify(struct nvkm_device *device) ...@@ -37,7 +36,6 @@ nv40_identify(struct nvkm_device *device)
device->oclass[NVDEV_ENGINE_PM ] = nv40_pm_oclass; device->oclass[NVDEV_ENGINE_PM ] = nv40_pm_oclass;
break; break;
case 0x41: case 0x41:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = nv04_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = nv40_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = nv40_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = &nv40_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = &nv40_gr_oclass;
...@@ -46,7 +44,6 @@ nv40_identify(struct nvkm_device *device) ...@@ -46,7 +44,6 @@ nv40_identify(struct nvkm_device *device)
device->oclass[NVDEV_ENGINE_PM ] = nv40_pm_oclass; device->oclass[NVDEV_ENGINE_PM ] = nv40_pm_oclass;
break; break;
case 0x42: case 0x42:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = nv04_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = nv40_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = nv40_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = &nv40_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = &nv40_gr_oclass;
...@@ -55,7 +52,6 @@ nv40_identify(struct nvkm_device *device) ...@@ -55,7 +52,6 @@ nv40_identify(struct nvkm_device *device)
device->oclass[NVDEV_ENGINE_PM ] = nv40_pm_oclass; device->oclass[NVDEV_ENGINE_PM ] = nv40_pm_oclass;
break; break;
case 0x43: case 0x43:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = nv04_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = nv40_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = nv40_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = &nv40_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = &nv40_gr_oclass;
...@@ -64,7 +60,6 @@ nv40_identify(struct nvkm_device *device) ...@@ -64,7 +60,6 @@ nv40_identify(struct nvkm_device *device)
device->oclass[NVDEV_ENGINE_PM ] = nv40_pm_oclass; device->oclass[NVDEV_ENGINE_PM ] = nv40_pm_oclass;
break; break;
case 0x45: case 0x45:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = nv04_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = nv40_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = nv40_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = &nv40_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = &nv40_gr_oclass;
...@@ -73,7 +68,6 @@ nv40_identify(struct nvkm_device *device) ...@@ -73,7 +68,6 @@ nv40_identify(struct nvkm_device *device)
device->oclass[NVDEV_ENGINE_PM ] = nv40_pm_oclass; device->oclass[NVDEV_ENGINE_PM ] = nv40_pm_oclass;
break; break;
case 0x47: case 0x47:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = nv04_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = nv40_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = nv40_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = &nv40_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = &nv40_gr_oclass;
...@@ -82,7 +76,6 @@ nv40_identify(struct nvkm_device *device) ...@@ -82,7 +76,6 @@ nv40_identify(struct nvkm_device *device)
device->oclass[NVDEV_ENGINE_PM ] = nv40_pm_oclass; device->oclass[NVDEV_ENGINE_PM ] = nv40_pm_oclass;
break; break;
case 0x49: case 0x49:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = nv04_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = nv40_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = nv40_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = &nv40_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = &nv40_gr_oclass;
...@@ -91,7 +84,6 @@ nv40_identify(struct nvkm_device *device) ...@@ -91,7 +84,6 @@ nv40_identify(struct nvkm_device *device)
device->oclass[NVDEV_ENGINE_PM ] = nv40_pm_oclass; device->oclass[NVDEV_ENGINE_PM ] = nv40_pm_oclass;
break; break;
case 0x4b: case 0x4b:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = nv04_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = nv40_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = nv40_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = &nv40_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = &nv40_gr_oclass;
...@@ -100,7 +92,6 @@ nv40_identify(struct nvkm_device *device) ...@@ -100,7 +92,6 @@ nv40_identify(struct nvkm_device *device)
device->oclass[NVDEV_ENGINE_PM ] = nv40_pm_oclass; device->oclass[NVDEV_ENGINE_PM ] = nv40_pm_oclass;
break; break;
case 0x44: case 0x44:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = nv04_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = nv40_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = nv40_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = &nv40_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = &nv40_gr_oclass;
...@@ -109,7 +100,6 @@ nv40_identify(struct nvkm_device *device) ...@@ -109,7 +100,6 @@ nv40_identify(struct nvkm_device *device)
device->oclass[NVDEV_ENGINE_PM ] = nv40_pm_oclass; device->oclass[NVDEV_ENGINE_PM ] = nv40_pm_oclass;
break; break;
case 0x46: case 0x46:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = nv04_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = nv40_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = nv40_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = &nv40_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = &nv40_gr_oclass;
...@@ -118,7 +108,6 @@ nv40_identify(struct nvkm_device *device) ...@@ -118,7 +108,6 @@ nv40_identify(struct nvkm_device *device)
device->oclass[NVDEV_ENGINE_PM ] = nv40_pm_oclass; device->oclass[NVDEV_ENGINE_PM ] = nv40_pm_oclass;
break; break;
case 0x4a: case 0x4a:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = nv04_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = nv40_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = nv40_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = &nv40_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = &nv40_gr_oclass;
...@@ -127,7 +116,6 @@ nv40_identify(struct nvkm_device *device) ...@@ -127,7 +116,6 @@ nv40_identify(struct nvkm_device *device)
device->oclass[NVDEV_ENGINE_PM ] = nv40_pm_oclass; device->oclass[NVDEV_ENGINE_PM ] = nv40_pm_oclass;
break; break;
case 0x4c: case 0x4c:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = nv04_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = nv40_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = nv40_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = &nv40_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = &nv40_gr_oclass;
...@@ -136,7 +124,6 @@ nv40_identify(struct nvkm_device *device) ...@@ -136,7 +124,6 @@ nv40_identify(struct nvkm_device *device)
device->oclass[NVDEV_ENGINE_PM ] = nv40_pm_oclass; device->oclass[NVDEV_ENGINE_PM ] = nv40_pm_oclass;
break; break;
case 0x4e: case 0x4e:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = nv04_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = nv40_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = nv40_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = &nv40_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = &nv40_gr_oclass;
...@@ -145,7 +132,6 @@ nv40_identify(struct nvkm_device *device) ...@@ -145,7 +132,6 @@ nv40_identify(struct nvkm_device *device)
device->oclass[NVDEV_ENGINE_PM ] = nv40_pm_oclass; device->oclass[NVDEV_ENGINE_PM ] = nv40_pm_oclass;
break; break;
case 0x63: case 0x63:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = nv04_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = nv40_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = nv40_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = &nv40_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = &nv40_gr_oclass;
...@@ -154,7 +140,6 @@ nv40_identify(struct nvkm_device *device) ...@@ -154,7 +140,6 @@ nv40_identify(struct nvkm_device *device)
device->oclass[NVDEV_ENGINE_PM ] = nv40_pm_oclass; device->oclass[NVDEV_ENGINE_PM ] = nv40_pm_oclass;
break; break;
case 0x67: case 0x67:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = nv04_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = nv40_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = nv40_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = &nv40_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = &nv40_gr_oclass;
...@@ -163,7 +148,6 @@ nv40_identify(struct nvkm_device *device) ...@@ -163,7 +148,6 @@ nv40_identify(struct nvkm_device *device)
device->oclass[NVDEV_ENGINE_PM ] = nv40_pm_oclass; device->oclass[NVDEV_ENGINE_PM ] = nv40_pm_oclass;
break; break;
case 0x68: case 0x68:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = nv04_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = nv40_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = nv40_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = nv10_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = &nv40_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = &nv40_gr_oclass;
......
...@@ -28,7 +28,6 @@ nv50_identify(struct nvkm_device *device) ...@@ -28,7 +28,6 @@ nv50_identify(struct nvkm_device *device)
{ {
switch (device->chipset) { switch (device->chipset) {
case 0x50: case 0x50:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = nv50_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = nv50_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = nv50_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = nv50_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = nv50_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = &nv50_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = &nv50_gr_oclass;
...@@ -37,7 +36,6 @@ nv50_identify(struct nvkm_device *device) ...@@ -37,7 +36,6 @@ nv50_identify(struct nvkm_device *device)
device->oclass[NVDEV_ENGINE_PM ] = nv50_pm_oclass; device->oclass[NVDEV_ENGINE_PM ] = nv50_pm_oclass;
break; break;
case 0x84: case 0x84:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = nv50_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = g84_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = g84_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = nv50_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = nv50_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = &nv50_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = &nv50_gr_oclass;
...@@ -46,7 +44,6 @@ nv50_identify(struct nvkm_device *device) ...@@ -46,7 +44,6 @@ nv50_identify(struct nvkm_device *device)
device->oclass[NVDEV_ENGINE_PM ] = g84_pm_oclass; device->oclass[NVDEV_ENGINE_PM ] = g84_pm_oclass;
break; break;
case 0x86: case 0x86:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = nv50_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = g84_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = g84_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = nv50_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = nv50_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = &nv50_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = &nv50_gr_oclass;
...@@ -55,7 +52,6 @@ nv50_identify(struct nvkm_device *device) ...@@ -55,7 +52,6 @@ nv50_identify(struct nvkm_device *device)
device->oclass[NVDEV_ENGINE_PM ] = g84_pm_oclass; device->oclass[NVDEV_ENGINE_PM ] = g84_pm_oclass;
break; break;
case 0x92: case 0x92:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = nv50_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = g84_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = g84_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = nv50_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = nv50_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = &nv50_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = &nv50_gr_oclass;
...@@ -64,7 +60,6 @@ nv50_identify(struct nvkm_device *device) ...@@ -64,7 +60,6 @@ nv50_identify(struct nvkm_device *device)
device->oclass[NVDEV_ENGINE_PM ] = g84_pm_oclass; device->oclass[NVDEV_ENGINE_PM ] = g84_pm_oclass;
break; break;
case 0x94: case 0x94:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = nv50_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = g84_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = g84_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = nv50_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = nv50_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = &nv50_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = &nv50_gr_oclass;
...@@ -73,7 +68,6 @@ nv50_identify(struct nvkm_device *device) ...@@ -73,7 +68,6 @@ nv50_identify(struct nvkm_device *device)
device->oclass[NVDEV_ENGINE_PM ] = g84_pm_oclass; device->oclass[NVDEV_ENGINE_PM ] = g84_pm_oclass;
break; break;
case 0x96: case 0x96:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = nv50_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = g84_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = g84_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = nv50_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = nv50_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = &nv50_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = &nv50_gr_oclass;
...@@ -82,7 +76,6 @@ nv50_identify(struct nvkm_device *device) ...@@ -82,7 +76,6 @@ nv50_identify(struct nvkm_device *device)
device->oclass[NVDEV_ENGINE_PM ] = g84_pm_oclass; device->oclass[NVDEV_ENGINE_PM ] = g84_pm_oclass;
break; break;
case 0x98: case 0x98:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = nv50_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = g84_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = g84_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = nv50_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = nv50_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = &nv50_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = &nv50_gr_oclass;
...@@ -90,7 +83,6 @@ nv50_identify(struct nvkm_device *device) ...@@ -90,7 +83,6 @@ nv50_identify(struct nvkm_device *device)
device->oclass[NVDEV_ENGINE_PM ] = g84_pm_oclass; device->oclass[NVDEV_ENGINE_PM ] = g84_pm_oclass;
break; break;
case 0xa0: case 0xa0:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = nv50_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = g84_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = g84_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = nv50_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = nv50_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = &nv50_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = &nv50_gr_oclass;
...@@ -99,7 +91,6 @@ nv50_identify(struct nvkm_device *device) ...@@ -99,7 +91,6 @@ nv50_identify(struct nvkm_device *device)
device->oclass[NVDEV_ENGINE_PM ] = gt200_pm_oclass; device->oclass[NVDEV_ENGINE_PM ] = gt200_pm_oclass;
break; break;
case 0xaa: case 0xaa:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = nv50_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = g84_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = g84_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = nv50_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = nv50_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = &nv50_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = &nv50_gr_oclass;
...@@ -107,7 +98,6 @@ nv50_identify(struct nvkm_device *device) ...@@ -107,7 +98,6 @@ nv50_identify(struct nvkm_device *device)
device->oclass[NVDEV_ENGINE_PM ] = g84_pm_oclass; device->oclass[NVDEV_ENGINE_PM ] = g84_pm_oclass;
break; break;
case 0xac: case 0xac:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = nv50_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = g84_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = g84_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = nv50_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = nv50_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = &nv50_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = &nv50_gr_oclass;
...@@ -115,7 +105,6 @@ nv50_identify(struct nvkm_device *device) ...@@ -115,7 +105,6 @@ nv50_identify(struct nvkm_device *device)
device->oclass[NVDEV_ENGINE_PM ] = g84_pm_oclass; device->oclass[NVDEV_ENGINE_PM ] = g84_pm_oclass;
break; break;
case 0xa3: case 0xa3:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = nv50_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = g84_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = g84_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = nv50_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = nv50_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = &nv50_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = &nv50_gr_oclass;
...@@ -124,7 +113,6 @@ nv50_identify(struct nvkm_device *device) ...@@ -124,7 +113,6 @@ nv50_identify(struct nvkm_device *device)
device->oclass[NVDEV_ENGINE_PM ] = gt215_pm_oclass; device->oclass[NVDEV_ENGINE_PM ] = gt215_pm_oclass;
break; break;
case 0xa5: case 0xa5:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = nv50_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = g84_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = g84_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = nv50_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = nv50_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = &nv50_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = &nv50_gr_oclass;
...@@ -132,7 +120,6 @@ nv50_identify(struct nvkm_device *device) ...@@ -132,7 +120,6 @@ nv50_identify(struct nvkm_device *device)
device->oclass[NVDEV_ENGINE_PM ] = gt215_pm_oclass; device->oclass[NVDEV_ENGINE_PM ] = gt215_pm_oclass;
break; break;
case 0xa8: case 0xa8:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = nv50_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = g84_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = g84_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = nv50_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = nv50_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = &nv50_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = &nv50_gr_oclass;
...@@ -140,7 +127,6 @@ nv50_identify(struct nvkm_device *device) ...@@ -140,7 +127,6 @@ nv50_identify(struct nvkm_device *device)
device->oclass[NVDEV_ENGINE_PM ] = gt215_pm_oclass; device->oclass[NVDEV_ENGINE_PM ] = gt215_pm_oclass;
break; break;
case 0xaf: case 0xaf:
device->oclass[NVDEV_ENGINE_DMAOBJ ] = nv50_dmaeng_oclass;
device->oclass[NVDEV_ENGINE_FIFO ] = g84_fifo_oclass; device->oclass[NVDEV_ENGINE_FIFO ] = g84_fifo_oclass;
device->oclass[NVDEV_ENGINE_SW ] = nv50_sw_oclass; device->oclass[NVDEV_ENGINE_SW ] = nv50_sw_oclass;
device->oclass[NVDEV_ENGINE_GR ] = &nv50_gr_oclass; device->oclass[NVDEV_ENGINE_GR ] = &nv50_gr_oclass;
......
...@@ -2,10 +2,10 @@ nvkm-y += nvkm/engine/dma/base.o ...@@ -2,10 +2,10 @@ nvkm-y += nvkm/engine/dma/base.o
nvkm-y += nvkm/engine/dma/nv04.o nvkm-y += nvkm/engine/dma/nv04.o
nvkm-y += nvkm/engine/dma/nv50.o nvkm-y += nvkm/engine/dma/nv50.o
nvkm-y += nvkm/engine/dma/gf100.o nvkm-y += nvkm/engine/dma/gf100.o
nvkm-y += nvkm/engine/dma/gf110.o nvkm-y += nvkm/engine/dma/gf119.o
nvkm-y += nvkm/engine/dma/user.o nvkm-y += nvkm/engine/dma/user.o
nvkm-y += nvkm/engine/dma/usernv04.o nvkm-y += nvkm/engine/dma/usernv04.o
nvkm-y += nvkm/engine/dma/usernv50.o nvkm-y += nvkm/engine/dma/usernv50.o
nvkm-y += nvkm/engine/dma/usergf100.o nvkm-y += nvkm/engine/dma/usergf100.o
nvkm-y += nvkm/engine/dma/usergf110.o nvkm-y += nvkm/engine/dma/usergf119.o
...@@ -52,14 +52,13 @@ nvkm_dma_oclass_new(struct nvkm_device *device, ...@@ -52,14 +52,13 @@ nvkm_dma_oclass_new(struct nvkm_device *device,
struct nvkm_object **pobject) struct nvkm_object **pobject)
{ {
struct nvkm_dma *dma = nvkm_dma(oclass->engine); struct nvkm_dma *dma = nvkm_dma(oclass->engine);
struct nvkm_dma_impl *impl = (void *)dma->engine.subdev.object.oclass;
struct nvkm_dmaobj *dmaobj = NULL; struct nvkm_dmaobj *dmaobj = NULL;
struct nvkm_client *client = oclass->client; struct nvkm_client *client = oclass->client;
struct rb_node **ptr = &client->dmaroot.rb_node; struct rb_node **ptr = &client->dmaroot.rb_node;
struct rb_node *parent = NULL; struct rb_node *parent = NULL;
int ret; int ret;
ret = impl->class_new(dma, oclass, data, size, &dmaobj); ret = dma->func->class_new(dma, oclass, data, size, &dmaobj);
if (dmaobj) if (dmaobj)
*pobject = &dmaobj->object; *pobject = &dmaobj->object;
if (ret) if (ret)
...@@ -130,26 +129,29 @@ nvkm_dma_oclass_fifo_get(struct nvkm_oclass *oclass, int index) ...@@ -130,26 +129,29 @@ nvkm_dma_oclass_fifo_get(struct nvkm_oclass *oclass, int index)
return count; return count;
} }
static void *
nvkm_dma_dtor(struct nvkm_engine *engine)
{
return nvkm_dma(engine);
}
static const struct nvkm_engine_func static const struct nvkm_engine_func
nvkm_dma = { nvkm_dma = {
.dtor = nvkm_dma_dtor,
.base.sclass = nvkm_dma_oclass_base_get, .base.sclass = nvkm_dma_oclass_base_get,
.fifo.sclass = nvkm_dma_oclass_fifo_get, .fifo.sclass = nvkm_dma_oclass_fifo_get,
}; };
int int
_nvkm_dma_ctor(struct nvkm_object *parent, struct nvkm_object *engine, nvkm_dma_new_(const struct nvkm_dma_func *func, struct nvkm_device *device,
struct nvkm_oclass *oclass, void *data, u32 size, int index, struct nvkm_dma **pdma)
struct nvkm_object **pobject)
{ {
struct nvkm_dma *dmaeng; struct nvkm_dma *dma;
int ret;
ret = nvkm_engine_create(parent, engine, oclass, true, "DMAOBJ", if (!(dma = *pdma = kzalloc(sizeof(*dma), GFP_KERNEL)))
"dmaobj", &dmaeng); return -ENOMEM;
*pobject = nv_object(dmaeng); dma->func = func;
if (ret)
return ret;
dmaeng->engine.func = &nvkm_dma; return nvkm_engine_ctor(&nvkm_dma, device, index,
return 0; 0, true, &dma->engine);
} }
...@@ -24,14 +24,13 @@ ...@@ -24,14 +24,13 @@
#include "priv.h" #include "priv.h"
#include "user.h" #include "user.h"
struct nvkm_oclass * static const struct nvkm_dma_func
gf100_dmaeng_oclass = &(struct nvkm_dma_impl) { gf100_dma = {
.base.handle = NV_ENGINE(DMAOBJ, 0xc0),
.base.ofuncs = &(struct nvkm_ofuncs) {
.ctor = _nvkm_dma_ctor,
.dtor = _nvkm_dma_dtor,
.init = _nvkm_dma_init,
.fini = _nvkm_dma_fini,
},
.class_new = gf100_dmaobj_new, .class_new = gf100_dmaobj_new,
}.base; };
int
gf100_dma_new(struct nvkm_device *device, int index, struct nvkm_dma **pdma)
{
return nvkm_dma_new_(&gf100_dma, device, index, pdma);
}
...@@ -24,14 +24,13 @@ ...@@ -24,14 +24,13 @@
#include "priv.h" #include "priv.h"
#include "user.h" #include "user.h"
struct nvkm_oclass * static const struct nvkm_dma_func
gf110_dmaeng_oclass = &(struct nvkm_dma_impl) { gf119_dma = {
.base.handle = NV_ENGINE(DMAOBJ, 0xd0), .class_new = gf119_dmaobj_new,
.base.ofuncs = &(struct nvkm_ofuncs) { };
.ctor = _nvkm_dma_ctor,
.dtor = _nvkm_dma_dtor, int
.init = _nvkm_dma_init, gf119_dma_new(struct nvkm_device *device, int index, struct nvkm_dma **pdma)
.fini = _nvkm_dma_fini, {
}, return nvkm_dma_new_(&gf119_dma, device, index, pdma);
.class_new = gf110_dmaobj_new, }
}.base;
...@@ -24,14 +24,13 @@ ...@@ -24,14 +24,13 @@
#include "priv.h" #include "priv.h"
#include "user.h" #include "user.h"
struct nvkm_oclass * static const struct nvkm_dma_func
nv04_dmaeng_oclass = &(struct nvkm_dma_impl) { nv04_dma = {
.base.handle = NV_ENGINE(DMAOBJ, 0x04),
.base.ofuncs = &(struct nvkm_ofuncs) {
.ctor = _nvkm_dma_ctor,
.dtor = _nvkm_dma_dtor,
.init = _nvkm_dma_init,
.fini = _nvkm_dma_fini,
},
.class_new = nv04_dmaobj_new, .class_new = nv04_dmaobj_new,
}.base; };
int
nv04_dma_new(struct nvkm_device *device, int index, struct nvkm_dma **pdma)
{
return nvkm_dma_new_(&nv04_dma, device, index, pdma);
}
...@@ -24,14 +24,13 @@ ...@@ -24,14 +24,13 @@
#include "priv.h" #include "priv.h"
#include "user.h" #include "user.h"
struct nvkm_oclass * static const struct nvkm_dma_func
nv50_dmaeng_oclass = &(struct nvkm_dma_impl) { nv50_dma = {
.base.handle = NV_ENGINE(DMAOBJ, 0x50),
.base.ofuncs = &(struct nvkm_ofuncs) {
.ctor = _nvkm_dma_ctor,
.dtor = _nvkm_dma_dtor,
.init = _nvkm_dma_init,
.fini = _nvkm_dma_fini,
},
.class_new = nv50_dmaobj_new, .class_new = nv50_dmaobj_new,
}.base; };
int
nv50_dma_new(struct nvkm_device *device, int index, struct nvkm_dma **pdma)
{
return nvkm_dma_new_(&nv50_dma, device, index, pdma);
}
...@@ -3,18 +3,15 @@ ...@@ -3,18 +3,15 @@
#define nvkm_dma(p) container_of((p), struct nvkm_dma, engine) #define nvkm_dma(p) container_of((p), struct nvkm_dma, engine)
#include <engine/dma.h> #include <engine/dma.h>
int _nvkm_dma_ctor(struct nvkm_object *, struct nvkm_object *, struct nvkm_dmaobj_func {
struct nvkm_oclass *, void *, u32, int (*bind)(struct nvkm_dmaobj *, struct nvkm_gpuobj *, int align,
struct nvkm_object **);
#define _nvkm_dma_dtor _nvkm_engine_dtor
#define _nvkm_dma_init _nvkm_engine_init
#define _nvkm_dma_fini _nvkm_engine_fini
struct nvkm_dma_impl {
struct nvkm_oclass base;
struct nvkm_oclass *sclass;
int (*bind)(struct nvkm_dmaobj *, struct nvkm_gpuobj *,
struct nvkm_gpuobj **); struct nvkm_gpuobj **);
};
int nvkm_dma_new_(const struct nvkm_dma_func *, struct nvkm_device *,
int index, struct nvkm_dma **);
struct nvkm_dma_func {
int (*class_new)(struct nvkm_dma *, const struct nvkm_oclass *, int (*class_new)(struct nvkm_dma *, const struct nvkm_oclass *,
void *data, u32 size, struct nvkm_dmaobj **); void *data, u32 size, struct nvkm_dmaobj **);
}; };
......
...@@ -13,6 +13,6 @@ int nv50_dmaobj_new(struct nvkm_dma *, const struct nvkm_oclass *, void *, u32, ...@@ -13,6 +13,6 @@ int nv50_dmaobj_new(struct nvkm_dma *, const struct nvkm_oclass *, void *, u32,
struct nvkm_dmaobj **); struct nvkm_dmaobj **);
int gf100_dmaobj_new(struct nvkm_dma *, const struct nvkm_oclass *, void *, u32, int gf100_dmaobj_new(struct nvkm_dma *, const struct nvkm_oclass *, void *, u32,
struct nvkm_dmaobj **); struct nvkm_dmaobj **);
int gf110_dmaobj_new(struct nvkm_dma *, const struct nvkm_oclass *, void *, u32, int gf119_dmaobj_new(struct nvkm_dma *, const struct nvkm_oclass *, void *, u32,
struct nvkm_dmaobj **); struct nvkm_dmaobj **);
#endif #endif
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
* *
* Authors: Ben Skeggs * Authors: Ben Skeggs
*/ */
#define gf110_dmaobj(p) container_of((p), struct gf110_dmaobj, base) #define gf119_dmaobj(p) container_of((p), struct gf119_dmaobj, base)
#include "user.h" #include "user.h"
#include <core/client.h> #include <core/client.h>
...@@ -31,16 +31,16 @@ ...@@ -31,16 +31,16 @@
#include <nvif/class.h> #include <nvif/class.h>
#include <nvif/unpack.h> #include <nvif/unpack.h>
struct gf110_dmaobj { struct gf119_dmaobj {
struct nvkm_dmaobj base; struct nvkm_dmaobj base;
u32 flags0; u32 flags0;
}; };
static int static int
gf110_dmaobj_bind(struct nvkm_dmaobj *base, struct nvkm_gpuobj *parent, gf119_dmaobj_bind(struct nvkm_dmaobj *base, struct nvkm_gpuobj *parent,
int align, struct nvkm_gpuobj **pgpuobj) int align, struct nvkm_gpuobj **pgpuobj)
{ {
struct gf110_dmaobj *dmaobj = gf110_dmaobj(base); struct gf119_dmaobj *dmaobj = gf119_dmaobj(base);
struct nvkm_device *device = dmaobj->base.dma->engine.subdev.device; struct nvkm_device *device = dmaobj->base.dma->engine.subdev.device;
int ret; int ret;
...@@ -60,19 +60,19 @@ gf110_dmaobj_bind(struct nvkm_dmaobj *base, struct nvkm_gpuobj *parent, ...@@ -60,19 +60,19 @@ gf110_dmaobj_bind(struct nvkm_dmaobj *base, struct nvkm_gpuobj *parent,
} }
static const struct nvkm_dmaobj_func static const struct nvkm_dmaobj_func
gf110_dmaobj_func = { gf119_dmaobj_func = {
.bind = gf110_dmaobj_bind, .bind = gf119_dmaobj_bind,
}; };
int int
gf110_dmaobj_new(struct nvkm_dma *dma, const struct nvkm_oclass *oclass, gf119_dmaobj_new(struct nvkm_dma *dma, const struct nvkm_oclass *oclass,
void *data, u32 size, struct nvkm_dmaobj **pdmaobj) void *data, u32 size, struct nvkm_dmaobj **pdmaobj)
{ {
union { union {
struct gf110_dma_v0 v0; struct gf119_dma_v0 v0;
} *args; } *args;
struct nvkm_object *parent = oclass->parent; struct nvkm_object *parent = oclass->parent;
struct gf110_dmaobj *dmaobj; struct gf119_dmaobj *dmaobj;
u32 kind, page; u32 kind, page;
int ret; int ret;
...@@ -80,14 +80,14 @@ gf110_dmaobj_new(struct nvkm_dma *dma, const struct nvkm_oclass *oclass, ...@@ -80,14 +80,14 @@ gf110_dmaobj_new(struct nvkm_dma *dma, const struct nvkm_oclass *oclass,
return -ENOMEM; return -ENOMEM;
*pdmaobj = &dmaobj->base; *pdmaobj = &dmaobj->base;
ret = nvkm_dmaobj_ctor(&gf110_dmaobj_func, dma, oclass, ret = nvkm_dmaobj_ctor(&gf119_dmaobj_func, dma, oclass,
&data, &size, &dmaobj->base); &data, &size, &dmaobj->base);
if (ret) if (ret)
return ret; return ret;
args = data; args = data;
nvif_ioctl(parent, "create gf110 dma size %d\n", size); nvif_ioctl(parent, "create gf119 dma size %d\n", size);
if (nvif_unpack(args->v0, 0, 0, false)) { if (nvif_unpack(args->v0, 0, 0, false)) {
nvif_ioctl(parent, nvif_ioctl(parent,
"create gf100 dma vers %d page %d kind %02x\n", "create gf100 dma vers %d page %d kind %02x\n",
...@@ -97,11 +97,11 @@ gf110_dmaobj_new(struct nvkm_dma *dma, const struct nvkm_oclass *oclass, ...@@ -97,11 +97,11 @@ gf110_dmaobj_new(struct nvkm_dma *dma, const struct nvkm_oclass *oclass,
} else } else
if (size == 0) { if (size == 0) {
if (dmaobj->base.target != NV_MEM_TARGET_VM) { if (dmaobj->base.target != NV_MEM_TARGET_VM) {
kind = GF110_DMA_V0_KIND_PITCH; kind = GF119_DMA_V0_KIND_PITCH;
page = GF110_DMA_V0_PAGE_SP; page = GF119_DMA_V0_PAGE_SP;
} else { } else {
kind = GF110_DMA_V0_KIND_VM; kind = GF119_DMA_V0_KIND_VM;
page = GF110_DMA_V0_PAGE_LP; page = GF119_DMA_V0_PAGE_LP;
} }
} else } else
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment