pci attach failed in QNXRTP!

Hi,

I have a serial port PC Card with 4 serial ports. I wrote the drive in
QNX4 for both COM1 and the PC Card. It works for both. However, when I
transfer the driver from QNX4 to Neutron, COM1 works well while PC Card
do not work. Using the command PIN, I got the address is 0x200 and IRQ
5. I use this address and IRQ to initialize the register of UART. The
problem is that the PC CARD do not have interrupt response. Even in the
ISR Handler, a simple count does not work. When I reset the PC Card
service with devp-pccard by “slay devp-pccard” and “devp-pccard -v -i7”,

the IRQ is still 5 and with information “pci attach failed”. I do not
know whether the “pci attach failed” is the reason that interrupt do not

response.

Best regards!

YUNCHUN YANG

This may be a little late but I suspect you may be seeing a problem
I have also seen now under RTP.

Its not so much a “problem” as a design philosphy.
Under QNX4, the access to PCI devices was simply
by bashing on the registers just like in years past.
Everyone could get access and mess with them.

Under RTP, the PCI-BIOS program tries to manage
who has access to each device. So, when trying to
manually mangle some registers on a MediaGX
VGA controller, I was unable to actually get to
the registers because Photon/devg already had opened
and attached to the VGA controller in a non-shared
mode. End result, QNX’s protection mechanisms
would not allow me to get to it as long as devg-mediagx
was running. I eventually got around it by accessing
the MediaGX’s registers through a bit of a hack
workaround (via a relatively undocumented set of
locations in memory the MediaGX indirectly maps to).

Have you tried slaying “dev-ser” and seeing if your
driver works then?

“Yang, Yunchun” <yyang@ee.ucr.edu> wrote in message
news:3A78B40A.4EDDF4CB@ee.ucr.edu

Hi,

I have a serial port PC Card with 4 serial ports. I wrote the drive in
QNX4 for both COM1 and the PC Card. It works for both. However, when I
transfer the driver from QNX4 to Neutron, COM1 works well while PC Card
do not work. Using the command PIN, I got the address is 0x200 and IRQ
5. I use this address and IRQ to initialize the register of UART. The
problem is that the PC CARD do not have interrupt response. Even in the
ISR Handler, a simple count does not work. When I reset the PC Card
service with devp-pccard by “slay devp-pccard” and “devp-pccard -v -i7”,

the IRQ is still 5 and with information “pci attach failed”. I do not
know whether the “pci attach failed” is the reason that interrupt do not

response.

Best regards!

YUNCHUN YANG