Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752685AbbH1PMT (ORCPT ); Fri, 28 Aug 2015 11:12:19 -0400 Received: from mailapp01.imgtec.com ([195.59.15.196]:38810 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752572AbbH1PMR (ORCPT ); Fri, 28 Aug 2015 11:12:17 -0400 Subject: Re: [PATCH 01/10] irqchip: irq-mips-gic: export gic_send_ipi To: Thomas Gleixner References: <1440419959-14315-1-git-send-email-qais.yousef@imgtec.com> <1440419959-14315-2-git-send-email-qais.yousef@imgtec.com> <55DB15EB.3090109@imgtec.com> <55DB1CD2.5030300@arm.com> <55DB29B5.3010202@imgtec.com> <55DB48C9.7010508@imgtec.com> <55DB519D.2090203@arm.com> <55DDA1C4.4070301@imgtec.com> <55DDD3E3.7070009@imgtec.com> <55DDDE3C.8030609@imgtec.com> <55E03A2B.3070805@imgtec.com> CC: Marc Zyngier , "alsa-devel@alsa-project.org" , Jason Cooper , "linux-kernel@vger.kernel.org" , "linux-mips@linux-mips.org" , Mark Rutland , Jiang Liu , Mark Brown , Lisa Parratt From: Qais Yousef Message-ID: <55E07A4E.1070309@imgtec.com> Date: Fri, 28 Aug 2015 16:12:14 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.154.94] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1019 Lines: 35 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/