diff options
author | imp <imp@FreeBSD.org> | 2001-07-28 04:08:25 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2001-07-28 04:08:25 +0000 |
commit | b6e97a575acfcfd6d9f435b771ec1a00b7ff8768 (patch) | |
tree | d85d62879e1ebabdc046cd56f9aea1088f6206d3 /sys/pccard/pcic.c | |
parent | a7b60bfc54071158170e971c75e1d224e2ebe45b (diff) | |
download | FreeBSD-src-b6e97a575acfcfd6d9f435b771ec1a00b7ff8768.zip FreeBSD-src-b6e97a575acfcfd6d9f435b771ec1a00b7ff8768.tar.gz |
It is spelled INTR_FAST in current and INTR_TYPE_FAST in stable, so try to
make allowances.
Diffstat (limited to 'sys/pccard/pcic.c')
-rw-r--r-- | sys/pccard/pcic.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/pccard/pcic.c b/sys/pccard/pcic.c index e4e9b45..b69f0e9 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); } - |