Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c97f8c92 authored by Ben Skeggs's avatar Ben Skeggs
Browse files

drm/nouveau/fifo: use defines instead of hardcoded class ids



Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 1971f04e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -247,7 +247,7 @@ nv04_fifo_ofuncs = {

static struct nouveau_oclass
nv04_fifo_sclass[] = {
	{ 0x006b, &nv04_fifo_ofuncs },
	{ NV03_CHANNEL_DMA_CLASS, &nv04_fifo_ofuncs },
	{}
};

+1 −1
Original line number Diff line number Diff line
@@ -106,7 +106,7 @@ nv10_fifo_ofuncs = {

static struct nouveau_oclass
nv10_fifo_sclass[] = {
	{ 0x006e, &nv10_fifo_ofuncs },
	{ NV10_CHANNEL_DMA_CLASS, &nv10_fifo_ofuncs },
	{}
};

+1 −1
Original line number Diff line number Diff line
@@ -113,7 +113,7 @@ nv17_fifo_ofuncs = {

static struct nouveau_oclass
nv17_fifo_sclass[] = {
	{ 0x176e, &nv17_fifo_ofuncs },
	{ NV17_CHANNEL_DMA_CLASS, &nv17_fifo_ofuncs },
	{}
};

+1 −1
Original line number Diff line number Diff line
@@ -232,7 +232,7 @@ nv40_fifo_ofuncs = {

static struct nouveau_oclass
nv40_fifo_sclass[] = {
	{ 0x406e, &nv40_fifo_ofuncs },
	{ NV40_CHANNEL_DMA_CLASS, &nv40_fifo_ofuncs },
	{}
};

+2 −2
Original line number Diff line number Diff line
@@ -346,8 +346,8 @@ nv50_fifo_ofuncs_ind = {

static struct nouveau_oclass
nv50_fifo_sclass[] = {
	{ 0x506e, &nv50_fifo_ofuncs_dma },
	{ 0x506f, &nv50_fifo_ofuncs_ind },
	{ NV50_CHANNEL_DMA_CLASS, &nv50_fifo_ofuncs_dma },
	{ NV50_CHANNEL_IND_CLASS, &nv50_fifo_ofuncs_ind },
	{}
};

Loading