summaryrefslogtreecommitdiffstats
path: root/sys/dev/aac
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2015-03-22 16:10:28 +0000
committermav <mav@FreeBSD.org>2015-03-22 16:10:28 +0000
commit346273b3b261e7e750cc49355b25c72c654b72f1 (patch)
treea46bd5b9cabd421b2112c53ef637b54114865854 /sys/dev/aac
parent6b287b9c19515c0b5e97d4273bd836a784e2c4b6 (diff)
downloadFreeBSD-src-346273b3b261e7e750cc49355b25c72c654b72f1.zip
FreeBSD-src-346273b3b261e7e750cc49355b25c72c654b72f1.tar.gz
Remove MAXBSIZE use from drivers where it has nothing to do.
In some cases limits are just not needed, in others -- DFLTPHYS is the right constant to use instead. MFC after: 1 month
Diffstat (limited to 'sys/dev/aac')
-rw-r--r--sys/dev/aac/aac.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/aac/aac.c b/sys/dev/aac/aac.c
index 3ea964f..1e53ac3 100644
--- a/sys/dev/aac/aac.c
+++ b/sys/dev/aac/aac.c
@@ -507,9 +507,9 @@ aac_alloc(struct aac_softc *sc)
BUS_SPACE_MAXADDR_32BIT, /* lowaddr */
BUS_SPACE_MAXADDR, /* highaddr */
NULL, NULL, /* filter, filterarg */
- MAXBSIZE, /* maxsize */
+ sc->aac_max_sectors << 9, /* maxsize */
sc->aac_sg_tablesize, /* nsegments */
- MAXBSIZE, /* maxsegsize */
+ BUS_SPACE_MAXSIZE_32BIT, /* maxsegsize */
BUS_DMA_ALLOCNOW, /* flags */
busdma_lock_mutex, /* lockfunc */
&sc->aac_io_lock, /* lockfuncarg */
OpenPOWER on IntegriCloud