public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Felipe Balbi <felipe.balbi@nokia.com>
To: ext Andrew Tverdohlebov <fat031c@gmail.com>
Cc: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: gpio irq on Beagleboard
Date: Fri, 16 Apr 2010 08:13:17 +0300	[thread overview]
Message-ID: <20100416051317.GB26263@nokia.com> (raw)
In-Reply-To: <8A909C07C62544C9924984F81D5F4FBA@rhonda.vtc.ru>

On Fri, Apr 16, 2010 at 06:59:19AM +0200, ext Andrew Tverdohlebov wrote:
>Dear linux-omap community,
>
>I am writing a simple driver for BeagleBoard
>and trying to get an understanding of how interrupts work.
>
>Could you please answer a small question. What is a difference between irq
> and virtual_irq_start in structure gpio_bank in file
> arch/arm/plat-omap/gpio.c
> As far as I understood irq corresponds to real hardware interrupts while
> virtual_irq_start is completely obscure for me.
> I didn't find a clue in the documentation.

it's where the gpio irqs could be placed (numbering-wise) after the irq 
controller. I mean, if the irq controller has 192 irqs, gpio irqs have 
to be numbered 193, 194, 195, etc... so virtual_irq_base is that initial 
number.

hope I made myself clear enough :-p

if you take a look at the gpio_bank arrays on that same file and look at 
the fourth initialization, you can get a clue. Take a look at the 
IH_GPIO_BASE define, for example.

-- 
balbi

      reply	other threads:[~2010-04-16  5:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <38B49E6266DD4380903FF7A5E6162A5D@rhonda.vtc.ru>
2010-04-16  4:59 ` gpio irq on Beagleboard Andrew Tverdohlebov
2010-04-16  5:13   ` Felipe Balbi [this message]

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=20100416051317.GB26263@nokia.com \
    --to=felipe.balbi@nokia.com \
    --cc=fat031c@gmail.com \
    --cc=linux-omap@vger.kernel.org \
    /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