Commit ef7664d9 authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau/bar/tu102: rename implementation from tu104

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent c011b254
...@@ -29,5 +29,5 @@ int gf100_bar_new(struct nvkm_device *, int, struct nvkm_bar **); ...@@ -29,5 +29,5 @@ int gf100_bar_new(struct nvkm_device *, int, struct nvkm_bar **);
int gk20a_bar_new(struct nvkm_device *, int, struct nvkm_bar **); int gk20a_bar_new(struct nvkm_device *, int, struct nvkm_bar **);
int gm107_bar_new(struct nvkm_device *, int, struct nvkm_bar **); int gm107_bar_new(struct nvkm_device *, int, struct nvkm_bar **);
int gm20b_bar_new(struct nvkm_device *, int, struct nvkm_bar **); int gm20b_bar_new(struct nvkm_device *, int, struct nvkm_bar **);
int tu104_bar_new(struct nvkm_device *, int, struct nvkm_bar **); int tu102_bar_new(struct nvkm_device *, int, struct nvkm_bar **);
#endif #endif
...@@ -2437,7 +2437,7 @@ nv140_chipset = { ...@@ -2437,7 +2437,7 @@ nv140_chipset = {
static const struct nvkm_device_chip static const struct nvkm_device_chip
nv162_chipset = { nv162_chipset = {
.name = "TU102", .name = "TU102",
.bar = tu104_bar_new, .bar = tu102_bar_new,
.bios = nvkm_bios_new, .bios = nvkm_bios_new,
.bus = gf100_bus_new, .bus = gf100_bus_new,
.devinit = tu102_devinit_new, .devinit = tu102_devinit_new,
...@@ -2469,7 +2469,7 @@ nv162_chipset = { ...@@ -2469,7 +2469,7 @@ nv162_chipset = {
static const struct nvkm_device_chip static const struct nvkm_device_chip
nv164_chipset = { nv164_chipset = {
.name = "TU104", .name = "TU104",
.bar = tu104_bar_new, .bar = tu102_bar_new,
.bios = nvkm_bios_new, .bios = nvkm_bios_new,
.bus = gf100_bus_new, .bus = gf100_bus_new,
.devinit = tu102_devinit_new, .devinit = tu102_devinit_new,
...@@ -2501,7 +2501,7 @@ nv164_chipset = { ...@@ -2501,7 +2501,7 @@ nv164_chipset = {
static const struct nvkm_device_chip static const struct nvkm_device_chip
nv166_chipset = { nv166_chipset = {
.name = "TU106", .name = "TU106",
.bar = tu104_bar_new, .bar = tu102_bar_new,
.bios = nvkm_bios_new, .bios = nvkm_bios_new,
.bus = gf100_bus_new, .bus = gf100_bus_new,
.devinit = tu102_devinit_new, .devinit = tu102_devinit_new,
......
...@@ -5,4 +5,4 @@ nvkm-y += nvkm/subdev/bar/gf100.o ...@@ -5,4 +5,4 @@ nvkm-y += nvkm/subdev/bar/gf100.o
nvkm-y += nvkm/subdev/bar/gk20a.o nvkm-y += nvkm/subdev/bar/gk20a.o
nvkm-y += nvkm/subdev/bar/gm107.o nvkm-y += nvkm/subdev/bar/gm107.o
nvkm-y += nvkm/subdev/bar/gm20b.o nvkm-y += nvkm/subdev/bar/gm20b.o
nvkm-y += nvkm/subdev/bar/tu104.o nvkm-y += nvkm/subdev/bar/tu102.o
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
#include <subdev/timer.h> #include <subdev/timer.h>
static void static void
tu104_bar_bar2_wait(struct nvkm_bar *bar) tu102_bar_bar2_wait(struct nvkm_bar *bar)
{ {
struct nvkm_device *device = bar->subdev.device; struct nvkm_device *device = bar->subdev.device;
nvkm_msec(device, 2000, nvkm_msec(device, 2000,
...@@ -35,13 +35,13 @@ tu104_bar_bar2_wait(struct nvkm_bar *bar) ...@@ -35,13 +35,13 @@ tu104_bar_bar2_wait(struct nvkm_bar *bar)
} }
static void static void
tu104_bar_bar2_fini(struct nvkm_bar *bar) tu102_bar_bar2_fini(struct nvkm_bar *bar)
{ {
nvkm_mask(bar->subdev.device, 0xb80f48, 0x80000000, 0x00000000); nvkm_mask(bar->subdev.device, 0xb80f48, 0x80000000, 0x00000000);
} }
static void static void
tu104_bar_bar2_init(struct nvkm_bar *base) tu102_bar_bar2_init(struct nvkm_bar *base)
{ {
struct nvkm_device *device = base->subdev.device; struct nvkm_device *device = base->subdev.device;
struct gf100_bar *bar = gf100_bar(base); struct gf100_bar *bar = gf100_bar(base);
...@@ -52,7 +52,7 @@ tu104_bar_bar2_init(struct nvkm_bar *base) ...@@ -52,7 +52,7 @@ tu104_bar_bar2_init(struct nvkm_bar *base)
} }
static void static void
tu104_bar_bar1_wait(struct nvkm_bar *bar) tu102_bar_bar1_wait(struct nvkm_bar *bar)
{ {
struct nvkm_device *device = bar->subdev.device; struct nvkm_device *device = bar->subdev.device;
nvkm_msec(device, 2000, nvkm_msec(device, 2000,
...@@ -62,13 +62,13 @@ tu104_bar_bar1_wait(struct nvkm_bar *bar) ...@@ -62,13 +62,13 @@ tu104_bar_bar1_wait(struct nvkm_bar *bar)
} }
static void static void
tu104_bar_bar1_fini(struct nvkm_bar *bar) tu102_bar_bar1_fini(struct nvkm_bar *bar)
{ {
nvkm_mask(bar->subdev.device, 0xb80f40, 0x80000000, 0x00000000); nvkm_mask(bar->subdev.device, 0xb80f40, 0x80000000, 0x00000000);
} }
static void static void
tu104_bar_bar1_init(struct nvkm_bar *base) tu102_bar_bar1_init(struct nvkm_bar *base)
{ {
struct nvkm_device *device = base->subdev.device; struct nvkm_device *device = base->subdev.device;
struct gf100_bar *bar = gf100_bar(base); struct gf100_bar *bar = gf100_bar(base);
...@@ -77,22 +77,22 @@ tu104_bar_bar1_init(struct nvkm_bar *base) ...@@ -77,22 +77,22 @@ tu104_bar_bar1_init(struct nvkm_bar *base)
} }
static const struct nvkm_bar_func static const struct nvkm_bar_func
tu104_bar = { tu102_bar = {
.dtor = gf100_bar_dtor, .dtor = gf100_bar_dtor,
.oneinit = gf100_bar_oneinit, .oneinit = gf100_bar_oneinit,
.bar1.init = tu104_bar_bar1_init, .bar1.init = tu102_bar_bar1_init,
.bar1.fini = tu104_bar_bar1_fini, .bar1.fini = tu102_bar_bar1_fini,
.bar1.wait = tu104_bar_bar1_wait, .bar1.wait = tu102_bar_bar1_wait,
.bar1.vmm = gf100_bar_bar1_vmm, .bar1.vmm = gf100_bar_bar1_vmm,
.bar2.init = tu104_bar_bar2_init, .bar2.init = tu102_bar_bar2_init,
.bar2.fini = tu104_bar_bar2_fini, .bar2.fini = tu102_bar_bar2_fini,
.bar2.wait = tu104_bar_bar2_wait, .bar2.wait = tu102_bar_bar2_wait,
.bar2.vmm = gf100_bar_bar2_vmm, .bar2.vmm = gf100_bar_bar2_vmm,
.flush = g84_bar_flush, .flush = g84_bar_flush,
}; };
int int
tu104_bar_new(struct nvkm_device *device, int index, struct nvkm_bar **pbar) tu102_bar_new(struct nvkm_device *device, int index, struct nvkm_bar **pbar)
{ {
return gf100_bar_new_(&tu104_bar, device, index, pbar); return gf100_bar_new_(&tu102_bar, device, index, pbar);
} }
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