How to access PCI configure space on OpenSolaris

There is no existing generic driver for a PCI device. But there're tools
that you can use to peek/poke your PCI device.

1. /usr/X11/bin/scanpci -v can be used to iterate through the PCI device
tree and dump the important registers in the config space.

2. From the console, kmdb -K, then ::rdpcicfg and ::wrpcicfg can be used
to read/write any register in the config space of any PCI device.

3. prtconf -vp will show the device tree that enumerated during boot. The
pci device tree is a subset of it.
 
4. Another useful tool is "/usr/sbin/pcitool" in OpenSolaris, which enable
you to access PCI device configure space, I/O space through a simple
CLI, see pcitool(1M).

IIRC pcitool requires the package named SUNWiotu which is "Sun internal
use only". It's not in /usr/sbin/ by default.
Yes we can send the CLI to Gregg. It will work but it's not supported
officially. It is labled "use at your own risk".
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值