nv04.h 535 B

1234567891011121314151617181920212223
  1. #ifndef __NV04_FIFO_H__
  2. #define __NV04_FIFO_H__
  3. #define nv04_fifo(p) container_of((p), struct nv04_fifo, base)
  4. #include "priv.h"
  5. struct nv04_fifo_ramfc {
  6. unsigned bits:6;
  7. unsigned ctxs:5;
  8. unsigned ctxp:8;
  9. unsigned regs:5;
  10. unsigned regp;
  11. };
  12. struct nv04_fifo {
  13. struct nvkm_fifo base;
  14. const struct nv04_fifo_ramfc *ramfc;
  15. };
  16. int nv04_fifo_new_(const struct nvkm_fifo_func *, struct nvkm_device *,
  17. int index, int nr, const struct nv04_fifo_ramfc *,
  18. struct nvkm_fifo **);
  19. void nv04_fifo_init(struct nvkm_fifo *);
  20. #endif