xref: /kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/include/nvif/pushc37b.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/include/nvif/
18c2ecf20Sopenharmony_ci#ifndef __NVIF_PUSHC37B_H__
28c2ecf20Sopenharmony_ci#define __NVIF_PUSHC37B_H__
38c2ecf20Sopenharmony_ci#include <nvif/push.h>
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci#include <nvhw/class/clc37b.h>
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci#define PUSH_HDR(p,m,c) do {                                                    \
88c2ecf20Sopenharmony_ci        PUSH_ASSERT(!((m) & ~DRF_SMASK(NVC37B_DMA_METHOD_OFFSET)), "mthd");     \
98c2ecf20Sopenharmony_ci        PUSH_ASSERT(!((c) & ~DRF_MASK(NVC37B_DMA_METHOD_COUNT)), "size");       \
108c2ecf20Sopenharmony_ci        PUSH_DATA__((p), NVDEF(NVC37B, DMA, OPCODE, METHOD) |                   \
118c2ecf20Sopenharmony_ci			 NVVAL(NVC37B, DMA, METHOD_COUNT, (c)) |                \
128c2ecf20Sopenharmony_ci			 NVVAL(NVC37B, DMA, METHOD_OFFSET, (m) >> 2),           \
138c2ecf20Sopenharmony_ci		    " mthd 0x%04x size %d - %s", (u32)(m), (u32)(c), __func__); \
148c2ecf20Sopenharmony_ci} while(0)
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ci#define PUSH_MTHD_HDR(p,s,m,c) PUSH_HDR(p,m,c)
178c2ecf20Sopenharmony_ci#define PUSH_MTHD_INC 4:4
188c2ecf20Sopenharmony_ci#endif
19

Indexes created Thu Nov 07 10:32:03 CST 2024