From 29edba568bada9627639e99c56c27b7967483609 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Sat, 28 Jul 2001 04:08:25 +0000 Subject: [PATCH] It is spelled INTR_FAST in current and INTR_TYPE_FAST in stable, so try to make allowances. --- sys/pccard/pcic.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/pccard/pcic.c b/sys/pccard/pcic.c index e4e9b455794a..b69f0e990168 100644 --- a/sys/pccard/pcic.c +++ b/sys/pccard/pcic.c @@ -708,7 +708,11 @@ pcic_setup_intr(device_t dev, device_t child, struct resource *irq, struct pccard_devinfo *devi = device_get_ivars(child); int err; +#if __FreeBSD_version >= 500000 if (sc->csc_route == pci_parallel && (flags & INTR_FAST)) +#else + if (sc->csc_route == pci_parallel && (flags & INTR_TYPE_FAST)) +#endif return (EINVAL); if (((1 << rman_get_start(irq)) & PCIC_INT_MASK_ALLOWED) == 0) { @@ -852,4 +856,3 @@ pcic_do_stat_delta(struct pcic_slot *sp) else pccard_event(sp->slt, card_inserted); } -