From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from imap.sh.mvista.com (unknown [63.81.120.155]) by ozlabs.org (Postfix) with ESMTP id 8BE6CDE0AB for ; Sat, 2 Feb 2008 01:58:37 +1100 (EST) Message-ID: <47A32C9C.3090709@ru.mvista.com> Date: Fri, 01 Feb 2008 17:28:44 +0300 From: Sergei Shtylyov MIME-Version: 1.0 To: Marco Stornelli Subject: Re: External Interrupt References: <47A2D424.3090903@coritel.it> In-Reply-To: <47A2D424.3090903@coritel.it> Content-Type: text/plain; charset=us-ascii; format=flowed Cc: Linuxppc Embedded Mailing List List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Marco Stornelli wrote: > Hi, > > I used the linux kernel 2.6.10 with a processor MPC8548E. I wrote a > driver for a device connected with the local bus. This device has an > external interrupt. In the local bus driver I have used the macro > MPC85xx_IRQ_EXT to get the interrupt number and pass it to the > driver and after that register the ISR. Now with a kernel 2.6.21 this > macro isn't available because in the header file irq.h there is the > option CONFIG_PPC_MERGE that disable those options. I think this > problem is related to the migration of ppc code towards powerpc. I > know that now there is the new device tree source file where I can add > a device and its interrupt number but I think in this file I should > describe only the platform device, and this device is not a platform > device. How comes that it's not platform device if it hangs off the local bus? > Then, how can I get now this value? Is there some function to > call? How can I perform this operation? Probably irq_alloc_virt()...