All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: Marcelo Coelho <mjcoelho@domain.hid>
Cc: Xenomai help <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] which way to obtain irq#
Date: Mon, 16 Oct 2006 20:32:17 +0200	[thread overview]
Message-ID: <4533D031.4040306@domain.hid> (raw)
In-Reply-To: <4533C841.3040108@domain.hid>

[-- Attachment #1: Type: text/plain, Size: 878 bytes --]

Marcelo Coelho wrote:
> Hi!
> 
> 
> I'm developing a driver based on RTDM, and i'm having some problems
> related to IRQ discovery (related to the fact that the driver is
> starting to do something).
> 
> So, there is 2 ways to obtain the IRQ number:
>     pci_device -> irq
> or
>     pci_read_config_byte( pci_device, PCI_INTERRUPT_LINE, (unsigned
> char*) &irq )
> 
> 
> The difference between these is that the 1st presents the "real" irq
> number (between 1 and 15) and the other presents the "virtual" irq
> (between 1 and 255).

[I think you swapped the terms "real" and "virtual" here, no?]

You have to use the first one like any Linux driver (RTDM is no
different in this regard).

> 
> 
> From your experience, is there any problem using the virtual irq number
> (the 1st option)?
> 
> 
> 
> Thanks for your answers!!
> 
> 

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

  reply	other threads:[~2006-10-16 18:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-16 17:58 [Xenomai-help] which way to obtain irq# Marcelo Coelho
2006-10-16 18:32 ` Jan Kiszka [this message]
2006-10-17  9:28   ` Marcelo Coelho
2006-10-17  9:39     ` Marcelo Coelho
2006-10-17 16:46       ` Gilles Chanteperdrix

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=4533D031.4040306@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=mjcoelho@domain.hid \
    --cc=xenomai@xenomai.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.