Skip to content
Snippets Groups Projects
Commit bbe08a0e authored by Danilo Krummrich's avatar Danilo Krummrich
Browse files

drm/nouveau: chan: use channel class definitions


Use channel class definitions instead of magic numbers.

Reviewed-by: default avatarDave Airlie <airlied@redhat.com>
Reviewed-by: default avatarLyude Paul <lyude@redhat.com>
Signed-off-by: default avatarDanilo Krummrich <dakr@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231002135008.10651-2-dakr@redhat.com
parent 152be542
No related branches found
No related tags found
No related merge requests found
...@@ -440,9 +440,11 @@ nouveau_channel_init(struct nouveau_channel *chan, u32 vram, u32 gart) ...@@ -440,9 +440,11 @@ nouveau_channel_init(struct nouveau_channel *chan, u32 vram, u32 gart)
} }
/* initialise dma tracking parameters */ /* initialise dma tracking parameters */
switch (chan->user.oclass & 0x00ff) { switch (chan->user.oclass) {
case 0x006b: case NV03_CHANNEL_DMA:
case 0x006e: case NV10_CHANNEL_DMA:
case NV17_CHANNEL_DMA:
case NV40_CHANNEL_DMA:
chan->user_put = 0x40; chan->user_put = 0x40;
chan->user_get = 0x44; chan->user_get = 0x44;
chan->dma.max = (0x10000 / 4) - 2; chan->dma.max = (0x10000 / 4) - 2;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment