linux/drivers/gpu/drm/nouveau/include/nvif/push206e.h
Ben Skeggs d9a91300ae drm/nouveau/fbcon: convert accel_init() to new push macros
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
2020-07-24 18:50:56 +10:00

14 lines
442 B
C

#ifndef __NVIF_PUSH206E_H__
#define __NVIF_PUSH206E_H__
#include <nvif/push006c.h>
#include <nvhw/class/cl206e.h>
#define PUSH_CALL(p,o) do { \
PUSH_ASSERT(!((o) & ~0xffffffffcULL), "offset"); \
PUSH_DATA__((p), NVDEF(NV206E, DMA, OPCODE2, CALL) | \
NVVAL(NV206E, DMA, CALL_OFFSET, (o) >> 2), \
" call 0x%08x - %s", (u32)(o), __func__); \
} while(0)
#endif