sbuslib.h 804 B

12345678910111213141516171819202122232425262728
  1. /* sbuslib.h: SBUS fb helper library interfaces */
  2. #ifndef _SBUSLIB_H
  3. #define _SBUSLIB_H
  4. struct sbus_mmap_map {
  5. unsigned long voff;
  6. unsigned long poff;
  7. unsigned long size;
  8. };
  9. #define SBUS_MMAP_FBSIZE(n) (-n)
  10. #define SBUS_MMAP_EMPTY 0x80000000
  11. extern void sbusfb_fill_var(struct fb_var_screeninfo *var,
  12. struct device_node *dp, int bpp);
  13. struct vm_area_struct;
  14. extern int sbusfb_mmap_helper(struct sbus_mmap_map *map,
  15. unsigned long physbase, unsigned long fbsize,
  16. unsigned long iospace,
  17. struct vm_area_struct *vma);
  18. int sbusfb_ioctl_helper(unsigned long cmd, unsigned long arg,
  19. struct fb_info *info,
  20. int type, int fb_depth, unsigned long fb_size);
  21. int sbusfb_compat_ioctl(struct fb_info *info, unsigned int cmd,
  22. unsigned long arg);
  23. #endif /* _SBUSLIB_H */