All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] which way to obtain irq#
@ 2006-10-16 17:58 Marcelo Coelho
  2006-10-16 18:32 ` Jan Kiszka
  0 siblings, 1 reply; 5+ messages in thread
From: Marcelo Coelho @ 2006-10-16 17:58 UTC (permalink / raw)
  To: Xenomai help

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).


 From your experience, is there any problem using the virtual irq number 
(the 1st option)?



Thanks for your answers!!




DISCLAIMER: This message may contain confidential information or privileged material and is intended only for the individual(s) named. If you are not a named addressee and mistakenly received this message you should not copy or otherwise disseminate it: please delete this e-mail from your system and notify the sender immediately. E-mail transmissions are not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete or contain viruses. Therefore, the sender does not accept liability for any errors or omissions in the contents of this message that arise as a result of e-mail transmissions. Please request a hard copy version if verification is required. Critical Software, SA.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai-help] which way to obtain irq#
  2006-10-16 17:58 [Xenomai-help] which way to obtain irq# Marcelo Coelho
@ 2006-10-16 18:32 ` Jan Kiszka
  2006-10-17  9:28   ` Marcelo Coelho
  0 siblings, 1 reply; 5+ messages in thread
From: Jan Kiszka @ 2006-10-16 18:32 UTC (permalink / raw)
  To: Marcelo Coelho; +Cc: Xenomai help

[-- 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 --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai-help] which way to obtain irq#
  2006-10-16 18:32 ` Jan Kiszka
@ 2006-10-17  9:28   ` Marcelo Coelho
  2006-10-17  9:39     ` Marcelo Coelho
  0 siblings, 1 reply; 5+ messages in thread
From: Marcelo Coelho @ 2006-10-17  9:28 UTC (permalink / raw)
  To: Xenomai help


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

At a first look I don't think so. The first option gives a number 
between 1 and 255 and the second gives between 1 and 255.





Jan Kiszka wrote:
 > 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
> 

DISCLAIMER: This message may contain confidential information or privileged material and is intended only for the individual(s) named. If you are not a named addressee and mistakenly received this message you should not copy or otherwise disseminate it: please delete this e-mail from your system and notify the sender immediately. E-mail transmissions are not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete or contain viruses. Therefore, the sender does not accept liability for any errors or omissions in the contents of this message that arise as a result of e-mail transmissions. Please request a hard copy version if verification is required. Critical Software, SA.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai-help] which way to obtain irq#
  2006-10-17  9:28   ` Marcelo Coelho
@ 2006-10-17  9:39     ` Marcelo Coelho
  2006-10-17 16:46       ` Gilles Chanteperdrix
  0 siblings, 1 reply; 5+ messages in thread
From: Marcelo Coelho @ 2006-10-17  9:39 UTC (permalink / raw)
  Cc: Xenomai help


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

At a first look I don't think so. The first option gives a number
between 1 and 255 and the second gives between 1 and 15.







> 
> Jan Kiszka wrote:
>  > 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
>>
> 
> DISCLAIMER: This message may contain confidential information or 
> privileged material and is intended only for the individual(s) named. If 
> you are not a named addressee and mistakenly received this message you 
> should not copy or otherwise disseminate it: please delete this e-mail 
> from your system and notify the sender immediately. E-mail transmissions 
> are not guaranteed to be secure or error-free as information could be 
> intercepted, corrupted, lost, destroyed, arrive late or incomplete or 
> contain viruses. Therefore, the sender does not accept liability for any 
> errors or omissions in the contents of this message that arise as a 
> result of e-mail transmissions. Please request a hard copy version if 
> verification is required. Critical Software, SA.
> 
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
> 

DISCLAIMER: This message may contain confidential information or privileged material and is intended only for the individual(s) named. If you are not a named addressee and mistakenly received this message you should not copy or otherwise disseminate it: please delete this e-mail from your system and notify the sender immediately. E-mail transmissions are not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete or contain viruses. Therefore, the sender does not accept liability for any errors or omissions in the contents of this message that arise as a result of e-mail transmissions. Please request a hard copy version if verification is required. Critical Software, SA.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai-help] which way to obtain irq#
  2006-10-17  9:39     ` Marcelo Coelho
@ 2006-10-17 16:46       ` Gilles Chanteperdrix
  0 siblings, 0 replies; 5+ messages in thread
From: Gilles Chanteperdrix @ 2006-10-17 16:46 UTC (permalink / raw)
  To: Marcelo Coelho; +Cc: Xenomai help

Marcelo Coelho wrote:
> 
>>> [I think you swapped the terms "real" and "virtual" here, no?]
> 
> 
> At a first look I don't think so. The first option gives a number
> between 1 and 255 and the second gives between 1 and 15.

The second option probably give you the irq as choosen by the BIOS,
whereas the first option is the irq assigned by Linux. The correct one
is the first one.

-- 
                                                  Gilles Chanteperdrix


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-10-17 16:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-16 17:58 [Xenomai-help] which way to obtain irq# Marcelo Coelho
2006-10-16 18:32 ` Jan Kiszka
2006-10-17  9:28   ` Marcelo Coelho
2006-10-17  9:39     ` Marcelo Coelho
2006-10-17 16:46       ` Gilles Chanteperdrix

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.