[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [rtl] RT-Linux interrupts.



> 
> but I havenīt got yet. I tried two ways: setting on and off the Linux
> SCC1 configuration option. So I have the next questions:
> 
> 	1.- Is it necessary for the above functions that the Linux kernel 
> 	    configuration for the SCC1 to be on? In other words, can
> 	    my module init the SCC1 controller and then use the above 
> 	    functions in case that the SCC1 kernel configuration is off?

it should not need to be configured for Linux - it must though be initialized.
look at arch/ppc/8xx_io/uart.c .

> 
> 	2.- Is it possible fot RT-Linux to recognize interrupts of devices 
> 	    that are not registered in Linux?

yup , the interrupt interception code is checking if there is a rt-handler
installed - if there is it is called - no need for a Linux handler to be 
available.

> 
>      3.- Any suggestion regarding the interrupt capture from an 
>          RT-linux module would be greatly appreciated. I have been
>          taking a look at multiple code examples and I find nothing
>          wrong with my code.
> 
> In the future I want to implement the same for all the others
> controllers: SCCx, SMCx, I2C, SPI, FEC.

I guess the problem ist that SCCx + SMCx are all one interrupt to the core
comming from the CPM, so you can't catch the SCC1 interrupt but you must
catch the CPM interrupt and in case it is the SCC1 handle it if not pass
it on to Linux for handling. If you catch the CPM interrupt with an rt-handler
then you will have to take care of checking the devices on the CPM so I 
don't think this can be done without changing the CPM related code.

hofrat