patch-1.3.50 linux/arch/alpha/kernel/bios32.c
Next file: linux/arch/alpha/kernel/entry.S
Previous file: linux/arch/alpha/kernel/Makefile
Back to the patch index
Back to the overall index
- Lines: 38
- Date:
Fri Dec 22 08:22:04 1995
- Orig file:
v1.3.49/linux/arch/alpha/kernel/bios32.c
- Orig date:
Sun Dec 17 11:43:09 1995
diff -u --recursive --new-file v1.3.49/linux/arch/alpha/kernel/bios32.c linux/arch/alpha/kernel/bios32.c
@@ -581,7 +581,7 @@
{ 0, 0, 2, 1, 0}, /* idsel 11 (slot furthest from ISA) KN25_PCI_SLOT0 */
{ 1, 1, 0, 2, 1}, /* idsel 12 (middle slot) KN25_PCI_SLOT1 */
#ifdef CONFIG_ALPHA_AVANTI
- { 1, 1, -1, -1, -1}, /* idsel 13 KN25_PCI_SLOT2 ??? */
+ { 1, 1, -1, -1, -1}, /* idsel 13 KN25_PCI_SLOT2 */
#endif /* CONFIG_ALPHA_AVANTI */
};
/*
@@ -595,7 +595,8 @@
* example, sound boards seem to like using IRQ 9.
*/
const unsigned int route_tab = 0x0b0a090f;
- unsigned char pin, level_bits;
+ unsigned int level_bits;
+ unsigned char pin;
int pirq;
pcibios_write_config_dword(0, PCI_DEVFN(7, 0), 0x60, route_tab);
@@ -634,8 +635,7 @@
dev->irq = (route_tab >> (8 * pirq)) & 0xff;
/* must set the PCI IRQs to level triggered */
- /* assume they are all >= 8 */
- level_bits |= (1 << (dev->irq - 8));
+ level_bits |= (1 << dev->irq);
#if PCI_MODIFY
/* tell the device: */
@@ -645,7 +645,7 @@
}
/* now, set any level-triggered IRQs */
if (level_bits)
- outb(level_bits, 0x4d1);
+ outw(level_bits, 0x4d0);
#if PCI_MODIFY
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this