summaryrefslogtreecommitdiffstats
path: root/sys/dev/mlx/mlx_pci.c
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>2000-05-06 08:54:33 +0000
committermsmith <msmith@FreeBSD.org>2000-05-06 08:54:33 +0000
commit9cfdfa9434715d06f368749139a813e66ee2ca7a (patch)
tree9b255a84e28773bacb3fb95666ea6b73036aae9b /sys/dev/mlx/mlx_pci.c
parent4b77d307471bc8c1eac6d2856702374846fb9a38 (diff)
downloadFreeBSD-src-9cfdfa9434715d06f368749139a813e66ee2ca7a.zip
FreeBSD-src-9cfdfa9434715d06f368749139a813e66ee2ca7a.tar.gz
Change the way that scatter/gather list tables are allocated so that we
can use all of the s/g entries available on smaller cards. This is necessary if we want to be able to handle a non-page-aligned 64k transfer on 2.x and 3.x firmware. Fix a missing splx() that may have left us at splbio() for longer than desired. Reduce shadowing of controller-supplied parameters a little.
Diffstat (limited to 'sys/dev/mlx/mlx_pci.c')
-rw-r--r--sys/dev/mlx/mlx_pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/mlx/mlx_pci.c b/sys/dev/mlx/mlx_pci.c
index 9a5a658..118e495 100644
--- a/sys/dev/mlx/mlx_pci.c
+++ b/sys/dev/mlx/mlx_pci.c
@@ -185,7 +185,7 @@ mlx_pci_attach(device_t dev)
BUS_SPACE_MAXADDR_32BIT, /* lowaddr */
BUS_SPACE_MAXADDR, /* highaddr */
NULL, NULL, /* filter, filterarg */
- MAXBSIZE, MLX_NSEG_NEW, /* maxsize, nsegments */
+ MAXBSIZE, MLX_NSEG, /* maxsize, nsegments */
BUS_SPACE_MAXSIZE_32BIT, /* maxsegsize */
BUS_DMA_ALLOCNOW, /* flags */
&sc->mlx_parent_dmat);
OpenPOWER on IntegriCloud