On Sat, Apr 18, 2015 at 03:46:48PM +0800, z f wrote: > what's the difference between smem_start member and mmio_start member > in struct fb_fix_screeninfo? let me try, but I am not sure that I am fully correct. smem_start gives you the starting address where your framebuffer memory starts. mmio_start will give you the memory address from where you can access memory mapped io ports. I dont think that all the hardware will follow the same location rules. like, if you consider the driver that I have in staging/sm7xxfb, the memory map is like: ________________________________ 0MB | | | display memory | | | | | |_______________________________| 4MB | | |_______________________________| 5MB | | | memory mapped io port | | | |_______________________________| so here I have: smem_start = pci_resource_start (pdev, 0); mmio_start = smem_start + 4MB but if you see the radeon driver you will see thay have smem_start = pci_resource_start (pdev, 0); and mmio_start = pci_resource_start (pdev, 2); regards sudip -- To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html