summaryrefslogtreecommitdiff
path: root/sys/arch/alpha/pci/pci_1000a.c
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2004-06-28 02:28:44 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2004-06-28 02:28:44 +0000
commit2d2f1330c2629516ed3a6392bb05b754eccc7198 (patch)
treea2d1568c05e228e271d8ff8d0dc49c0fd318f85c /sys/arch/alpha/pci/pci_1000a.c
parentf0dfa358923d9feb4fdf1633601becea7e11ac3d (diff)
Use new event counter API for interrupt counting on alpha. By me, with some
edits by Theo. deraadt@ ok
Diffstat (limited to 'sys/arch/alpha/pci/pci_1000a.c')
-rw-r--r--sys/arch/alpha/pci/pci_1000a.c30
1 files changed, 1 insertions, 29 deletions
diff --git a/sys/arch/alpha/pci/pci_1000a.c b/sys/arch/alpha/pci/pci_1000a.c
index 5392264f46d..0579b368bed 100644
--- a/sys/arch/alpha/pci/pci_1000a.c
+++ b/sys/arch/alpha/pci/pci_1000a.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pci_1000a.c,v 1.1 2002/06/30 16:24:40 miod Exp $ */
+/* $OpenBSD: pci_1000a.c,v 1.2 2004/06/28 02:28:42 aaron Exp $ */
/* $NetBSD: pci_1000a.c,v 1.14 2001/07/27 00:25:20 thorpej Exp $ */
/*
@@ -101,9 +101,6 @@ int dec_1000a_intr_map(void *, pcitag_t, int, int,
pci_intr_handle_t *);
const char *dec_1000a_intr_string(void *, pci_intr_handle_t);
int dec_1000a_intr_line(void *, pci_intr_handle_t);
-#if 0
-const struct evcnt *dec_1000a_intr_evcnt(void *, pci_intr_handle_t);
-#endif
void *dec_1000a_intr_establish(void *, pci_intr_handle_t,
int, int (*func)(void *), void *, char *);
void dec_1000a_intr_disestablish(void *, void *);
@@ -137,9 +134,6 @@ pci_1000a_pickintr(core, iot, memt, pc)
pc->pc_intr_map = dec_1000a_intr_map;
pc->pc_intr_string = dec_1000a_intr_string;
pc->pc_intr_line = dec_1000a_intr_line;
-#if 0
- pc->pc_intr_evcnt = dec_1000a_intr_evcnt;
-#endif
pc->pc_intr_establish = dec_1000a_intr_establish;
pc->pc_intr_disestablish = dec_1000a_intr_disestablish;
@@ -150,14 +144,6 @@ pci_1000a_pickintr(core, iot, memt, pc)
for (i = 0; i < PCI_NIRQ; i++) {
alpha_shared_intr_set_maxstrays(dec_1000a_pci_intr, i,
PCI_STRAY_MAX);
-
-#if 0
- cp = alpha_shared_intr_string(dec_1000a_pci_intr, i);
- sprintf(cp, "irq %d", i);
- evcnt_attach_dynamic(alpha_shared_intr_evcnt(
- dec_1000a_pci_intr, i), EVCNT_TYPE_INTR, NULL,
- "dec_1000a", cp);
-#endif
}
pci_1000a_imi();
@@ -244,20 +230,6 @@ dec_1000a_intr_line(ccv, ih)
#endif
}
-#if 0
-const struct evcnt *
-dec_1000a_intr_evcnt(ccv, ih)
- void *ccv;
- pci_intr_handle_t ih;
-{
-
- if (ih >= PCI_NIRQ)
- panic("dec_1000a_intr_evcnt: bogus dec_1000a IRQ 0x%lx", ih);
-
- return (alpha_shared_intr_evcnt(dec_1000a_pci_intr, ih));
-}
-#endif
-
void *
dec_1000a_intr_establish(ccv, ih, level, func, arg, name)
void *ccv;