PCI card Driver developping

hello,
i m developping a Driver Programm for a PCI FireWire card. the Driver just
have some minimal features such as

  • send and receive isochronous and asynchronous data,
  • handle Interrupt by starting some Callback functions.
    An Application programm uses the Driver to communicate with an external
    FireWire node.
    My Problem is the following:
    The driver and the Application work very well on a first Developping
    Computer. when i try to let the driver work on another computer, QNX shuts
    down, while the driver is trying to initialise some OCHI register. On a
    third computer the driver is running (OHCI Initialisation ok), but the
    collaboration with the Application fails and QNX shuts down again.

Can somebody please give me an explanation to this phenomenon?
I thank you in advance.
Dadji.

Do they use different PCI chipsets? Post output of “pci -v” here …

“dadji” <ydadji@hotmail.com> wrote in message
news:dfpggf$h8c$1@inn.qnx.com

hello,
i m developping a Driver Programm for a PCI FireWire card. the Driver just
have some minimal features such as

  • send and receive isochronous and asynchronous data,
  • handle Interrupt by starting some Callback functions.
    An Application programm uses the Driver to communicate with an external
    FireWire node.
    My Problem is the following:
    The driver and the Application work very well on a first Developping
    Computer. when i try to let the driver work on another computer, QNX shuts
    down, while the driver is trying to initialise some OCHI register. On a
    third computer the driver is running (OHCI Initialisation ok), but the
    collaboration with the Application fails and QNX shuts down again.

Can somebody please give me an explanation to this phenomenon?
I thank you in advance.
Dadji.

They use the same PCI chipset. I just remove the card from one PC (where the
driver is working very well) an insert it in a second PC and try to run the
Driver again. The second PC shuts down while the driver is trying to
initialise some OCHI register. Does somebody have any suggestion to help me?
Thanks
Dadji.
“Igor Kovalenko” <kovalenko@comcast.net> schrieb im Newsbeitrag
news:dfq4dl$21g$1@inn.qnx.com

Do they use different PCI chipsets? Post output of “pci -v” here …

“dadji” <> ydadji@hotmail.com> > wrote in message
news:dfpggf$h8c$> 1@inn.qnx.com> …
hello,
i m developping a Driver Programm for a PCI FireWire card. the Driver
just
have some minimal features such as

  • send and receive isochronous and asynchronous data,
  • handle Interrupt by starting some Callback functions.
    An Application programm uses the Driver to communicate with an external
    FireWire node.
    My Problem is the following:
    The driver and the Application work very well on a first Developping
    Computer. when i try to let the driver work on another computer, QNX
    shuts
    down, while the driver is trying to initialise some OCHI register. On a
    third computer the driver is running (OHCI Initialisation ok), but the
    collaboration with the Application fails and QNX shuts down again.

Can somebody please give me an explanation to this phenomenon?
I thank you in advance.
Dadji.
\

“dadji” <ydadji@hotmail.com> wrote in message
news:dfs60c$ik1$1@inn.qnx.com

They use the same PCI chipset. I just remove the card from one PC (where
the
driver is working very well) an insert it in a second PC and try to run
the
Driver again. The second PC shuts down while the driver is trying to
initialise some OCHI register. Does somebody have any suggestion to help
me?

Is it possible the IRQ is shared and your code isn’t handling this well.

Thanks
Dadji.
“Igor Kovalenko” <> kovalenko@comcast.net> > schrieb im Newsbeitrag
news:dfq4dl$21g$> 1@inn.qnx.com> …
Do they use different PCI chipsets? Post output of “pci -v” here …

“dadji” <> ydadji@hotmail.com> > wrote in message
news:dfpggf$h8c$> 1@inn.qnx.com> …
hello,
i m developping a Driver Programm for a PCI FireWire card. the Driver
just
have some minimal features such as

  • send and receive isochronous and asynchronous data,
  • handle Interrupt by starting some Callback functions.
    An Application programm uses the Driver to communicate with an external
    FireWire node.
    My Problem is the following:
    The driver and the Application work very well on a first Developping
    Computer. when i try to let the driver work on another computer, QNX
    shuts
    down, while the driver is trying to initialise some OCHI register. On a
    third computer the driver is running (OHCI Initialisation ok), but the
    collaboration with the Application fails and QNX shuts down again.

Can somebody please give me an explanation to this phenomenon?
I thank you in advance.
Dadji.


\

Also try to dump the content of pci_dev_info structure after it is filled in
by pci_attach_device() and see if everything looks kosher there. It is known
to fill bogus values in certain cases (they will be not what you see from
pci -v).

– igor

“Mario Charest” postmaster@127.0.0.1 wrote in message
news:dfs6c1$iv5$1@inn.qnx.com

“dadji” <> ydadji@hotmail.com> > wrote in message
news:dfs60c$ik1$> 1@inn.qnx.com> …
They use the same PCI chipset. I just remove the card from one PC (where
the
driver is working very well) an insert it in a second PC and try to run
the
Driver again. The second PC shuts down while the driver is trying to
initialise some OCHI register. Does somebody have any suggestion to help
me?

Is it possible the IRQ is shared and your code isn’t handling this well.

Thanks
Dadji.
“Igor Kovalenko” <> kovalenko@comcast.net> > schrieb im Newsbeitrag
news:dfq4dl$21g$> 1@inn.qnx.com> …
Do they use different PCI chipsets? Post output of “pci -v” here …

“dadji” <> ydadji@hotmail.com> > wrote in message
news:dfpggf$h8c$> 1@inn.qnx.com> …
hello,
i m developping a Driver Programm for a PCI FireWire card. the Driver
just
have some minimal features such as

  • send and receive isochronous and asynchronous data,
  • handle Interrupt by starting some Callback functions.
    An Application programm uses the Driver to communicate with an
    external
    FireWire node.
    My Problem is the following:
    The driver and the Application work very well on a first Developping
    Computer. when i try to let the driver work on another computer, QNX
    shuts
    down, while the driver is trying to initialise some OCHI register. On
    a
    third computer the driver is running (OHCI Initialisation ok), but the
    collaboration with the Application fails and QNX shuts down again.

Can somebody please give me an explanation to this phenomenon?
I thank you in advance.
Dadji.




\