From: Tiago Dall'Agnol <tdallagnol@parks.com.br>
To: Alex Zeffertt <ajz@cambridgebroadband.com>
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: request_8xxirq
Date: Fri, 29 Jul 2005 14:01:21 -0300 [thread overview]
Message-ID: <42EA60E1.7040804@parks.com.br> (raw)
In-Reply-To: <20050729154359.1ac8f488.ajz@cambridgebroadband.com>
I'm using kernel 2.4.18, and I can see the code you posted.
But this code doesn't help to find request_8xxirq. It just do the
opposite. This code defines request_irq to be request_8xxirq when
CONFIG_8xx is defined. But where is located the implementation of
request_8xxirq?
Am I wrong? I didn't understand when that function request_irq is used.
Thanks
Tiago
Alex Zeffertt wrote:
>Maybe you're using a really old kernel. In linux-2.4.4 it's in
>arch/ppc/kernel/irq.c:
>
>-- snip --
>#if (defined(CONFIG_8xx) || defined(CONFIG_8260))
>/* Name change so we can catch standard drivers that potentially mess up
> * the internal interrupt controller on 8xx and 8260. Just bear with me,
> * I don't like this either and I am searching a better solution. For
> * now, this is what I need. -- Dan
> */
>#define request_irq request_8xxirq
>
>...
>...
>...
>
>int request_irq(unsigned int irq, void (*handler)(int, void *, struct pt_regs *),
> unsigned long irqflags, const char * devname, void *dev_id)
>{
>--/snip --
>
>
>I don't know why it was done like this....
>
>Alex
>
>
>On Fri, 29 Jul 2005 10:52:33 -0300
>"Tiago Dall'Agnol" <tdallagnol@parks.com.br> wrote:
>
>
>
>>Thank you Alex.
>>
>>But in my linux, this is different.
>>What I have in that file is just
>>
>>extern int request_8xxirq(unsigned int irq,
>> void (*handler)(int, void *, struct pt_regs *),
>> unsigned long flags,
>> const char *device,
>> void *dev_id);
>>
>>And the request_8xxirq is declared as a
>>
>>EXPORT_SYMBOL(request_8xxirq);
>>
>>in arch/ppc/kernel/ppc_ksyms.c.
>>
>>I already tried to find out where the code that implements the function
>>is located, but it seems that it doesn't exist in my distribuction.
>>Maybe is it a "binary version"?
>>
>>Any other information will be apreciated ;-)
>>
>>Best Regards,
>>Tiago
>>
>>Alex Zeffertt wrote:
>>
>>
>>
>>>In linux-2.4 it's in
>>>
>>> include/asm-ppc/mpc8xx.h
>>>
>>>-- snip --
>>>#define request_8xxirq request_irq
>>>--/snip --
>>>
>>>And request_irq is in arch/ppc/kernel/irq.c
>>>
>>>Alex
>>>
>>>On Fri, 29 Jul 2005 10:07:58 -0300
>>>"Tiago Dall'Agnol" <tdallagnol@parks.com.br> wrote:
>>>
>>>
>>>
>>>
>>>
>>>>Hi,
>>>>
>>>>I had some problems with irq in my embedded system. I'm interested in
>>>>this function source code, but I didn't find it in my linux distribuction?
>>>>
>>>>Does anyone know where I can find it?
>>>>
>>>>Thanks a lot
>>>>Tiago
>>>>
>>>>Manish Joshi wrote:
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>>Hi,
>>>>>
>>>>>I am working on an old code which uses request_8xxirq() call which I
>>>>>can't find in latest kernel.
>>>>>Has this been replaced by something else ?
>>>>>
>>>>>I see the references on net about replacing request_8xxirq() with
>>>>>request_irq(). Can I do it ?
>>>>>
>>>>>TIA,
>>>>>Manish
>>>>>
>>>>>
>>>>>------------------------------------------------------------------------
>>>>>Start your day with Yahoo! - make it your home page
>>>>><http://us.rd.yahoo.com/evt=34442/*http://www.yahoo.com/r/hs>
>>>>>
>>>>>------------------------------------------------------------------------
>>>>>
>>>>>_______________________________________________
>>>>>Linuxppc-embedded mailing list
>>>>>Linuxppc-embedded@ozlabs.org
>>>>>https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>--
>>>>Tiago Dall'Agnol
>>>>Pesquisa e Desenvolvimento
>>>>Tel.: +55.51.470.05.64
>>>>Fax.: +55.51.470.05.70
>>>>e-mail: tdallagnol@parks.com.br
>>>>www.parks.com.br
>>>>
>>>>_______________________________________________
>>>>Linuxppc-embedded mailing list
>>>>Linuxppc-embedded@ozlabs.org
>>>>https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>>--
>>
>>
>
>
>
--
Tiago Dall'Agnol
Pesquisa e Desenvolvimento
Tel.: +55.51.470.05.64
Fax.: +55.51.470.05.70
e-mail: tdallagnol@parks.com.br
Parks S.A. Comunicações Digitais
www.parks.com.br
next prev parent reply other threads:[~2005-07-29 16:59 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-29 1:33 request_8xxirq Manish Joshi
2005-07-29 13:07 ` request_8xxirq Tiago Dall'Agnol
2005-07-29 13:40 ` request_8xxirq Alex Zeffertt
2005-07-29 13:52 ` request_8xxirq Tiago Dall'Agnol
2005-07-29 14:43 ` request_8xxirq Alex Zeffertt
2005-07-29 17:01 ` Tiago Dall'Agnol [this message]
2005-07-29 17:43 ` request_8xxirq Dan Malek
2005-08-01 12:55 ` request_8xxirq Tiago Dall'Agnol
2005-08-01 13:04 ` request_8xxirq Alex Zeffertt
2005-08-01 13:25 ` request_8xxirq Tiago Dall'Agnol
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=42EA60E1.7040804@parks.com.br \
--to=tdallagnol@parks.com.br \
--cc=ajz@cambridgebroadband.com \
--cc=linuxppc-embedded@ozlabs.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.