which irq is in use?

I have a pc computer installed QNX neutrino6.1.0.
Now I want to add a 24 bit Digital I/O ISA board in the computer.
There is no QNX driver about the board.
The menual of i/o board tell me that it only can use IRQ level from 2 to 7.
In my computer there have been Network card,and parallel printer.
I refer the InterruptAttach(),as if there is no IRQ free for my card from
2-7,
My god.
1.how could I know that the IRQ number has been in use?
As we can see in windows-controlpanel-system.
2.if I want to program driver for the i/o board,
whether or not two board can share the same IRQ?
whether my i/o board can be use in arbitrary IRQ number from 2-7.
3.how could I adjust other hardware 's IRQ number so that
the i/o board can use in suitable IRQ number(one number from 2 to 7)

“zhz_zhang” <zhz_zhang@263.net> wrote in message
news:a21cde$er2$1@inn.qnx.com

I have a pc computer installed QNX neutrino6.1.0.
Now I want to add a 24 bit Digital I/O ISA board in the computer.
There is no QNX driver about the board.
The menual of i/o board tell me that it only can use IRQ level from 2 to
7.
In my computer there have been Network card,and parallel printer.
I refer the InterruptAttach(),as if there is no IRQ free for my card from
2-7,
My god.
1.how could I know that the IRQ number has been in use?
As we can see in windows-controlpanel-system.

To my knowledge there is no way to know at this time.

2.if I want to program driver for the i/o board,
whether or not two board can share the same IRQ?

If the harware supports it (on ISA most don’t) it’s just
a matter checking inside the ISR if the interrupt is really
from your hardware. If not you simply return.

whether my i/o board can be use in arbitrary IRQ number from 2-7.

You can’t obtain that information by software.

3.how could I adjust other hardware 's IRQ number so that
the i/o board can use in suitable IRQ number(one number from 2 to 7)

This is usally done in the BIOS for the onboard device (serial parallel),
as for other devices, it’s usually jumper on the board itself. Typical
interrupt allocation isn’t changed by software.