Vincent Wang wrote:
>
>>> Then I'd suggest using /usr/sbin/pcitool to dump the Configuration
>>> Space of both the CardBus bridge and its parent.
>>>
>>
>> Unfortunately, this is in SUNWiotu and thus only available inside
>> Sun: fine
>> for Eric, but not for the rest of us ;-)
>>
>>
>>
> Yes it's not for customers. I knew Eric is inside; I was trying to
> find out the cause of this specific problem.
>
> For the rest of the world, at least the kmdb dmcd ::rdpcicfg and
> ::wrpcicfg are available for manipulating pci config spaces. And I
> know someone has ported "lspci" to Solaris.
>
> Finally, as this is Open Solaris, you can surely develop a customized
> tool. It's not that difficult, just a driver and a userland app can do
> the trick.
As I've already said, if all you need is access to PCI identification
registers, then the data is already present in the device tree. So you
don't need a driver at all. (You might have to walk thru the prom tree
instead of the normal tree, but that is also pretty darn easy.)
Heck, I can supply a bit of code to do the work if nobody else wants to
-- it can't take more than few dozen lines of code. (I've written
device tree walking code before -- and in fact one of my tools in the
afe driver set -- etherdiag -- contains code to walk thru the device
tree looking for compatible devices. Similar tree walking code is
available in ifconfig, though in ifconfig's case it depends on a driver
being present.)
-- Garrett
>
> Vincent.
> _______________________________________________
> laptop-discuss mailing list
> laptop-discuss at opensolaris.org
--
Garrett D'Amore, Principal Software Engineer
Tadpole Computer / Computing Technologies Division,
General Dynamics C4 Systems
http://www.tadpolecomputer.com/
Phone: 951 325-2134 Fax: 951 325-2191