qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] IRQ number, interrupt number, interrupt line & GPIO[in/


From: Anthony Liguori
Subject: Re: [Qemu-devel] IRQ number, interrupt number, interrupt line & GPIO[in/out]
Date: Fri, 02 Mar 2012 10:01:29 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20110922 Lightning/1.0b2 Thunderbird/3.1.15

Hi Zhi Yong,

On 03/02/2012 06:38 AM, Zhi Yong Wu wrote:
HI,

Can anyone explain their relationship and difference among them?  It
is very appreciated if you can make some comments. thanks.

IRQ == interrupt.

GPIO is just another name for an input or output pin on a chip which could be a IRQ line.

Interrupt controllers can receive interrupts from one or more devices. Usually, the input pins on an interrupt controller can be numbered sequentially. When we say that the first UART is on IRQ number 3, what that really means is that the IRQ output pin on the UART chip is connected to pin number 3 on the interrupt controller with a wire.

But there never is a single interrupt controller in a real system. For instance, a PCI bus has it's own interrupt controller that has four input pins (called LNKs) that are oddly labeled A, B, C, D.

For the I440FX PCI bus, those four input pins are mapped to two IRQs which are then connected to the I/O APIC.

Regards,

Anthony Liguori



reply via email to

[Prev in Thread] Current Thread [Next in Thread]