Re: [Xenomai-core] [RFC] support for sharing IRQs

2005-11-02 Thread Jan Kiszka
Dmitry Adamushko wrote: [...] e.g. the cookie remains opaque for the ipipe but when requested by HAL::rthal_irq_request() or NUCLEUS::xnintr_irq_handler() it's treated as a chain of ISR handlers. Yep, that's also what I had in mind about potential ipipe changes and their use in the

Re: [Xenomai-core] [RFC] support for sharing IRQs

2005-11-01 Thread Jan Kiszka
Dmitry Adamushko wrote: On Monday 31 October 2005 21:38, you wrote: [...] In our case, the relation between xnintr_irq_handler() and rthal_irq_trampoline() is 1:1. The first one does much more things that the second one which is really almost a pure redirection layer. Hopefully,

Re: [Xenomai-core] [RFC] support for sharing IRQs

2005-11-01 Thread Philippe Gerum
Dmitry Adamushko wrote: Hi Jan, I have some code hanging around here which implements IRQ sharing at skin level for an experimental in-house development over Xenomai. The code is smart enough to register an IRQ sharing trampoline handler only in case sharing is actually practiced for

Re: [Xenomai-core] [RFC] support for sharing IRQs

2005-11-01 Thread Dmitry Adamushko
On Tuesday 01 November 2005 10:49, you wrote: In that case, the nucleus must keep track of all the irqs, i.e. some_struct irqs[IPIPE_NR_IRQS]. Ok, the rthal_realtime_irq[] may be removed here from hal. But there is already the per-irq array in ipipe_domain struct. Having got [1] and [2]

Re: [Xenomai-core] [RFC] support for sharing IRQs

2005-11-01 Thread Dmitry Adamushko
On Tuesday 01 November 2005 12:58, you wrote: as cockie to the xnintr_irq_handler(). The analogy is irq_desc_t vs. irqaction structures in Linux. This way, xnintr_irq_handler() can be called from adeos-ipipe layer directly without the [2] layer. But that change looks quite

Re: [Xenomai-core] [RFC] support for sharing IRQs

2005-11-01 Thread Jan Kiszka
Dmitry Adamushko wrote: On Monday 31 October 2005 21:38, you wrote: [...] In our case, the relation between xnintr_irq_handler() and rthal_irq_trampoline() is 1:1. The first one does much more things that the second one which is really almost a pure redirection layer. Hopefully,

Re: [Xenomai-core] [RFC] support for sharing IRQs

2005-11-01 Thread Jan Kiszka
Philippe Gerum wrote: Dmitry Adamushko wrote: Hi Jan, I have some code hanging around here which implements IRQ sharing at skin level for an experimental in-house development over Xenomai. The code is smart enough to register an IRQ sharing trampoline handler only in case

Re: [Xenomai-core] [RFC] support for sharing IRQs

2005-11-01 Thread Jan Kiszka
Philippe Gerum wrote: Dmitry Adamushko wrote: On Monday 31 October 2005 16:04, you wrote: Dmitry Adamushko wrote: It seems to me now, that some parts of the hal will be involved (rthal_irq_request/release()) since the nucleus itself doesn't keep track of registered irqs. That's true.

Re: [Xenomai-core] [RFC] support for sharing IRQs

2005-10-31 Thread Dmitry Adamushko
Hi Jan, I have some code hanging around here which implements IRQ sharing at skin level for an experimental in-house development over Xenomai. The code is smart enough to register an IRQ sharing trampoline handler only in case sharing is actually practiced for a specific line. Could you

Re: [Xenomai-core] [RFC] support for sharing IRQs

2005-10-31 Thread Dmitry Adamushko
Hi Jan, I have some code hanging around here which implements IRQ sharing at skin level for an experimental in-house development over Xenomai. The code is smart enough to register an IRQ sharing trampoline handler only in case sharing is actually practiced for a specific line. Could you

Re: [Xenomai-core] [RFC] support for sharing IRQs

2005-10-31 Thread Dmitry Adamushko
On Monday 31 October 2005 16:04, you wrote: Dmitry Adamushko wrote: It seems to me now, that some parts of the hal will be involved (rthal_irq_request/release()) since the nucleus itself doesn't keep track of registered irqs. That's true. And it also raises another question to me: why do

Re: [Xenomai-core] [RFC] support for sharing IRQs

2005-10-31 Thread Dmitry Adamushko
On Monday 31 October 2005 21:38, you wrote: [...] In our case, the relation between xnintr_irq_handler() and rthal_irq_trampoline() is 1:1. The first one does much more things that the second one which is really almost a pure redirection layer. Hopefully, xnintr_irq_handler() is

[Xenomai-core] [RFC] support for sharing IRQs

2005-10-31 Thread Jan Kiszka
Hi, at the moment the 16550A UART driver that comes with Xenomai does not support IRQ sharing between serial ports or with other real-time devices. I first considered adding such support to the driver internally, but I think it's better work on a generic approach for Xenomai. I have some code