That function provides you the information which you have to hand overTo 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;
...
};
};
to your coprocessor firmware.