summaryrefslogtreecommitdiffstats
path: root/sys/dev/fxp
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2011-02-26 17:28:09 +0000
committermarius <marius@FreeBSD.org>2011-02-26 17:28:09 +0000
commitf7e9054a355f7a2357a86cd09367d2f054df5335 (patch)
treecdd3ddc07f13ff49c25b04d3114e514bb17fda2a /sys/dev/fxp
parent73534f663644915b3d46e5abab1ae531fd9fa6c3 (diff)
downloadFreeBSD-src-f7e9054a355f7a2357a86cd09367d2f054df5335.zip
FreeBSD-src-f7e9054a355f7a2357a86cd09367d2f054df5335.tar.gz
- Allocate the DMA memory shared between the host and the controller as
coherent. - Update a comment to no longer reference Alpha.
Diffstat (limited to 'sys/dev/fxp')
-rw-r--r--sys/dev/fxp/if_fxp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/fxp/if_fxp.c b/sys/dev/fxp/if_fxp.c
index 51e8ef5..7fd1b8c 100644
--- a/sys/dev/fxp/if_fxp.c
+++ b/sys/dev/fxp/if_fxp.c
@@ -87,7 +87,7 @@ MODULE_DEPEND(fxp, miibus, 1, 1, 1);
#include "miibus_if.h"
/*
- * NOTE! On the Alpha, we have an alignment constraint. The
+ * NOTE! On !x86 we typically have an alignment constraint. The
* card DMAs the packet immediately following the RFA. However,
* the first thing in the packet is a 14-byte Ethernet header.
* This means that the packet is misaligned. To compensate,
@@ -675,7 +675,7 @@ fxp_attach(device_t dev)
}
error = bus_dmamem_alloc(sc->fxp_stag, (void **)&sc->fxp_stats,
- BUS_DMA_NOWAIT | BUS_DMA_ZERO, &sc->fxp_smap);
+ BUS_DMA_NOWAIT | BUS_DMA_COHERENT | BUS_DMA_ZERO, &sc->fxp_smap);
if (error) {
device_printf(dev, "could not allocate stats DMA memory\n");
goto fail;
@@ -697,7 +697,7 @@ fxp_attach(device_t dev)
}
error = bus_dmamem_alloc(sc->cbl_tag, (void **)&sc->fxp_desc.cbl_list,
- BUS_DMA_NOWAIT | BUS_DMA_ZERO, &sc->cbl_map);
+ BUS_DMA_NOWAIT | BUS_DMA_COHERENT | BUS_DMA_ZERO, &sc->cbl_map);
if (error) {
device_printf(dev, "could not allocate TxCB DMA memory\n");
goto fail;
@@ -722,7 +722,7 @@ fxp_attach(device_t dev)
}
error = bus_dmamem_alloc(sc->mcs_tag, (void **)&sc->mcsp,
- BUS_DMA_NOWAIT | BUS_DMA_ZERO, &sc->mcs_map);
+ BUS_DMA_NOWAIT | BUS_DMA_COHERENT | BUS_DMA_ZERO, &sc->mcs_map);
if (error) {
device_printf(dev,
"could not allocate multicast setup DMA memory\n");
OpenPOWER on IntegriCloud