Fix previous changes; accept and forward a device name, do not just use
authortholo <tholo@openbsd.org>
Fri, 22 Mar 1996 18:29:50 +0000 (18:29 +0000)
committertholo <tholo@openbsd.org>
Fri, 22 Mar 1996 18:29:50 +0000 (18:29 +0000)
a generic name "pci" for interrupt statistics

sys/arch/i386/pci/pci_machdep.c

index 856588f..b84cf3c 100644 (file)
@@ -373,11 +373,12 @@ pci_map_mem(tag, reg, vap, pap)
 }
 
 void *
-pci_map_int(tag, level, func, arg)
+pci_map_int(tag, level, func, arg, what)
        pcitag_t tag;
        int level;
        int (*func) __P((void *));
        void *arg;
+       char *what;
 {
        pcireg_t data;
        int pin, line;
@@ -429,5 +430,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, IST_LEVEL, level, func, arg, "pci");
+       return isa_intr_establish(line, IST_LEVEL, level, func, arg, what);
 }