QNX4 pci_find_device

Hello QNX Masters!

I’m actuall porting stuff to QNX4 and just want to ask whether somebody already made an implementation for the calls
pci_rescan_bus
pci_attach_device
pci_read_config
pci_detach_device
for the usage with Watcom10.6 in QNX4?
I know that e.g. the show_pci is as source on ftp.qnx.com but I dont want to reinvent the wheel ;)

Check the doc on CA_PCI*… There is big caveat, if a program uses these fonctions it’s stack can’t be bigger then 64K.

The most calls I can direct change to CA_PCI* but the
pci_rescan_bus
pci_attach_device
pci_read_config
pci_detach_device
pendant is not there in CA_CPI*.
Have somebody already ported these calls?

Thanks for the 64k info.

These do not exists under QNX4. You have to implement them yourself. To do something like pci_attach_device though you need some sort of driver to handle it.