Linux – How do I find the memory map for a device?

How do I find the memory map for a device?… here is a solution to the problem.

How do I find the memory map for a device?

I’m wondering where I should search for board-specific packages in the linux source code, and more clearly, memory mapping for different devices.

I’m browsing links: http://lxr.linux.no

Thanks

Solution

If it’s a PCI device, lspci -vvv will tell you.

You can also check /proc/iomem and /proc/ioport separately for memory and port mappings.

Related Problems and Solutions