Deleted Added
full compact
scsi_da.c (208928) scsi_da.c (210471)
1/*-
2 * Implementation of SCSI Direct Access Peripheral driver for CAM.
3 *
4 * Copyright (c) 1997 Justin T. Gibbs.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 13 unchanged lines hidden (view full) ---

22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 */
28
29#include <sys/cdefs.h>
1/*-
2 * Implementation of SCSI Direct Access Peripheral driver for CAM.
3 *
4 * Copyright (c) 1997 Justin T. Gibbs.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 13 unchanged lines hidden (view full) ---

22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 */
28
29#include <sys/cdefs.h>
30__FBSDID("$FreeBSD: head/sys/cam/scsi/scsi_da.c 208928 2010-06-08 22:46:44Z mjacob $");
30__FBSDID("$FreeBSD: head/sys/cam/scsi/scsi_da.c 210471 2010-07-25 15:43:52Z mav $");
31
32#include <sys/param.h>
33
34#ifdef _KERNEL
35#include <sys/systm.h>
36#include <sys/kernel.h>
37#include <sys/bio.h>
38#include <sys/sysctl.h>

--- 1266 unchanged lines hidden (view full) ---

1305 else
1306 softc->disk->d_maxsize = cpi.maxio;
1307 softc->disk->d_unit = periph->unit_number;
1308 softc->disk->d_flags = 0;
1309 if ((softc->quirks & DA_Q_NO_SYNC_CACHE) == 0)
1310 softc->disk->d_flags |= DISKFLAG_CANFLUSHCACHE;
1311 strlcpy(softc->disk->d_ident, cgd->serial_num,
1312 MIN(sizeof(softc->disk->d_ident), cgd->serial_num_len + 1));
31
32#include <sys/param.h>
33
34#ifdef _KERNEL
35#include <sys/systm.h>
36#include <sys/kernel.h>
37#include <sys/bio.h>
38#include <sys/sysctl.h>

--- 1266 unchanged lines hidden (view full) ---

1305 else
1306 softc->disk->d_maxsize = cpi.maxio;
1307 softc->disk->d_unit = periph->unit_number;
1308 softc->disk->d_flags = 0;
1309 if ((softc->quirks & DA_Q_NO_SYNC_CACHE) == 0)
1310 softc->disk->d_flags |= DISKFLAG_CANFLUSHCACHE;
1311 strlcpy(softc->disk->d_ident, cgd->serial_num,
1312 MIN(sizeof(softc->disk->d_ident), cgd->serial_num_len + 1));
1313 softc->disk->d_hba_vendor = cpi.hba_vendor;
1314 softc->disk->d_hba_device = cpi.hba_device;
1315 softc->disk->d_hba_subvendor = cpi.hba_subvendor;
1316 softc->disk->d_hba_subdevice = cpi.hba_subdevice;
1313 disk_create(softc->disk, DISK_VERSION);
1314 mtx_lock(periph->sim->mtx);
1315
1316 xpt_schedule(periph, CAM_PRIORITY_DEV);
1317
1318 return(CAM_REQ_CMP);
1319}
1320

--- 849 unchanged lines hidden ---
1317 disk_create(softc->disk, DISK_VERSION);
1318 mtx_lock(periph->sim->mtx);
1319
1320 xpt_schedule(periph, CAM_PRIORITY_DEV);
1321
1322 return(CAM_REQ_CMP);
1323}
1324

--- 849 unchanged lines hidden ---