From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Sat, 15 Jun 2002 08:21:12 -0700 From: Matt Porter To: Khai Trinh Cc: linuxppc-embedded@lists.linuxppc.org Subject: Re: 440 PCI adapter card interupt handling question Message-ID: <20020615082112.B737@home.com> References: <20020613221011.85904.qmail@web11502.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20020613221011.85904.qmail@web11502.mail.yahoo.com>; from kqtrinh@yahoo.com on Thu, Jun 13, 2002 at 03:10:11PM -0700 Sender: owner-linuxppc-embedded@lists.linuxppc.org List-Id: On Thu, Jun 13, 2002 at 03:10:11PM -0700, Khai Trinh wrote: > > Our custom board is a IBM 440GP based pci slave > adapter card, we will configure it to use the Simple > Message Passing Unit to allow interrupt generation to > the 440 from the Host. My question are Where in the > Linux kernel code can I initialize the 440 onboard > interrupt controller to enable this interrupt to > happen? And how do I register my interrupt handling > routine to service inbound interrupt from the Host? You don't use the UICs to generate an outbound message interrupt so there is no "initialization". There is a hardwired UIC interrupt generated by inbound message interrupts. Since you are talking about writing a basic Linux device driver, I suggest you see one of the many books on the topic to learn some of the basics. request_irq(), for example, is explained with many examples. Regards, -- Matt Porter porter@cox.net This is Linux Country. On a quiet night, you can hear Windows reboot. ** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/