Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Oct 1999 15:14:53 +0100
From:      Aernoudt Bottemanne <bottemanne@capitolonline.nl>
To:        Andrew Gallatin <gallatin@cs.duke.edu>
Cc:        dfr@nlsystems.com, alpha@freebsd.org, "freebsd-alpha@freebsd.org" <freebsd-alpha@freebsd.org>
Subject:   Re: small fix for irq mappig probelm
Message-ID:  <3813145D.72C0EF6A@capitolonline.nl>
References:  <14354.8792.767477.900314@grasshopper.cs.duke.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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: <Digital 21143 Fast Ethernet> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3813145D.72C0EF6A>