diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-12-27 22:28:01 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-12-27 22:28:01 +0000 |
commit | cc3c3df8ea2159a23f1b117d98e5c76488df3ade (patch) | |
tree | ed4147c5222f1ac6a2718efbdd4728b5b1b53d84 /sys/arch | |
parent | 3c97c55eaca19a64b884c5c37af0d0a44c15dbf2 (diff) |
from netbsd:
The IST_* and IPL_* constants are not bus-specific; don't treat them as such.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/i386/pci/pci_machdep.c | 35 |
1 files changed, 3 insertions, 32 deletions
diff --git a/sys/arch/i386/pci/pci_machdep.c b/sys/arch/i386/pci/pci_machdep.c index 788772b67d4..404fe2e1c54 100644 --- a/sys/arch/i386/pci/pci_machdep.c +++ b/sys/arch/i386/pci/pci_machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: pci_machdep.c,v 1.17 1995/07/27 21:39:59 cgd Exp $ */ +/* $NetBSD: pci_machdep.c,v 1.18 1995/12/24 02:30:34 mycroft Exp $ */ /* * Copyright (c) 1994 Charles Hannum. All rights reserved. @@ -60,8 +60,6 @@ int pci_mode = -1; -static isa_intrlevel pcilevel_to_isa __P((pci_intrlevel level)); - int pcimatch __P((struct device *, void *, void *)); void pciattach __P((struct device *, struct device *, void *)); @@ -377,7 +375,7 @@ pci_map_mem(tag, reg, vap, pap) void * pci_map_int(tag, level, func, arg) pcitag_t tag; - pci_intrlevel level; + int level; int (*func) __P((void *)); void *arg; { @@ -431,32 +429,5 @@ pci_map_int(tag, level, func, arg) printf("pci_map_int: pin %c mapped to line %d\n", '@' + pin, line); #endif - return isa_intr_establish(line, ISA_IST_LEVEL, pcilevel_to_isa(level), - func, arg); -} - -static isa_intrlevel -pcilevel_to_isa(level) - pci_intrlevel level; -{ - - switch (level) { - case PCI_IPL_NONE: - return (ISA_IPL_NONE); - - case PCI_IPL_BIO: - return (ISA_IPL_BIO); - - case PCI_IPL_NET: - return (ISA_IPL_NET); - - case PCI_IPL_TTY: - return (ISA_IPL_TTY); - - case PCI_IPL_CLOCK: - return (ISA_IPL_CLOCK); - - default: - panic("pcilevel_to_isa: unknown level %d\n", level); - } + return isa_intr_establish(line, IST_LEVEL, level, func, arg); } |