From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:42823) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qe5ty-0007EV-8B for qemu-devel@nongnu.org; Tue, 05 Jul 2011 09:42:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qe5tw-0007wt-F7 for qemu-devel@nongnu.org; Tue, 05 Jul 2011 09:42:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:19409) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qe5tw-0007wh-1B for qemu-devel@nongnu.org; Tue, 05 Jul 2011 09:42:56 -0400 Date: Tue, 5 Jul 2011 16:43:11 +0300 From: "Michael S. Tsirkin" Message-ID: <20110705134311.GA27541@redhat.com> References: <20110704094358.GA10960@redhat.com> <20110705132936.GA25836@valinux.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110705132936.GA25836@valinux.co.jp> Subject: Re: [Qemu-devel] [PATCH] pci: add standard bridge device List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Isaku Yamahata Cc: Kevin Wolf , Blue Swirl , Anthony Liguori , qemu-devel@nongnu.org, Stefan Hajnoczi On Tue, Jul 05, 2011 at 10:29:36PM +0900, Isaku Yamahata wrote: > On Mon, Jul 04, 2011 at 12:43:59PM +0300, Michael S. Tsirkin wrote: > > +/* Mapping mandated by PCI-to-PCI Bridge architecture specification, > > + * revision 1.2 */ > > +/* Table 9-1: Interrupt Binding for Devices Behind a Bridge */ > > +static int pci_bridge_dev_map_irq_fn(PCIDevice *dev, int irq_num) > > +{ > > + return (irq_num + PCI_SLOT(dev->devfn) + irq_num) % PCI_NUM_PINS; > ^^^^^^^ ^^^^^^^ > Typo. There are 2 irq_num. Good catch, thanks. > -- > yamahata