* what's the difference between smem_start and mmio_start?
@ 2015-04-18 7:46 z f
2015-04-24 7:42 ` Sudip Mukherjee
0 siblings, 1 reply; 2+ messages in thread
From: z f @ 2015-04-18 7:46 UTC (permalink / raw)
To: linux-fbdev
what's the difference between smem_start member and mmio_start member
in struct fb_fix_screeninfo?
I have looked the fb_mmap() and cant understand its behavior:
http://lxr.free-electrons.com/source/drivers/video/fbdev/core/fbmem.c#L1413
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: what's the difference between smem_start and mmio_start?
2015-04-18 7:46 what's the difference between smem_start and mmio_start? z f
@ 2015-04-24 7:42 ` Sudip Mukherjee
0 siblings, 0 replies; 2+ messages in thread
From: Sudip Mukherjee @ 2015-04-24 7:42 UTC (permalink / raw)
To: linux-fbdev
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-04-24 7:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-18 7:46 what's the difference between smem_start and mmio_start? z f
2015-04-24 7:42 ` Sudip Mukherjee
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).