Set PCI IRQ

Hi,

I have an IRIG PCI card with some source code to talk to the card.

The card needs to be configured to generate interrupts on IRQ 3 (because of
interrupt priorities). How do I configure the PCI stuff so that IRQ 3 is
assigned to this card?

I can read the IRQ that the card wants to use. Is there a way to tell the
card which interrupt to use?

TIA

Augie

Augie Henriques <augiehenriques@hotmail.com> wrote:

Hi,

I have an IRIG PCI card with some source code to talk to the card.

The card needs to be configured to generate interrupts on IRQ 3 (because of
interrupt priorities). How do I configure the PCI stuff so that IRQ 3 is
assigned to this card?

You know that the Proc32 -i option can be used to change which irq is
highest priority under QNX4, right?

Unless you don’t have a serial port on irq 3, sharing with the (usually
ISA) serial port is not a good idea.

I can read the IRQ that the card wants to use. Is there a way to tell the
card which interrupt to use?

Usually there is – you’d use the _CA_PCI_Write() function(s) to change
this configuration – but exactly what bytes to hit will probably depend
on your card. You may be able to just hit the same place as the read,
or you may have to write somewhere else. In general, I think, this
is card dependent, and should be in the programmer’s docs for the card.

-David

QNX Training Services
dagibbs@qnx.com

“David Gibbs” <dagibbs@qnx.com> wrote in message
news:9mlvs3$dd4$2@nntp.qnx.com

Augie Henriques <> augiehenriques@hotmail.com> > wrote:
Hi,

I have an IRIG PCI card with some source code to talk to the card.

The card needs to be configured to generate interrupts on IRQ 3 (because
of
interrupt priorities). How do I configure the PCI stuff so that IRQ 3
is
assigned to this card?

You know that the Proc32 -i option can be used to change which irq is
highest priority under QNX4, right?

Yes, but we don’t want to change IRQ priorities.

Unless you don’t have a serial port on irq 3, sharing with the (usually
ISA) serial port is not a good idea.

We always disable the serial port. IRQ 3 is always for our system
frequency.

I can read the IRQ that the card wants to use. Is there a way to tell
the
card which interrupt to use?

Usually there is – you’d use the _CA_PCI_Write() function(s) to change
this configuration – but exactly what bytes to hit will probably depend
on your card. You may be able to just hit the same place as the read,
or you may have to write somewhere else. In general, I think, this
is card dependent, and should be in the programmer’s docs for the card.

This is what I needed to know. I will give it a try.

TIA

Augie

-David

QNX Training Services
dagibbs@qnx.com