nv50.h 496 B

123456789101112131415161718192021
  1. #ifndef __NVKM_FB_NV50_H__
  2. #define __NVKM_FB_NV50_H__
  3. #define nv50_fb(p) container_of((p), struct nv50_fb, base)
  4. #include "priv.h"
  5. struct nv50_fb {
  6. const struct nv50_fb_func *func;
  7. struct nvkm_fb base;
  8. struct page *r100c08_page;
  9. dma_addr_t r100c08;
  10. };
  11. struct nv50_fb_func {
  12. int (*ram_new)(struct nvkm_fb *, struct nvkm_ram **);
  13. u32 trap;
  14. };
  15. int nv50_fb_new_(const struct nv50_fb_func *, struct nvkm_device *, int index,
  16. struct nvkm_fb **pfb);
  17. extern int nv50_fb_memtype[0x80];
  18. #endif