From: vincent_kuo@sercomm.com
Date: Tue Jul 23 2002 - 04:41:35 EDT
Phil,
Thanks. I found that all of the arch contains the file "config.c",
"entrys.S", "traps.c". The arch "armnommu" gets "traps.c", no other files. :-(
But there're some similar files. I will try to trace the code. :-)
Regards,
--
Vincent C. Kuo
vincent_kuo@sercomm.com
---- ---- ---- ---- ---- ---- ---- ---- ---- ----
Take a little time, I will be your friend. ^-^
---- ---- ---- ---- ---- ---- ---- ---- ---- ----
Phil Wilshire <philwil@earthlink.net> 於 2002/07/23 12:25:16 PM
請回應 給 uclinux-dev@uclinux.org
收件人: uclinux-dev@uclinux.org
副本抄送: (副本密送: Vincent Kuo/Sercomm)
主旨: Re: [uClinux-dev] ARM external IRQ
HI Vincent
Examine the setup code for some of the other cpus
Some of them have many IRQ's
arch/xxxx/config.c
traps.c
and entry.S
are good places to start.
You have to find a way to represent each interrupt as a number and then
use some scheme to
allow operations using that number to ack / mask the correct registers.
regards
Phil Wilshire
vincent_kuo@sercomm.com wrote:
>
> Dear all,
> I am using the TI-TMS320DSC21 EVM board (it's ARM7 CPU). I meet some
> problems and needs help.
> I know that we could use "request_irq", "enable_irq"... function calls to
> let the interrrupt run into our interrupt routine. But for this special CPU,
it
> could set its GIO [0-7] as an external interrupt. The CPU has 32 GIO [0-31],
> they are all simply memory I/O, except the first 8 GIO could declare both I/O
> mode and Interrupt mode (GIO[0-7]).
> Now our H/W engineer sets some GIO to be an interrupt and my driver needs
> to detect the interrupt to do some job. How could I use those interrupt in my
> own driver code? By the way, I got some object codes which could access those
> GIO as I/O mode (io read/write). But I don't know how to register those
> interrupts in my driver.
> In x86 system, the "request_irq" function could only register IRQ 1-15. I
> have no idea about the external interrupt. Could anyone give me some advise?
> Thanks.
> Regards,
>
> --
> Vincent C. Kuo
> vincent_kuo@sercomm.com
> ---- ---- ---- ---- ---- ---- ---- ---- ---- ----
> Take a little time, I will be your friend. ^-^
> ---- ---- ---- ---- ---- ---- ---- ---- ---- ----
>
> This message resent by the uclinux-dev@uclinux.org list server
http://www.uClinux.org/
--
SDCS -- System Design & Consulting Services LLC, http://www.sysdcs.com
630 Springhouse Sq., Leesburg VA 20175 phone: 703 669 9765 fax: 703 669
9768
**uClinux Training** Las Vegas Aug 28-30 2002, email me for details
This message resent by the uclinux-dev@uclinux.org list server
http://www.uClinux.org/
This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/
This archive was generated by hypermail 2.1.4 : Thu Sep 19 2002 - 13:21:35 EDT