From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:37240) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qe5h9-0003T8-Ej for qemu-devel@nongnu.org; Tue, 05 Jul 2011 09:29:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qe5h7-0005Nh-Oj for qemu-devel@nongnu.org; Tue, 05 Jul 2011 09:29:43 -0400 Received: from mail.valinux.co.jp ([210.128.90.3]:45859) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qe5h7-0005MZ-5k for qemu-devel@nongnu.org; Tue, 05 Jul 2011 09:29:41 -0400 Date: Tue, 5 Jul 2011 22:29:36 +0900 From: Isaku Yamahata Message-ID: <20110705132936.GA25836@valinux.co.jp> References: <20110704094358.GA10960@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110704094358.GA10960@redhat.com> Subject: Re: [Qemu-devel] [PATCH] pci: add standard bridge device List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: Kevin Wolf , Blue Swirl , Anthony Liguori , qemu-devel@nongnu.org, Stefan Hajnoczi 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. -- yamahata