PCI Utils on QNX 6

bridged with qdn.public.ddk
Post Reply
Andre Goddard Rosa

PCI Utils on QNX 6

Post by Andre Goddard Rosa » Thu Oct 09, 2003 9:27 pm

Hi there!

I developed a driver (with help from some of you) for QNX4.

It is working correctly but now I need to implement it on QNX 6.

I am trying to find the device using pci_attach_device and passing the
correct DEVICE_ID
and VENDOR_ID but it returns an info result with zero´ed registers, where,
under QNX 4,
I use _CA_PCI_Read_Config_DWord() in a loop until I found the device.

So, I need to obtain the base registers from the PCI so I can read and write
on its registers.

Any help I will apreciate,

Andre Goddard
Computer Science Student at UFMG Brazil

Andre Goddard Rosa

Re: PCI Utils on QNX 6

Post by Andre Goddard Rosa » Mon Oct 13, 2003 8:39 pm

Hi, I just discovered what the problem is.

It is related with the class code of the device. QNX6 does not support
devices with an class code (068000h).

I just changed the class code to 028000h and it worked
properly (this time recognized as an network device).

Thanks,

Andre


"Andre Goddard Rosa" <goddard@audiolab.com.br> escreveu na mensagem
news:bm4iv2$1nb$1@inn.qnx.com...
Hi there!

I developed a driver (with help from some of you) for QNX4.

It is working correctly but now I need to implement it on QNX 6.

I am trying to find the device using pci_attach_device and passing the
correct DEVICE_ID
and VENDOR_ID but it returns an info result with zero´ed registers, where,
under QNX 4,
I use _CA_PCI_Read_Config_DWord() in a loop until I found the device.

So, I need to obtain the base registers from the PCI so I can read and
write
on its registers.

Any help I will apreciate,

Andre Goddard
Computer Science Student at UFMG Brazil

Post Reply

Return to “qdn.public.ddk”