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".
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".