using external interrupts

eihad
I'm searching for a while, but can't find anything useful.

I'm trying to write a kernel module which runs a specific function inside
it, everytime an interrupt on EINT pins n 34pin header occurs.
I know how to write modules, and also know how to work with interrupts. But
no inside an OS/module.

Does anyone know a solution?

eduardo
Hi eihad,

I'm not sure of what do you wanna, but take a look at mini2440_buttons.c
code available on linux-xxx/drivers/char. Buttons_test.c available on
examples pack may be useful too. I think you can modify mini2440_buttons to
use the way you want or then build a new device driver.

hope it helps.

eduardo
The kernel source code and examples folder are available on mini/micro2440
dvd.

tarek
Am using a different flavour of S3c2440 board than the mini....

You can use the input/gpio-keys driver to get irq event to user-space for
EINT0-3.

EINT4 and up however do not work, as main interrupts are EINT4to7 etc 

Have started looking into writing my own module to do thi

osama
As you know, buttons on the board are connected to external interrupt pins
of micro controller(EXT8,11,13,15,..).
   But CON4 header also contains some connected to interrupt pins:EINT0,
2,4,6,... 
 Do anyone know how to configure pins as external interrupt ( because each
pins has lots of function:GPIO, interrupt,PWM,...)
  thanks and hope to get answer soon. 
  Nice day!:)