Deleted Added
full compact
scsi_da.c (47625) scsi_da.c (47640)
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 * $Id: scsi_da.c,v 1.25 1999/05/22 22:00:20 gibbs Exp $
28 * $Id: scsi_da.c,v 1.26 1999/05/30 16:51:02 phk Exp $
29 */
30
31#include "opt_hw_wdog.h"
32
33#include <sys/param.h>
34#include <sys/systm.h>
35#include <sys/kernel.h>
36#include <sys/buf.h>

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

816
817 if (status != CAM_REQ_CMP) {
818 printf("da: Failed to attach master async callback "
819 "due to status 0x%x!\n", status);
820 } else {
821 int err;
822
823 /* If we were successfull, register our devsw */
29 */
30
31#include "opt_hw_wdog.h"
32
33#include <sys/param.h>
34#include <sys/systm.h>
35#include <sys/kernel.h>
36#include <sys/buf.h>

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

816
817 if (status != CAM_REQ_CMP) {
818 printf("da: Failed to attach master async callback "
819 "due to status 0x%x!\n", status);
820 } else {
821 int err;
822
823 /* If we were successfull, register our devsw */
824 cdevsw_add_generic(DA_BDEV_MAJOR, DA_CDEV_MAJOR, &da_cdevsw);
824 cdevsw_add(&da_cdevsw);
825
826 /*
827 * Schedule a periodic event to occasioanly send an
828 * ordered tag to a device.
829 */
830 timeout(dasendorderedtag, NULL,
831 (DA_DEFAULT_TIMEOUT * hz) / DA_ORDEREDTAG_INTERVAL);
832

--- 785 unchanged lines hidden ---
825
826 /*
827 * Schedule a periodic event to occasioanly send an
828 * ordered tag to a device.
829 */
830 timeout(dasendorderedtag, NULL,
831 (DA_DEFAULT_TIMEOUT * hz) / DA_ORDEREDTAG_INTERVAL);
832

--- 785 unchanged lines hidden ---