0001
0002
0003 #ifndef _SBUSLIB_H
0004 #define _SBUSLIB_H
0005
0006 struct sbus_mmap_map {
0007 unsigned long voff;
0008 unsigned long poff;
0009 unsigned long size;
0010 };
0011
0012 #define SBUS_MMAP_FBSIZE(n) (-n)
0013 #define SBUS_MMAP_EMPTY 0x80000000
0014
0015 extern void sbusfb_fill_var(struct fb_var_screeninfo *var,
0016 struct device_node *dp, int bpp);
0017 struct vm_area_struct;
0018 extern int sbusfb_mmap_helper(struct sbus_mmap_map *map,
0019 unsigned long physbase, unsigned long fbsize,
0020 unsigned long iospace,
0021 struct vm_area_struct *vma);
0022 int sbusfb_ioctl_helper(unsigned long cmd, unsigned long arg,
0023 struct fb_info *info,
0024 int type, int fb_depth, unsigned long fb_size);
0025 int sbusfb_compat_ioctl(struct fb_info *info, unsigned int cmd,
0026 unsigned long arg);
0027
0028 #endif