lkml.org 
[lkml]   [2015]   [Aug]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 01/10] irqchip: irq-mips-gic: export gic_send_ipi
From
Date
On 08/28/2015 03:22 PM, Thomas Gleixner wrote:
>>> To configure your coprocessor proper, we need a translation
>>> mechanism from the linux interrupt number to the magic value which
>>> needs to be written into the trigger register when the coprocessor
>>> wants to send an interrupt or an IPI.
>>>
>>> int irq_get_irq_hwcfg(unsigned int irq, struct irq_hwcfg *cfg);
>>>
>>> struct irq_hwcfg needs to be defined, but it might look like this:
>>>
>>> {
>>> /* Generic fields */
>>> x;
>>> ...
>>> union {
>>> mips_gic;
>>> ...
>>> };
>>> };
> That function provides you the information which you have to hand over
> to your coprocessor firmware.
>
>

Of course!

* me slapping myself on the back *

Thanks,
Qais


\
 
 \ /
  Last update: 2015-08-28 17:21    [W:0.121 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site