'pci' program

The ‘pci’ program in RTP doesnt give as much info as ‘show_pci’ in QNX. Is
there another program under RTP I could use? Is the source to ‘show_pci’
available?


Art Hays
National Institutes of Health
avhays@nih.gov

“Art Hays” <avhays@nih.gov> wrote in news:a6n3gv$rbo$1@inn.qnx.com:

The ‘pci’ program in RTP doesnt give as much info as ‘show_pci’ in QNX.
Is there another program under RTP I could use? Is the source to
‘show_pci’ available?

Try pci -vvvv , that should give you more information :slight_smile:

\

Cheers,
Adam

QNX Software Systems Ltd.
[ amallory@qnx.com ]

With a PC, I always felt limited by the software available.
On Unix, I am limited only by my knowledge.
–Peter J. Schoenster <pschon@baste.magibox.net>

“Adam Mallory” <amallory@qnx.com> wrote in message
news:Xns91D06A013AB98amalloryqnxcom@209.226.137.4

“Art Hays” <> avhays@nih.gov> > wrote in news:a6n3gv$rbo$> 1@inn.qnx.com> :

The ‘pci’ program in RTP doesnt give as much info as ‘show_pci’ in QNX.
Is there another program under RTP I could use? Is the source to
‘show_pci’ available?

Try pci -vvvv , that should give you more information > :slight_smile:

Yes, this helps. However it still doesn’t print the slot descriptions and routing info
at the end like ‘show_pci’ does.




Cheers,
Adam

QNX Software Systems Ltd.
[ > amallory@qnx.com > ]

With a PC, I always felt limited by the software available.
On Unix, I am limited only by my knowledge.
–Peter J. Schoenster <> pschon@baste.magibox.net

Previously, Art Hays wrote in qdn.public.qnxrtp.applications:

“Adam Mallory” <> amallory@qnx.com> > wrote in message
news:Xns91D06A013AB98amalloryqnxcom@209.226.137.4
“Art Hays” <> avhays@nih.gov> > wrote in news:a6n3gv$rbo$> 1@inn.qnx.com> :

The ‘pci’ program in RTP doesnt give as much info as ‘show_pci’ in QNX.
Is there another program under RTP I could use? Is the source to
‘show_pci’ available?

Try pci -vvvv , that should give you more information > :slight_smile:



Yes, this helps. However it still doesn’t print the slot descriptions and routing info
at the end like ‘show_pci’ does.

It doesn’t do this, as the pci utility runs on multiple platforms under
QNX6 and most of these platforms don’t have the information. Only X86
bios machines have this information.


Cheers,
Adam

QNX Software Systems Ltd.
[ > amallory@qnx.com > ]

With a PC, I always felt limited by the software available.
On Unix, I am limited only by my knowledge.
–Peter J. Schoenster <> pschon@baste.magibox.net

“Hugh Brown” <hsbrown@qnx.com> wrote in message
news:Voyager.020315081419.25947B@node90.ott.qnx.com

Previously, Art Hays wrote in qdn.public.qnxrtp.applications:

“Adam Mallory” <> amallory@qnx.com> > wrote in message
news:Xns91D06A013AB98amalloryqnxcom@209.226.137.4
“Art Hays” <> avhays@nih.gov> > wrote in news:a6n3gv$rbo$> 1@inn.qnx.com> :

The ‘pci’ program in RTP doesnt give as much info as ‘show_pci’ in QNX.
Is there another program under RTP I could use? Is the source to
‘show_pci’ available?

Try pci -vvvv , that should give you more information > :slight_smile:


Yes, this helps. However it still doesn’t print the slot descriptions and routing
info
at the end like ‘show_pci’ does.


It doesn’t do this, as the pci utility runs on multiple platforms under
QNX6 and most of these platforms don’t have the information. Only X86
bios machines have this information.

Could the utility determine it’s platform and then include useful platform-specific info?
(Also I would love to have the
equivalent of the old ‘sin irq’, which is probably also platform specific I guess).
This info is helpful to optimize interrupt selection and slot selection in the shared and
chained, level sensitive
world of the PCI bus on PC’s.

“Hugh Brown” <hsbrown@qnx.com> wrote in message
news:Voyager.020315081419.25947B@node90.ott.qnx.com

Previously, Art Hays wrote in qdn.public.qnxrtp.applications:

“Adam Mallory” <> amallory@qnx.com> > wrote in message
news:Xns91D06A013AB98amalloryqnxcom@209.226.137.4
Yes, this helps. However it still doesn’t print the slot descriptions
and routing info
at the end like ‘show_pci’ does.


It doesn’t do this, as the pci utility runs on multiple platforms under
QNX6 and most of these platforms don’t have the information. Only X86
bios machines have this information.

Damn!

If only there was something like an ‘if()’ statement that could print
additional information only IF it were available.

In a diagnostic utility I would always choose to err on the side of
verbosity.


Bill Caroselli – 1(626) 824-7983
Q-TPS Consulting
QTPS@EarthLink.net

“Bill Caroselli” <qtps@earthlink.net> wrote in
news:a77m3n$q1b$1@inn.qnx.com:

It doesn’t do this, as the pci utility runs on multiple platforms under
QNX6 and most of these platforms don’t have the information. Only X86
bios machines have this information.


Damn!

If only there was something like an ‘if()’ statement that could print
additional information only IF it were available.

Sure in theory everything is simple.

switch (type)
{
case PPC: …
case x86: …
}

except it’s not that simple. There are so many variants of boards/hardware
it would be more like:

switch (type)
{
case PPCMTX600:
case PPC405:
case PPCMCP750:
case PPC

case i386:
case i486: new features
case i586: new features (free running counter)

}

Well you see where I’m going… if()'s for each platform is nice in concept
but ugly and hard to test (since there are sooo many code paths)
effectively.

Another issue is that we can’t anticipate what a custom board is going to
have, and poking at things willly nilly causes some boards/hardware to
respond in a manner that is hard to debug (ie. freeze, because the bus has
entered an illegal state due to undocumented hardware “feature”).

In a diagnostic utility I would always choose to err on the side of
verbosity.

There is only one thing worse than lack of information, and that is wrong
information. Just my $0.02.

\

Cheers,
Adam

QNX Software Systems Ltd.
[ amallory@qnx.com ]

With a PC, I always felt limited by the software available.
On Unix, I am limited only by my knowledge.
–Peter J. Schoenster <pschon@baste.magibox.net>