Deleted Added
full compact
scsi_da.c (86177) scsi_da.c (86313)
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 86177 2001-11-07 23:11:13Z kbyanc $
28 * $FreeBSD: head/sys/cam/scsi/scsi_da.c 86313 2001-11-13 01:08:54Z ps $
29 */
30
31#ifdef _KERNEL
32#include "opt_hw_wdog.h"
33#endif /* _KERNEL */
34
35#include <sys/param.h>
36

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

793 CAM_SCSI_STATUS_ERROR)
794 scsi_sense_print(&csio);
795 else
796 printf("status == 0x%x, scsi status == 0x%x\n",
797 csio.ccb_h.status, csio.scsi_status);
798 return(EIO);
799 }
800
29 */
30
31#ifdef _KERNEL
32#include "opt_hw_wdog.h"
33#endif /* _KERNEL */
34
35#include <sys/param.h>
36

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

793 CAM_SCSI_STATUS_ERROR)
794 scsi_sense_print(&csio);
795 else
796 printf("status == 0x%x, scsi status == 0x%x\n",
797 csio.ccb_h.status, csio.scsi_status);
798 return(EIO);
799 }
800
801 if (dumpstatus(addr, (long)(num * softc->params.secsize)) < 0)
801 if (dumpstatus(addr, (off_t)num * softc->params.secsize) < 0)
802 return (EINTR);
803
804 /* update block count */
805 num -= blkcnt * dumppages;
806 blknum += blkcnt * dumppages;
807 addr += PAGE_SIZE * dumppages;
808 }
809

--- 918 unchanged lines hidden ---
802 return (EINTR);
803
804 /* update block count */
805 num -= blkcnt * dumppages;
806 blknum += blkcnt * dumppages;
807 addr += PAGE_SIZE * dumppages;
808 }
809

--- 918 unchanged lines hidden ---