summaryrefslogtreecommitdiffstats
path: root/sys/dev/aac/aac_pci.c
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2003-02-10 00:34:24 +0000
committerscottl <scottl@FreeBSD.org>2003-02-10 00:34:24 +0000
commit2daf7453dde98804a70cc16585f80bd268c9a87e (patch)
treef1e3dc2506bcce1e8d198b6f3d0708e0a036dc58 /sys/dev/aac/aac_pci.c
parenta616f22441fef6592f8c15c7b6d9c2b733127d50 (diff)
downloadFreeBSD-src-2daf7453dde98804a70cc16585f80bd268c9a87e.zip
FreeBSD-src-2daf7453dde98804a70cc16585f80bd268c9a87e.tar.gz
Implement a new dynamic command allocator. FIBs are allocated in 1 page
blocks now, which should eliminate problems with the driver failing to attach due to insufficient contiguous RAM. Allow the FIB pool to grow from the default of 128 to the max of 512 as demand grows. Also pad the adapter init struct to work around the 2120/2200 DMA bug now that there is no longer a FIB slab.
Diffstat (limited to 'sys/dev/aac/aac_pci.c')
-rw-r--r--sys/dev/aac/aac_pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/aac/aac_pci.c b/sys/dev/aac/aac_pci.c
index 1182342..6f6b7e3 100644
--- a/sys/dev/aac/aac_pci.c
+++ b/sys/dev/aac/aac_pci.c
@@ -275,7 +275,7 @@ aac_pci_attach(device_t dev)
BUS_SPACE_MAXADDR, /* lowaddr */
BUS_SPACE_MAXADDR, /* highaddr */
NULL, NULL, /* filter, filterarg */
- 8192 + AAC_FIB_COUNT * /* XXX dma hack */
+ AAC_FIB_COUNT *
sizeof(struct aac_fib), 1, /* maxsize, nsegments */
BUS_SPACE_MAXSIZE_32BIT, /* maxsegsize */
0, /* flags */
OpenPOWER on IntegriCloud