* request_8xxirq
@ 2005-07-29 1:33 Manish Joshi
2005-07-29 13:07 ` request_8xxirq Tiago Dall'Agnol
0 siblings, 1 reply; 10+ messages in thread
From: Manish Joshi @ 2005-07-29 1:33 UTC (permalink / raw)
To: linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 353 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 545 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: request_8xxirq
2005-07-29 1:33 request_8xxirq Manish Joshi
@ 2005-07-29 13:07 ` Tiago Dall'Agnol
2005-07-29 13:40 ` request_8xxirq Alex Zeffertt
0 siblings, 1 reply; 10+ messages in thread
From: Tiago Dall'Agnol @ 2005-07-29 13:07 UTC (permalink / raw)
To: linuxppc-embedded
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
Parks S.A. Comunicações Digitais
www.parks.com.br
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: request_8xxirq
2005-07-29 13:07 ` request_8xxirq Tiago Dall'Agnol
@ 2005-07-29 13:40 ` Alex Zeffertt
2005-07-29 13:52 ` request_8xxirq Tiago Dall'Agnol
0 siblings, 1 reply; 10+ messages in thread
From: Alex Zeffertt @ 2005-07-29 13:40 UTC (permalink / raw)
To: Tiago Dall'Agnol; +Cc: linuxppc-embedded
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: request_8xxirq
2005-07-29 13:40 ` request_8xxirq Alex Zeffertt
@ 2005-07-29 13:52 ` Tiago Dall'Agnol
2005-07-29 14:43 ` request_8xxirq Alex Zeffertt
0 siblings, 1 reply; 10+ messages in thread
From: Tiago Dall'Agnol @ 2005-07-29 13:52 UTC (permalink / raw)
To: Alex Zeffertt; +Cc: linuxppc-embedded
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
>>
>>
>
>
>
--
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: request_8xxirq
2005-07-29 13:52 ` request_8xxirq Tiago Dall'Agnol
@ 2005-07-29 14:43 ` Alex Zeffertt
2005-07-29 17:01 ` request_8xxirq Tiago Dall'Agnol
0 siblings, 1 reply; 10+ messages in thread
From: Alex Zeffertt @ 2005-07-29 14:43 UTC (permalink / raw)
To: Tiago Dall'Agnol; +Cc: linuxppc-embedded
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
> >>
> >>
> >
> >
> >
>
> --
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: request_8xxirq
2005-07-29 14:43 ` request_8xxirq Alex Zeffertt
@ 2005-07-29 17:01 ` Tiago Dall'Agnol
2005-07-29 17:43 ` request_8xxirq Dan Malek
2005-08-01 13:04 ` request_8xxirq Alex Zeffertt
0 siblings, 2 replies; 10+ messages in thread
From: Tiago Dall'Agnol @ 2005-07-29 17:01 UTC (permalink / raw)
To: Alex Zeffertt; +Cc: linuxppc-embedded
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: request_8xxirq
2005-07-29 17:01 ` request_8xxirq Tiago Dall'Agnol
@ 2005-07-29 17:43 ` Dan Malek
2005-08-01 12:55 ` request_8xxirq Tiago Dall'Agnol
2005-08-01 13:04 ` request_8xxirq Alex Zeffertt
1 sibling, 1 reply; 10+ messages in thread
From: Dan Malek @ 2005-07-29 17:43 UTC (permalink / raw)
To: Tiago Dall'Agnol; +Cc: linuxppc-embedded
On Jul 29, 2005, at 1:01 PM, Tiago Dall'Agnol wrote:
> Am I wrong? I didn't understand when that function request_irq is used.
At some point I don't remember and against all of my wishes, the code
was changed from using request_8xxirq to using request_irq using
an ugly hack to add some offset to the 8xx interrupt vector number.
I didn't see any bug that needed fixing, but people with the power to
ignore my maintainer status decided to change it anyway. So, now you
have to modify your drivers to call request_irq() with some nonsensical
interrupt number. No value added, just confusion.
Thanks.
-- Dan
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: request_8xxirq
2005-07-29 17:43 ` request_8xxirq Dan Malek
@ 2005-08-01 12:55 ` Tiago Dall'Agnol
0 siblings, 0 replies; 10+ messages in thread
From: Tiago Dall'Agnol @ 2005-08-01 12:55 UTC (permalink / raw)
To: Dan Malek; +Cc: linuxppc-embedded
Hi Dan
Thanks for your attention. I believe that I'm doing some confusion about
what is "request_8xxirq". I have this function (or some alias?) in my
system, and I guess that there isn't any problem with it. But the
problem I had was a pretty strange, and I decided to take a look at that
function. And I hadn't find its implementation. I tried to grep
request_8xxirq in the whole code, but I just found a
EXPORT_SYMBOL(request_8xxirq).
Anyway, my problem was related to the SEC Lite module. In my Linux, what
I had in source files originally was the use of SEC Lite interruption as
a LEVEL4 (number 9). In some boards (I mean, the same models, just other
boards), the interrupt handler was not called when it should be, i.e.,
when the SEC Lite module ends its processing and signals that the packed
is ready for me. That's the way my system works, with interruption to
signal that the packet was already processed.
So, after identifying that problem, I tried to change interrupt to
LEVEL3 (number 7), and for my surprise... now it works, for all boards.
But why?
Isn't it strange?
Best Regards,
Tiago
Dan Malek wrote:
>
> On Jul 29, 2005, at 1:01 PM, Tiago Dall'Agnol wrote:
>
>> Am I wrong? I didn't understand when that function request_irq is used.
>
>
> At some point I don't remember and against all of my wishes, the code
> was changed from using request_8xxirq to using request_irq using
> an ugly hack to add some offset to the 8xx interrupt vector number.
> I didn't see any bug that needed fixing, but people with the power to
> ignore my maintainer status decided to change it anyway. So, now you
> have to modify your drivers to call request_irq() with some nonsensical
> interrupt number. No value added, just confusion.
>
> Thanks.
>
> -- Dan
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: request_8xxirq
2005-07-29 17:01 ` request_8xxirq Tiago Dall'Agnol
2005-07-29 17:43 ` request_8xxirq Dan Malek
@ 2005-08-01 13:04 ` Alex Zeffertt
2005-08-01 13:25 ` request_8xxirq Tiago Dall'Agnol
1 sibling, 1 reply; 10+ messages in thread
From: Alex Zeffertt @ 2005-08-01 13:04 UTC (permalink / raw)
To: Tiago Dall'Agnol; +Cc: linuxppc-embedded
On Fri, 29 Jul 2005 14:01:21 -0300
"Tiago Dall'Agnol" <tdallagnol@parks.com.br> wrote:
> 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?
>
See the code snippet in my last email. The C preprocessor replaces 'int request_irq(...' with 'int
request_8xxirq(...' prior to compilation.
> 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
> www.parks.com.br
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: request_8xxirq
2005-08-01 13:04 ` request_8xxirq Alex Zeffertt
@ 2005-08-01 13:25 ` Tiago Dall'Agnol
0 siblings, 0 replies; 10+ messages in thread
From: Tiago Dall'Agnol @ 2005-08-01 13:25 UTC (permalink / raw)
To: Alex Zeffertt; +Cc: linuxppc-embedded
Hi Alex
All right. But where are request_8xxirq? That's my doubt.
Thank you,
Tiago
Alex Zeffertt wrote:
>On Fri, 29 Jul 2005 14:01:21 -0300
>"Tiago Dall'Agnol" <tdallagnol@parks.com.br> wrote:
>
>
>>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?
>>
>>
>>
>
>See the code snippet in my last email. The C preprocessor replaces 'int request_irq(...' with 'int
>request_8xxirq(...' prior to compilation.
>
>
>
>
>>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
>>www.parks.com.br
>>
>>
>
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2005-08-01 13:23 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` request_8xxirq Tiago Dall'Agnol
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
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).