summaryrefslogtreecommitdiffstats
path: root/sys/powerpc
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2003-06-27 08:31:48 +0000
committerscottl <scottl@FreeBSD.org>2003-06-27 08:31:48 +0000
commitd68d16eebbbe84983098fc00d2276d32f26c88da (patch)
tree9b3a6384a2c468f145f29baaa1896d43b713513e /sys/powerpc
parent7cbe63ffd640bd17cb4f5aa1dfb37224f0351cac (diff)
downloadFreeBSD-src-d68d16eebbbe84983098fc00d2276d32f26c88da.zip
FreeBSD-src-d68d16eebbbe84983098fc00d2276d32f26c88da.tar.gz
Do the first and mostly mechanical step of adding mutex support to the
bus_dma async callback scheme. Note that sparc64 does not seem to do async callbacks. Note that ia64 callbacks might not be MPSAFE at the moment. Note that powerpc doesn't seem to do async callbacks due to the implementation being incomplete. Reviewed by: mostly silence on arch@
Diffstat (limited to 'sys/powerpc')
-rw-r--r--sys/powerpc/powerpc/busdma_machdep.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/powerpc/powerpc/busdma_machdep.c b/sys/powerpc/powerpc/busdma_machdep.c
index 34c737f..3d6d402 100644
--- a/sys/powerpc/powerpc/busdma_machdep.c
+++ b/sys/powerpc/powerpc/busdma_machdep.c
@@ -75,6 +75,7 @@ struct bus_dmamap {
bus_size_t buflen; /* unmapped buffer length */
bus_dmamap_callback_t *callback;
void *callback_arg;
+ struct mtx *callback_mtx;
};
/*
OpenPOWER on IntegriCloud