linux-mips
[Top] [All Lists]

How does PCI device get its interrupt vector?

To: linux@cthulhu.engr.sgi.com, linux-mips@fnet.fr
Subject: How does PCI device get its interrupt vector?
From: Jun Sun <jsun@mvista.com>
Date: Wed, 19 Jul 2000 14:41:40 -0700
Cc: Geert.Uytterhoeven@sonycom.com
Sender: owner-linux-mips@oss.sgi.com
I am trying to get DDB5476 working and got puzzled by the interrupt
vector thing.

The on-board ether chip, a PCI device, apparently indicates it generates
interrupts and has an interrupt vector of 123.  Later on, when
tulip_open tries to call request_irq(123, ...), it returns with an error
because the vector is greater than 32.

Here are my questions :

1. Who wrote 123 to the ether chip?  That does not sound right to me at
first place.

2. Assuming the ether chip returns 0xFF (an invalid interrupt vector,
which I believe is the correct behavior), which part of Linux is
responsible to figure out the correct interrupt vector?  Here we do have
the interrupt pin information and interrupt routing information.  So we
should be able to tell what is the right interrupt vector number.

Any hints?  Thanks.

Jun

<Prev in Thread] Current Thread [Next in Thread>