From owner-freebsd-alpha Sun Oct 24 6:25:50 1999 Delivered-To: freebsd-alpha@freebsd.org Received: from smtp04.wxs.nl (smtp04.wxs.nl [195.121.6.59]) by hub.freebsd.org (Postfix) with ESMTP id E4FAE14F5D; Sun, 24 Oct 1999 06:25:36 -0700 (PDT) (envelope-from bottemanne@capitolonline.nl) Received: from capitolonline.nl ([195.121.169.45]) by smtp04.wxs.nl (Netscape Messaging Server 3.61) with ESMTP id AAA6922; Sun, 24 Oct 1999 15:25:14 +0200 Message-ID: <3813145D.72C0EF6A@capitolonline.nl> Date: Sun, 24 Oct 1999 15:14:53 +0100 From: Aernoudt Bottemanne X-Mailer: Mozilla 4.04 [en] (OS/2; I) MIME-Version: 1.0 To: Andrew Gallatin Cc: dfr@nlsystems.com, alpha@freebsd.org, "freebsd-alpha@freebsd.org" Subject: Re: small fix for irq mappig probelm References: <14354.8792.767477.900314@grasshopper.cs.duke.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org This fix works for my PWS 433au (miata) ! Just to let you know. Andrew Gallatin wrote: > Doug, > > When using a kernel built after your recent changes to pci.c, alpha > PCI devices with intline==0 fail to map their interrupt. This > typically happens with the on-board tulip in a miata: > > de0: irq 0 at device 3.0 on pci0 > pci_map_int: can't allocate interrupt > > The appended patch fixes it, but I am unsure it is correct. Can you > approve it? > > Thanks, > > Drew > ------------------------------------------------------------------------------ > Andrew Gallatin, Sr Systems Programmer http://www.cs.duke.edu/~gallatin > Duke University Email: gallatin@cs.duke.edu > Department of Computer Science Phone: (919) 660-6590 > > Index: sys/pci/pci.c > =================================================================== > RCS file: /home/ncvs/src/sys/pci/pci.c,v > retrieving revision 1.123 > diff -u -r1.123 pci.c > --- pci.c 1999/10/17 06:48:47 1.123 > +++ pci.c 1999/10/23 20:56:52 > @@ -1045,7 +1045,7 @@ > (unsigned int) base, ln2size); > } > } > - if (cfg->intline) > + if (cfg->intpin) > resource_list_add(rl, SYS_RES_IRQ, 0, > cfg->intline, cfg->intline, 1); > } > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-alpha" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message