qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: 陳韋任 <chenwj@iis.sinica.edu.tw>
To: Zhi Yong Wu <zwu.kernel@gmail.com>
Cc: QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] IRQ number, interrupt number, interrupt line & GPIO[in/out]
Date: Fri, 2 Mar 2012 23:12:52 +0800	[thread overview]
Message-ID: <20120302151252.GA32011@cs.nctu.edu.tw> (raw)
In-Reply-To: <CAEH94LhPcVzoqqfNwMe0MUg7dR7s74ZkthF4W2UVCKS0qys9dg@mail.gmail.com>

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

  I think IRQ number, interrupt number are quite similar things. You can
check PIC [1] first, especially 8259A [2]. When a device raise an interrupt,
the interrupt is delivered to CPU through PIC. Each device attaches itself
to one of PIC's pins. Thus, when we say the IRQ number of device X is Y,
it means device X attaches itself to PIC's pin Y. PIC will deliver the highest
priority interrupt to the CPU. The term "interrupt line" might appear in PCI
context [3]. BIOS usually uses interrupt line to represent what PIC pin the
device attatches to. Note that PIC (Programmable Interrupt Controller) and
PCI (Peripheral Component Interconnect) are different things.

  GPIO mostly is used on SoC. It depends on the vendor how to use GPIO. One
of GPIO capabilities is similar to PIC, I guess. But I leave this to SoC
experts. I strongly recommend the book [5] if you want to learn how things
work.

HTH, 
chenwj

[1] http://en.wikipedia.org/wiki/Programmable_Interrupt_Controller
[2] http://en.wikipedia.org/wiki/Intel_8259
[3] http://en.wikipedia.org/wiki/Conventional_PCI
[4] http://en.wikipedia.org/wiki/General_Purpose_Input/Output
[5] 系统虚拟化:原理与实现

-- 
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
Homepage: http://people.cs.nctu.edu.tw/~chenwj

  reply	other threads:[~2012-03-02 15:13 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-02 12:38 [Qemu-devel] IRQ number, interrupt number, interrupt line & GPIO[in/out] Zhi Yong Wu
2012-03-02 15:12 ` 陳韋任 [this message]
2012-03-03  2:10   ` Zhi Yong Wu
2012-03-03 17:12     ` Peter Maydell
2012-03-04  3:30       ` Zhi Yong Wu
2012-03-02 16:01 ` Anthony Liguori
2012-03-02 16:41   ` Peter Maydell
2012-03-03  2:19     ` Zhi Yong Wu
2012-03-03  2:06   ` Zhi Yong Wu
2012-03-11 15:04 ` Shu Ming

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120302151252.GA32011@cs.nctu.edu.tw \
    --to=chenwj@iis.sinica.edu.tw \
    --cc=qemu-devel@nongnu.org \
    --cc=zwu.kernel@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).