diff options
| author | Marius Strobl <marius@FreeBSD.org> | 2007-01-21 19:32:51 +0000 |
|---|---|---|
| committer | Marius Strobl <marius@FreeBSD.org> | 2007-01-21 19:32:51 +0000 |
| commit | c2175ff5cadf1e22b3054180ba69548b00a4a0de (patch) | |
| tree | 0022c3a9a6df560b7e242e09f139c9d0dd23011b /sys/dev/firewire | |
| parent | e54f6746527c81d586dd8fa24590bcb3ef7c290a (diff) | |
Notes
Diffstat (limited to 'sys/dev/firewire')
| -rw-r--r-- | sys/dev/firewire/fwohci_pci.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/firewire/fwohci_pci.c b/sys/dev/firewire/fwohci_pci.c index a1b7e2664df4..b5801f091578 100644 --- a/sys/dev/firewire/fwohci_pci.c +++ b/sys/dev/firewire/fwohci_pci.c @@ -357,7 +357,13 @@ fwohci_pci_attach(device_t self) return ENXIO; } - err = bus_dma_tag_create(/*parent*/NULL, /*alignment*/1, + err = bus_dma_tag_create( +#if defined(__FreeBSD__) && __FreeBSD_version >= 700020 + /*parent*/bus_get_dma_tag(self), +#else + /*parent*/NULL, +#endif + /*alignment*/1, /*boundary*/0, #if BOUNCE_BUFFER_TEST /*lowaddr*/BUS_SPACE_MAXADDR_24BIT, |
