matroxfb_crtc2.h
上传用户:lgb322
上传日期:2013-02-24
资源大小:30529k
文件大小:1k
源码类别:

嵌入式Linux

开发平台:

Unix_Linux

  1. #ifndef __MATROXFB_CRTC2_H__
  2. #define __MATROXFB_CRTC2_H__
  3. #include <linux/ioctl.h>
  4. #include <linux/i2c.h>
  5. #include <linux/i2c-algo-bit.h>
  6. #include "matroxfb_base.h"
  7. struct matroxfb_dh_fb_info {
  8. struct fb_info fbcon;
  9. int fbcon_registered;
  10. struct matrox_fb_info* primary_dev;
  11. struct {
  12. unsigned long base; /* physical */
  13. vaddr_t vbase; /* virtual */
  14. unsigned int len;
  15. unsigned int len_usable;
  16. unsigned int len_maximum;
  17. unsigned int  offbase;
  18. unsigned int borrowed;
  19.       } video;
  20. struct {
  21. unsigned long base;
  22. vaddr_t vbase;
  23. unsigned int len;
  24.       } mmio;
  25. int currcon;
  26. struct display* currcon_display;
  27. union {
  28. #ifdef FBCON_HAS_CFB16
  29. u_int16_t cfb16[16];
  30. #endif
  31. #ifdef FBCON_HAS_CFB32
  32. u_int32_t cfb32[16];
  33. #endif
  34. } cmap;
  35. struct { unsigned red, green, blue, transp; } palette[16];
  36. };
  37. #endif /* __MATROXFB_CRTC2_H__ */