summaryrefslogtreecommitdiffstats
path: root/sys/dev/firewire/fwohci_pci.c
diff options
context:
space:
mode:
authorsimokawa <simokawa@FreeBSD.org>2003-07-04 14:04:41 +0000
committersimokawa <simokawa@FreeBSD.org>2003-07-04 14:04:41 +0000
commit1a28b01e3111666aa59273432a22b76afc30bcf9 (patch)
tree6f6e2300c554047a782f3fc1a1aaabb874fc1cf5 /sys/dev/firewire/fwohci_pci.c
parent4a052c80dfaa6c6be75a1cf4c73594306c024c43 (diff)
downloadFreeBSD-src-1a28b01e3111666aa59273432a22b76afc30bcf9.zip
FreeBSD-src-1a28b01e3111666aa59273432a22b76afc30bcf9.tar.gz
Add compatibility for FreeBSD-4.
Diffstat (limited to 'sys/dev/firewire/fwohci_pci.c')
-rw-r--r--sys/dev/firewire/fwohci_pci.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/firewire/fwohci_pci.c b/sys/dev/firewire/fwohci_pci.c
index 4166239..96cc01c 100644
--- a/sys/dev/firewire/fwohci_pci.c
+++ b/sys/dev/firewire/fwohci_pci.c
@@ -301,8 +301,11 @@ fwohci_pci_attach(device_t self)
/*nsegments*/0x20,
/*maxsegsz*/0x8000,
/*flags*/BUS_DMA_ALLOCNOW,
+#if __FreeBSD_version >= 501102
/*lockfunc*/busdma_lock_mutex,
- /*lockarg*/&Giant, &sc->fc.dmat);
+ /*lockarg*/&Giant,
+#endif
+ &sc->fc.dmat);
if (err != 0) {
printf("fwohci_pci_attach: Could not allocate DMA tag "
"- error %d\n", err);
OpenPOWER on IntegriCloud