mbxfb.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #ifndef __MBX_FB_H
  2. #define __MBX_FB_H
  3. #include <asm/ioctl.h>
  4. #include <asm/types.h>
  5. struct mbxfb_val {
  6. unsigned int defval;
  7. unsigned int min;
  8. unsigned int max;
  9. };
  10. struct fb_info;
  11. struct mbxfb_platform_data {
  12. /* Screen info */
  13. struct mbxfb_val xres;
  14. struct mbxfb_val yres;
  15. struct mbxfb_val bpp;
  16. /* Memory info */
  17. unsigned long memsize; /* if 0 use ODFB? */
  18. unsigned long timings1;
  19. unsigned long timings2;
  20. unsigned long timings3;
  21. int (*probe)(struct fb_info *fb);
  22. int (*remove)(struct fb_info *fb);
  23. };
  24. /* planar */
  25. #define MBXFB_FMT_YUV12 0
  26. /* packed */
  27. #define MBXFB_FMT_UY0VY1 1
  28. #define MBXFB_FMT_VY0UY1 2
  29. #define MBXFB_FMT_Y0UY1V 3
  30. #define MBXFB_FMT_Y0VY1U 4
  31. struct mbxfb_overlaySetup {
  32. __u32 enable;
  33. __u32 x, y;
  34. __u32 width, height;
  35. __u32 alpha;
  36. __u32 fmt;
  37. __u32 mem_offset;
  38. __u32 scaled_width;
  39. __u32 scaled_height;
  40. /* Filled by the driver */
  41. __u32 U_offset;
  42. __u32 V_offset;
  43. __u16 Y_stride;
  44. __u16 UV_stride;
  45. };
  46. #define MBXFB_IOCX_OVERLAY _IOWR(0xF4, 0x00,struct mbxfb_overlaySetup)
  47. #endif /* __MBX_FB_H */