Date: Mon, 2 Apr 2001 20:23:44 -0400 (EDT) From: Andrew Gallatin <gallatin@cs.duke.edu> To: Bernd Walter <ticso@mail.cicely.de> Cc: freebsd-alpha@FreeBSD.ORG Subject: Re: Funny Interrupt settings on AXPpci33 (fwd) Message-ID: <15049.6160.526144.865577@grasshopper.cs.duke.edu> In-Reply-To: <20010403001827.B14039@cicely20.cicely.de> References: <Pine.LNX.4.21.0104021434370.3303-100000@zeppo.feral.com> <15048.61977.954793.801365@grasshopper.cs.duke.edu> <20010403001827.B14039@cicely20.cicely.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Try this, it should shut up the weird slot number messages and may actually DTR in case its not a slot that needs to be warped. Drew Index: alpha/alpha/dec_axppci_33.c =================================================================== RCS file: /home/ncvs/src/sys/alpha/alpha/dec_axppci_33.c,v retrieving revision 1.11 diff -u -r1.11 dec_axppci_33.c --- alpha/alpha/dec_axppci_33.c 2001/02/01 21:59:00 1.11 +++ alpha/alpha/dec_axppci_33.c 2001/04/03 00:09:22 @@ -233,8 +233,6 @@ break; default: - printf("dec_axppci_33_intr_map: weird slot number %d\n", - pci_get_slot(dev)); return(255); } Index: alpha/pci/lca_pci.c =================================================================== RCS file: /home/ncvs/src/sys/alpha/pci/lca_pci.c,v retrieving revision 1.9 diff -u -r1.9 lca_pci.c --- alpha/pci/lca_pci.c 2000/12/08 22:11:23 1.9 +++ alpha/pci/lca_pci.c 2001/04/03 00:08:43 @@ -34,6 +34,8 @@ #include <machine/bus.h> #include <sys/rman.h> #include <pci/pcivar.h> +#include <pci/pcireg.h> +#include <machine/cpuconf.h> #include <machine/swiz.h> #include <machine/md_var.h> @@ -134,6 +136,14 @@ lca_pcib_read_config(device_t dev, u_int b, u_int s, u_int f, u_int reg, int width) { + if ((reg == PCIR_INTLINE) && (width == 1)) { + int pin, line; + + pin = lca_pcib_read_config(dev, b, s, f, PCIR_INTPIN, 1); + line = platform.pci_intr_route(NULL, dev, pin); + if ( line != 255) + return (line); + } switch (width) { case 1: CFGREAD(b, s, f, reg, BYTE, u_int8_t); 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?15049.6160.526144.865577>