rt_lcd.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #ifndef RT_LCD_H__
  2. #define RT_LCD_H__
  3. /* ioctls
  4. 0x46 is 'F' */
  5. #define FBIOGET_VSCREENINFO 0x4600
  6. #define FBIOPUT_VSCREENINFO 0x4601
  7. #define FBIOGET_FSCREENINFO 0x4602
  8. #define FBIOGETCMAP 0x4604
  9. #define FBIOPUTCMAP 0x4605
  10. #define FBIOPAN_DISPLAY 0x4606
  11. #define FBIO_CURSOR 0x4608
  12. /* #define FBIOGET_MONITORSPEC 0x460C */
  13. /* #define FBIOPUT_MONITORSPEC 0x460D */
  14. /* #define FBIOSWITCH_MONIBIT 0x460E */
  15. #define FBIOGET_CON2FBMAP 0x460F
  16. #define FBIOPUT_CON2FBMAP 0x4610
  17. #define FBIOBLANK 0x4611 /* arg: 0 or vesa level + 1 */
  18. #define FBIOGET_VBLANK 0x4612
  19. #define FBIO_ALLOC 0x4613
  20. #define FBIO_FREE 0x4614
  21. #define FBIOGET_GLYPH 0x4615
  22. #define FBIOGET_HWCINFO 0x4616
  23. #define FBIOPUT_MODEINFO 0x4617
  24. #define FBIOGET_DISPINFO 0x4618
  25. #define FBIO_WAITFORVSYNC 0x4620
  26. struct fb_bitfield
  27. {
  28. uint32_t offset; /* beginning of bitfield */
  29. uint32_t length; /* length of bitfield */
  30. uint32_t msb_right; /* != 0 : Most significant bit is */
  31. /* right */
  32. };
  33. struct fb_var_screeninfo
  34. {
  35. uint32_t xres;
  36. uint32_t yres;
  37. uint32_t bits_per_pixel;
  38. struct fb_bitfield red; /* bitfield in fb mem if true color, */
  39. struct fb_bitfield green; /* else only length is significant */
  40. struct fb_bitfield blue;
  41. struct fb_bitfield transp; /* transparency */
  42. };
  43. struct fb_fix_screeninfo
  44. {
  45. char id[16];
  46. unsigned long smem_start;
  47. uint32_t smem_len;
  48. uint32_t line_length;
  49. };
  50. #endif