push507c.h (1082B)
1#ifndef __NVIF_PUSH507C_H__ 2#define __NVIF_PUSH507C_H__ 3#include <nvif/push.h> 4 5#include <nvhw/class/cl507c.h> 6 7#define PUSH_HDR(p,m,c) do { \ 8 PUSH_ASSERT(!((m) & ~DRF_SMASK(NV507C_DMA_METHOD_OFFSET)), "mthd"); \ 9 PUSH_ASSERT(!((c) & ~DRF_MASK(NV507C_DMA_METHOD_COUNT)), "size"); \ 10 PUSH_DATA__((p), NVDEF(NV507C, DMA, OPCODE, METHOD) | \ 11 NVVAL(NV507C, DMA, METHOD_COUNT, (c)) | \ 12 NVVAL(NV507C, DMA, METHOD_OFFSET, (m) >> 2), \ 13 " mthd 0x%04x size %d - %s", (u32)(m), (u32)(c), __func__); \ 14} while(0) 15 16#define PUSH_MTHD_HDR(p,s,m,c) PUSH_HDR(p,m,c) 17#define PUSH_MTHD_INC 4:4 18 19#define PUSH_JUMP(p,o) do { \ 20 PUSH_ASSERT(!((o) & ~DRF_SMASK(NV507C_DMA_JUMP_OFFSET)), "offset"); \ 21 PUSH_DATA__((p), NVDEF(NV507C, DMA, OPCODE, JUMP) | \ 22 NVVAL(NV507C, DMA, JUMP_OFFSET, (o) >> 2), \ 23 " jump 0x%08x - %s", (u32)(o), __func__); \ 24} while(0) 25#endif