summaryrefslogtreecommitdiff
path: root/sys/arch/alpha/pci/pci_machdep.h
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2001-08-17 22:26:59 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2001-08-17 22:26:59 +0000
commit5f794f8c1c7a349faa97c6ef092a96fcf48ca094 (patch)
treee2511d92dc642fc35e0925f4f7f3681fafc8f75f /sys/arch/alpha/pci/pci_machdep.h
parent0c3296d28b7e353e842dc384702aebc7653387c5 (diff)
provide a way to get the number used for irq line, not only a string
representation, this is needed for devices like cbb which pass the interrupt line down to the cardbus attachment and not getting the right line before pci_intr_map() has done it's dirty deed. tested on i386 by jason@, compiles on alpha by art@. ppc and mveppc are to be test-compiled, but should work (;
Diffstat (limited to 'sys/arch/alpha/pci/pci_machdep.h')
-rw-r--r--sys/arch/alpha/pci/pci_machdep.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/alpha/pci/pci_machdep.h b/sys/arch/alpha/pci/pci_machdep.h
index 49d25d81145..0bc4c544787 100644
--- a/sys/arch/alpha/pci/pci_machdep.h
+++ b/sys/arch/alpha/pci/pci_machdep.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pci_machdep.h,v 1.14 2001/06/26 21:13:44 art Exp $ */
+/* $OpenBSD: pci_machdep.h,v 1.15 2001/08/17 22:26:58 mickey Exp $ */
/* $NetBSD: pci_machdep.h,v 1.6 1996/11/19 04:49:21 cgd Exp $ */
/*
@@ -63,6 +63,7 @@ struct alpha_pci_chipset {
int (*pc_intr_map) __P((void *, pcitag_t, int, int,
pci_intr_handle_t *));
const char *(*pc_intr_string) __P((void *, pci_intr_handle_t));
+ int (*pc_intr_line) __P((void *, pci_intr_handle_t));
void *(*pc_intr_establish) __P((void *, pci_intr_handle_t,
int, int (*)(void *), void *, char *));
void (*pc_intr_disestablish) __P((void *, void *));
@@ -101,6 +102,8 @@ int alpha_sysctl_chipset(int *, u_int, char *, size_t *);
(*(c)->pc_intr_map)((c)->pc_intr_v, (it), (ip), (il), (ihp))
#define pci_intr_string(c, ih) \
(*(c)->pc_intr_string)((c)->pc_intr_v, (ih))
+#define pci_intr_line(c, ih) \
+ (*(c)->pc_intr_line)((c)->pc_intr_v, (ih))
#define pci_intr_establish(c, ih, l, h, a, nm) \
(*(c)->pc_intr_establish)((c)->pc_intr_v, (ih), (l), (h), (a), (nm))
#define pci_intr_disestablish(c, iv) \