]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
We represent PCI intpin's two different ways. One is the way that the
authorjhb <jhb@FreeBSD.org>
Wed, 10 Sep 2003 06:00:53 +0000 (06:00 +0000)
committerjhb <jhb@FreeBSD.org>
Wed, 10 Sep 2003 06:00:53 +0000 (06:00 +0000)
commitb45d8ce18f92c139dab3d8763facb7ba267503c5
treee1bf18bcb34927a0fafcff1a133eba7595302941
parentf1adf3f35541fa8b3018f2d830c061eeef3e600b
We represent PCI intpin's two different ways.  One is the way that the
intpin register is expressed in hardware where 0 means none, 1 means INTA,
2 INTB, etc.  The other way is commonly used in loops where 0 means INTA,
1 means INTB, etc.  The matchpin argument to pci_cfgintr_search() is
supposed to be the first form, but we passsed in a loop index of the
second.  This fix adds one to the loop index to convert to the first form.

Reported by: Pavlin Radoslavov <pavlin@icir.org>
sys/i386/pci/pci_cfgreg.c
sys/i386/pci/pci_pir.c