diff options
Diffstat (limited to 'sys/dev/firewire/fwdev.c')
-rw-r--r-- | sys/dev/firewire/fwdev.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/dev/firewire/fwdev.c b/sys/dev/firewire/fwdev.c index a85db14..a25af15 100644 --- a/sys/dev/firewire/fwdev.c +++ b/sys/dev/firewire/fwdev.c @@ -921,13 +921,21 @@ fw_poll(dev_t dev, int events, fw_proc *td) } static int +#if __FreeBSD_version < 500000 +fw_mmap (dev_t dev, vm_offset_t offset, int nproto) +#else fw_mmap (dev_t dev, vm_offset_t offset, vm_offset_t *paddr, int nproto) +#endif { struct firewire_softc *fc; int unit = DEV2UNIT(dev); if (DEV_FWMEM(dev)) +#if __FreeBSD_version < 500000 + return fwmem_mmap(dev, offset, nproto); +#else return fwmem_mmap(dev, offset, paddr, nproto); +#endif fc = devclass_get_softc(firewire_devclass, unit); |