summaryrefslogtreecommitdiff
path: root/sys/dev/mlx/mlx_disk.c
diff options
context:
space:
mode:
authorScott Long <scottl@FreeBSD.org>2004-11-25 12:15:49 +0000
committerScott Long <scottl@FreeBSD.org>2004-11-25 12:15:49 +0000
commit4161b1a1e9704367e97c48fec6cb74c848c91060 (patch)
tree503350cbd0480256ec57e0bd4e1c46056223d646 /sys/dev/mlx/mlx_disk.c
parentf5b2f15a0ca5249088c9391854d3a1e0ea54a4bf (diff)
Notes
Diffstat (limited to 'sys/dev/mlx/mlx_disk.c')
-rw-r--r--sys/dev/mlx/mlx_disk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/mlx/mlx_disk.c b/sys/dev/mlx/mlx_disk.c
index 8b19fa86b154..db86bf85e2e7 100644
--- a/sys/dev/mlx/mlx_disk.c
+++ b/sys/dev/mlx/mlx_disk.c
@@ -239,10 +239,10 @@ mlxd_attach(device_t dev)
* maximum except on v2 cards where the maximum is set to 8 pages.
*/
if (sc->mlxd_controller->mlx_iftype == MLX_IFTYPE_2)
- sc->mlxd_disk->d_maxsize = 8 * PAGE_SIZE;
+ sc->mlxd_disk->d_maxsize = 8 * MLX_PAGE_SIZE;
else {
s1 = sc->mlxd_controller->mlx_enq2->me_maxblk * MLX_BLKSIZE;
- s2 = (sc->mlxd_controller->mlx_enq2->me_max_sg - 1) * PAGE_SIZE;
+ s2 = (sc->mlxd_controller->mlx_enq2->me_max_sg - 1) * MLX_PAGE_SIZE;
sc->mlxd_disk->d_maxsize = imin(s1, s2);
}