aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/aac
diff options
context:
space:
mode:
authorScott Long <scottl@FreeBSD.org>2002-08-30 05:02:07 +0000
committerScott Long <scottl@FreeBSD.org>2002-08-30 05:02:07 +0000
commiteb3025b3ed2f7a00a9e99d4131b179b517349447 (patch)
tree835685f294d45206d76aab6779ca15884205ab30 /sys/dev/aac
parent447b3772dc3a01e489e242783023e581868101a1 (diff)
downloadsrc-eb3025b3ed2f7a00a9e99d4131b179b517349447.tar.gz
src-eb3025b3ed2f7a00a9e99d4131b179b517349447.zip
The aac driver needs 256K of contiguous physical memory in order to
attach. If it can't get that (highly likely if loaded as a module on a system that's been up for a while), give a more descriptive error message. Also clean up some nearby style nits. MFC after: 2 days
Notes
Notes: svn path=/head/; revision=102602
Diffstat (limited to 'sys/dev/aac')
-rw-r--r--sys/dev/aac/aac.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/aac/aac.c b/sys/dev/aac/aac.c
index 61925508b751..218ce441be7f 100644
--- a/sys/dev/aac/aac.c
+++ b/sys/dev/aac/aac.c
@@ -1115,8 +1115,9 @@ aac_alloc_commands(struct aac_softc *sc)
/* allocate the FIBs in DMAable memory and load them */
if (bus_dmamem_alloc(sc->aac_fib_dmat, (void **)&sc->aac_fibs,
- BUS_DMA_NOWAIT, &sc->aac_fibmap)) {
- return(ENOMEM);
+ BUS_DMA_NOWAIT, &sc->aac_fibmap)) {
+ printf("Not enough contiguous memory available.\n");
+ return (ENOMEM);
}
bus_dmamap_load(sc->aac_fib_dmat, sc->aac_fibmap, sc->aac_fibs,
AAC_FIB_COUNT * sizeof(struct aac_fib),
@@ -1132,7 +1133,7 @@ aac_alloc_commands(struct aac_softc *sc)
if (!bus_dmamap_create(sc->aac_buffer_dmat, 0, &cm->cm_datamap))
aac_release_command(cm);
}
- return(0);
+ return (0);
}
/*