资源预览内容
第1页 / 共26页
第2页 / 共26页
第3页 / 共26页
第4页 / 共26页
第5页 / 共26页
第6页 / 共26页
第7页 / 共26页
第8页 / 共26页
第9页 / 共26页
第10页 / 共26页
亲,该文档总共26页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述
fb_var_screeninfo:记录了帧缓冲设备和指定显示模式的可修改记录。包括屏幕的分辨率,像素信息和一些时序变量struct fb_var_screeninfo _u32 xres; /* 行像素数 */_u32 yres; /* 列像素数 */_u32 xres_virtual; /* virtual resolution */_u32 yres_virtual;_u32 xoffset; /* offset from virtual to visible */_u32 yoffset; /* resolution */_u32 bits_per_pixel; /*每个像素的位数 */_u32 grayscale; /* != 0 Graylevels instead of colors */struct fb_bitfield red; /* bitfield in fb mem if true color, */struct fb_bitfield green;/* else only length is significant */struct fb_bitfield blue;struct fb_bitfield transp;/* transparency */_u32 nonstd; /* != 0 Non standard pixel format */_u32 activate; /* see FB_ACTIVATE_* */_u32 height; /* height of picture in mm */_u32 width; /* width of picture in mm */_u32 accel_flags; /* acceleration flags (hints) */* Timing: All values in pixclocks, except pixclock (of course) */_u32 pixclock; /* pixel clock in ps (pico seconds) */_u32 left_margin; /* time from sync to picture */_u32 right_margin; /* time from picture to sync */_u32 upper_margin; /* time from sync to picture */_u32 lower_margin;_u32 hsync_len; /* length of horizontal sync */_u32 vsync_len; /* length of vertical sync */_u32 sync; /* see FB_SYNC_* */_u32 vmode; /* see FB_VMODE_* */_u32 reserved6; /* Reserved for future compatibility */;1. struct fb_var_screeninfo 2. _u32 xres; /* visible resolution */ 3. _u32 yres; 4. _u32 xres_virtual; /* virtual resolution */ 5. _u32 yres_virtual; 6. _u32 xoffset; /* offset from virtual to visible */ 7. _u32 yoffset; /* resolution */ 8. 9. _u32 bits_per_pixel; /* guess what */ 10. _u32 grayscale; /* != 0 Graylevels instead of colors */ 11. 12. struct fb_bitfield red; /* bitfield in fb mem if true color, */ 13. struct fb_bitfield green; /* else only length is significant */ 14. struct fb_bitfield blue; 15. struct fb_bitfield transp; /* transparency */ 16. 17. _u32 nonstd; /* != 0 Non standard pixel format */ 18. 19. _u32 activate; /* see FB_ACTIVATE_* */ 20. 21. _u32 height; /* height of picture in mm */ 22. _u32 width; /* width of picture in mm */ 23. 24. _u32 accel_flags; /* (OBSOLETE) see fb_info.flags */ 25. 26. /* Timing: All values in pixclocks, except pixclock (of course) */ 27. _u32 pixclock; /* pixel clock in ps (pico seconds) */ 28. _u32 left_margin; /* time from sync to picture */ 29. _u32 right_margin; /* time from picture to sync */ 30. _u32 upper_margin; /* time from sync to picture */ 31. _u32 lower_margin; 32. _u32 hsync_len; /* length of horizontal sync */ 33. _u32 vsync_len; /* length of vertical sync */ 34. _u32 sync; /* see FB_SYNC_* */ 35. _u32 vmode; /* see FB_VMODE_* */ 36. _u32 rotate; /* angle we rotate counter clockwise */ 37. _u32 reserved5; /* Reserved for future compatibility */ 38. ; fb_fix_screeninfo:记录了帧缓冲设备和指定显示模式的不可修改记录。包含了屏幕缓冲区的物理地址和长度。struct fb_fix_screeninfo char id16; /* identification string eg TT Builtin */unsigned long smem_start; /* Start of frame buffer mem */* (physical address) */_u32 smem_len; /* Length of frame buffer mem */_u32 type; /* see FB_TYPE_* */_u32 type_aux; /* Interleave for interleaved Planes */_u32 visual; /* see FB_VISUAL_* */ _u16 xpanstep; /* zero if no hardware panning */_u16 ypanstep; /* zero if no hardware panning */_u16 ywrapstep; /* zero if no hardware ywrap */_u32 line_length; /* length of a line in bytes */unsigned long mmio_start; /* Start of Memory Mapped I/O */* (physical address) */_u32 mmio_len; /* Length of Memory Mapped I/O */_u32 accel; /* Type of acceleration available */_u16 reserved3; /* Reserved for future compatibility */;1. struct fb_fix_screeninfo 2. char id16; /* identification string eg TT Builtin */ 3. unsigned long smem_start; /* Start of frame buffer mem */ 4. /* (physical address) */ 5. _u32 smem_len; /* Length of frame buffer mem */ 6. _u32 type; /* see FB_TYPE_* */ 7. _u32 type_aux; /* Interleave for interleaved Planes */ 8. _u32 visual; /* see FB_VISUAL_* */ 9. _u16 xpanstep; /* zero if no hardware panning */ 10. _u16 ypanstep; /* zero if no hardware panning */ 11. _u16 ywrapstep; /* zero if no hardware ywrap */ 12. _u32 line_length; /* length of a line in bytes */ 13. unsigned long mmio_start; /* Start of Memory Mapped I/O */ 14. /* (physical address) */ 15. _u32 mmio_len; /* Length of Memory Mapped I/O */ 16. _u32 accel; /
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号