如何查找设备的内存映射? [英] How to find the memory map of a device?

查看:99
本文介绍了如何查找设备的内存映射?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道我应该在linux源代码中的哪里搜索找到特定于主板的软件包,更清楚地是不同设备的内存映射.

I would like to know where in the linux source code should i search for finding the board specific packages, more clearly, the memory map of different devices.

我正在浏览链接: http://lxr.linux.no

谢谢

推荐答案

如果它是PCI设备,则lspci -vvv将显示给您.

If it's a PCI device, lspci -vvv will show you.

您还可以分别检查/proc/iomem和/proc/ioport的内存和端口映射.

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

这篇关于如何查找设备的内存映射?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆