mlx_disk.c (111469) | mlx_disk.c (111497) |
---|---|
1/*- 2 * Copyright (c) 1999 Jonathan Lemon 3 * Copyright (c) 1999 Michael Smith 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * | 1/*- 2 * Copyright (c) 1999 Jonathan Lemon 3 * Copyright (c) 1999 Michael Smith 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * |
27 * $FreeBSD: head/sys/dev/mlx/mlx_disk.c 111469 2003-02-25 07:35:41Z phk $ | 27 * $FreeBSD: head/sys/dev/mlx/mlx_disk.c 111497 2003-02-25 20:35:56Z jhb $ |
28 */ 29 30/* 31 * Disk driver for Mylex DAC960 RAID adapters. 32 */ 33 34#include <sys/param.h> 35#include <sys/systm.h> --- 185 unchanged lines hidden (view full) --- 221 DEVSTAT_NO_ORDERED_TAGS, 222 DEVSTAT_TYPE_STORARRAY | DEVSTAT_TYPE_IF_OTHER, 223 DEVSTAT_PRIORITY_ARRAY); 224 225 sc->mlxd_disk.d_open = mlxd_open; 226 sc->mlxd_disk.d_close = mlxd_close; 227 sc->mlxd_disk.d_ioctl = mlxd_ioctl; 228 sc->mlxd_disk.d_strategy = mlxd_strategy; | 28 */ 29 30/* 31 * Disk driver for Mylex DAC960 RAID adapters. 32 */ 33 34#include <sys/param.h> 35#include <sys/systm.h> --- 185 unchanged lines hidden (view full) --- 221 DEVSTAT_NO_ORDERED_TAGS, 222 DEVSTAT_TYPE_STORARRAY | DEVSTAT_TYPE_IF_OTHER, 223 DEVSTAT_PRIORITY_ARRAY); 224 225 sc->mlxd_disk.d_open = mlxd_open; 226 sc->mlxd_disk.d_close = mlxd_close; 227 sc->mlxd_disk.d_ioctl = mlxd_ioctl; 228 sc->mlxd_disk.d_strategy = mlxd_strategy; |
229 sc->mlxd_disk.d_name = "mxld"; | 229 sc->mlxd_disk.d_name = "mlxd"; |
230 sc->mlxd_disk.d_drv1 = sc; 231 sc->mlxd_disk.d_sectorsize = MLX_BLKSIZE; 232 sc->mlxd_disk.d_mediasize = MLX_BLKSIZE * (off_t)sc->mlxd_drive->ms_size; 233 sc->mlxd_disk.d_fwsectors = sc->mlxd_drive->ms_sectors; 234 sc->mlxd_disk.d_fwheads = sc->mlxd_drive->ms_heads; 235 236 /* 237 * Set maximum I/O size to the lesser of the recommended maximum and the practical --- 24 unchanged lines hidden --- | 230 sc->mlxd_disk.d_drv1 = sc; 231 sc->mlxd_disk.d_sectorsize = MLX_BLKSIZE; 232 sc->mlxd_disk.d_mediasize = MLX_BLKSIZE * (off_t)sc->mlxd_drive->ms_size; 233 sc->mlxd_disk.d_fwsectors = sc->mlxd_drive->ms_sectors; 234 sc->mlxd_disk.d_fwheads = sc->mlxd_drive->ms_heads; 235 236 /* 237 * Set maximum I/O size to the lesser of the recommended maximum and the practical --- 24 unchanged lines hidden --- |