sbuslib.h 787 B

1234567891011121314151617181920212223242526
  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, int prom_node, int bpp);
  12. struct vm_area_struct;
  13. extern int sbusfb_mmap_helper(struct sbus_mmap_map *map,
  14. unsigned long physbase, unsigned long fbsize,
  15. unsigned long iospace,
  16. struct vm_area_struct *vma);
  17. int sbusfb_ioctl_helper(unsigned long cmd, unsigned long arg,
  18. struct fb_info *info,
  19. int type, int fb_depth, unsigned long fb_size);
  20. int sbusfb_compat_ioctl(struct fb_info *info, unsigned int cmd,
  21. unsigned long arg);
  22. #endif /* _SBUSLIB_H */