Deleted Added
full compact
scsi_da.c (109160) scsi_da.c (109623)
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

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

20 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
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 *
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

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

20 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
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 * $FreeBSD: head/sys/cam/scsi/scsi_da.c 109160 2003-01-13 05:09:07Z njl $
28 * $FreeBSD: head/sys/cam/scsi/scsi_da.c 109623 2003-01-21 08:56:16Z alfred $
29 */
30
31#ifdef _KERNEL
32#include "opt_hw_wdog.h"
33#endif /* _KERNEL */
34
35#include <sys/param.h>
36

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

570 disk_invalidate(&softc->disk);
571 softc->flags &= ~DA_FLAG_PACK_INVALID;
572 }
573 splx(s);
574
575 /* Do a read capacity */
576 rcap = (struct scsi_read_capacity_data *)malloc(sizeof(*rcap),
577 M_TEMP,
29 */
30
31#ifdef _KERNEL
32#include "opt_hw_wdog.h"
33#endif /* _KERNEL */
34
35#include <sys/param.h>
36

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

570 disk_invalidate(&softc->disk);
571 softc->flags &= ~DA_FLAG_PACK_INVALID;
572 }
573 splx(s);
574
575 /* Do a read capacity */
576 rcap = (struct scsi_read_capacity_data *)malloc(sizeof(*rcap),
577 M_TEMP,
578 M_WAITOK);
578 0);
579
580 ccb = cam_periph_getccb(periph, /*priority*/1);
581 scsi_read_capacity(&ccb->csio,
582 /*retries*/4,
583 /*cbfncp*/dadone,
584 MSG_SIMPLE_Q_TAG,
585 rcap,
586 SSD_FULL_SIZE,

--- 1251 unchanged lines hidden ---
579
580 ccb = cam_periph_getccb(periph, /*priority*/1);
581 scsi_read_capacity(&ccb->csio,
582 /*retries*/4,
583 /*cbfncp*/dadone,
584 MSG_SIMPLE_Q_TAG,
585 rcap,
586 SSD_FULL_SIZE,

--- 1251 unchanged lines hidden ---