use PCI_INTERRUPT_PIN_MAX and I386_PCI_INTERRUPT_LINE_NO_CONNECTION,
instead of magic number
This commit is contained in:
parent
81858d7c01
commit
663add1b20
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pci_machdep.c,v 1.38 2000/06/29 08:44:58 mrg Exp $ */
|
||||
/* $NetBSD: pci_machdep.c,v 1.39 2000/07/18 11:23:28 soda Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
|
||||
@ -478,7 +478,7 @@ pci_intr_map(pc, intrtag, pin, line, ihp)
|
||||
goto bad;
|
||||
}
|
||||
|
||||
if (pin > 4) {
|
||||
if (pin > PCI_INTERRUPT_PIN_MAX) {
|
||||
printf("pci_intr_map: bad interrupt pin %d\n", pin);
|
||||
goto bad;
|
||||
}
|
||||
@ -497,7 +497,7 @@ pci_intr_map(pc, intrtag, pin, line, ihp)
|
||||
* that the BIOS did its job, we also recognize that as meaning that
|
||||
* the BIOS has not configured the device.
|
||||
*/
|
||||
if (line == 0 || line == 255) {
|
||||
if (line == 0 || line == I386_PCI_INTERRUPT_LINE_NO_CONNECTION) {
|
||||
printf("pci_intr_map: no mapping for pin %c\n", '@' + pin);
|
||||
goto bad;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user