pushc37b.h (722B)
1#ifndef __NVIF_PUSHC37B_H__ 2#define __NVIF_PUSHC37B_H__ 3#include <nvif/push.h> 4 5#include <nvhw/class/clc37b.h> 6 7#define PUSH_HDR(p,m,c) do { \ 8 PUSH_ASSERT(!((m) & ~DRF_SMASK(NVC37B_DMA_METHOD_OFFSET)), "mthd"); \ 9 PUSH_ASSERT(!((c) & ~DRF_MASK(NVC37B_DMA_METHOD_COUNT)), "size"); \ 10 PUSH_DATA__((p), NVDEF(NVC37B, DMA, OPCODE, METHOD) | \ 11 NVVAL(NVC37B, DMA, METHOD_COUNT, (c)) | \ 12 NVVAL(NVC37B, 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#endif