diff options
author | Constantine Sapuntzakis <csapuntz@cvs.openbsd.org> | 2001-06-25 21:49:44 +0000 |
---|---|---|
committer | Constantine Sapuntzakis <csapuntz@cvs.openbsd.org> | 2001-06-25 21:49:44 +0000 |
commit | e8d7645b18028a41885bf639582894bf441c772a (patch) | |
tree | d130f2641eb6323b9f10f446441e0a672deb7fe9 /sys/arch/alpha/pci/pci_up1000.c | |
parent | 827fd424d109cad96aed555389352c10ea854184 (diff) |
Add disestablish for pciide on Alpha
Diffstat (limited to 'sys/arch/alpha/pci/pci_up1000.c')
-rw-r--r-- | sys/arch/alpha/pci/pci_up1000.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/sys/arch/alpha/pci/pci_up1000.c b/sys/arch/alpha/pci/pci_up1000.c index 6d65b81286b..a6869faef06 100644 --- a/sys/arch/alpha/pci/pci_up1000.c +++ b/sys/arch/alpha/pci/pci_up1000.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_up1000.c,v 1.2 2001/04/17 14:53:34 art Exp $ */ +/* $OpenBSD: pci_up1000.c,v 1.3 2001/06/25 21:49:43 csapuntz Exp $ */ /* $NetBSD: pci_up1000.c,v 1.6 2000/12/28 22:59:07 sommerfeld Exp $ */ /*- @@ -75,6 +75,8 @@ void api_up1000_intr_disestablish(void *, void *); void *api_up1000_pciide_compat_intr_establish(void *, struct device *, struct pci_attach_args *, int, int (*)(void *), void *); +void api_up1000_pciide_compat_intr_disestablish(void *, pci_chipset_tag_t, + void *); void pci_up1000_pickintr(struct irongate_config *icp) @@ -93,6 +95,8 @@ pci_up1000_pickintr(struct irongate_config *icp) pc->pc_pciide_compat_intr_establish = api_up1000_pciide_compat_intr_establish; + pc->pc_pciide_compat_intr_disestablish = + api_up1000_pciide_compat_intr_disestablish; #if NSIO sio_intr_setup(pc, iot); @@ -212,8 +216,13 @@ api_up1000_pciide_compat_intr_establish(void *icv, struct device *dev, func, arg, "up 1000 irq"); if (cookie == NULL) return (NULL); - printf("%s: %s channel interrupting at %s\n", dev->dv_xname, - PCIIDE_CHANNEL_NAME(chan), sio_intr_string(NULL /*XXX*/, irq)); #endif return (cookie); } + +void +api_up1000_pciide_compat_intr_disestablish(void *v, pci_chipset_tag_t pc, + void *cookie) +{ + sio_intr_disestablish(NULL, cookie); +} |