linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Using request_8xxirq
@ 2000-11-23  4:17 Kwansuk Kim
  2000-11-27 16:20 ` Dan Malek
  0 siblings, 1 reply; 2+ messages in thread
From: Kwansuk Kim @ 2000-11-23  4:17 UTC (permalink / raw)
  To: LinuxPPC


I have redhat's embbed linux kernel 2.2.13.

I ported it on my custom board (which has MPC860 CPU), and for studying the device driver I recompiled the kernel with loadable module.

There were some error, because some unused modules symbols are exported ( e.g., PCI driving symbols). I think I can omit them.

But among the unused symbols there was request_irq.

I searched the request_irq, and I found there was request_8xxirq instead of request_irq. In DRIVERS\CHAR\SERIAL.C file I found this define state.

"#define request_irq request_8xxirq"

and in ARCH\PPC\KERNEL\IRQ.C,

#ifndef CONFIG_8xx
int request_irq(unsigned int irq, void (*handler)(int, void *, struct pt_regs *),
#else
int request_8xxirq(unsigned int irq, void (*handler)(int, void *, struct pt_regs *),
#endif

I wonder whether request_8xxirq can work same as request_irq, and all modules work with request_8xxirq.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* Re: Using request_8xxirq
  2000-11-23  4:17 Using request_8xxirq Kwansuk Kim
@ 2000-11-27 16:20 ` Dan Malek
  0 siblings, 0 replies; 2+ messages in thread
From: Dan Malek @ 2000-11-27 16:20 UTC (permalink / raw)
  To: Kwansuk Kim; +Cc: LinuxPPC


Kwansuk Kim wrote:

> "#define request_irq request_8xxirq"

Bad, bad, bad.....

> I wonder whether request_8xxirq can work same as request_irq, and all modules work with request_8xxirq.

It does not work the same, which is why there is a different function
with a different name.  The drivers that use the request_irq function
assume PC 8259 type interrupt numbers, which is completely inappropriate
for the internal 8xx interrupt controller.


	-- Dan

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~2000-11-27 16:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-23  4:17 Using request_8xxirq Kwansuk Kim
2000-11-27 16:20 ` Dan Malek

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