scsi_da.c (71999) | scsi_da.c (72012) |
---|---|
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 71999 2001-02-04 13:13:25Z phk $ | 28 * $FreeBSD: head/sys/cam/scsi/scsi_da.c 72012 2001-02-04 16:08:18Z phk $ |
29 */ 30 31#ifdef _KERNEL 32#include "opt_hw_wdog.h" 33#endif /* _KERNEL */ 34 35#include <sys/param.h> 36 --- 1526 unchanged lines hidden (view full) --- 1563 * sync the disk cache to physical media. 1564 */ 1565static void 1566dashutdown(void * arg, int howto) 1567{ 1568 struct cam_periph *periph; 1569 struct da_softc *softc; 1570 | 29 */ 30 31#ifdef _KERNEL 32#include "opt_hw_wdog.h" 33#endif /* _KERNEL */ 34 35#include <sys/param.h> 36 --- 1526 unchanged lines hidden (view full) --- 1563 * sync the disk cache to physical media. 1564 */ 1565static void 1566dashutdown(void * arg, int howto) 1567{ 1568 struct cam_periph *periph; 1569 struct da_softc *softc; 1570 |
1571 for (periph = TAILQ_FIRST(&dadriver.units); periph != NULL; 1572 periph = TAILQ_NEXT(periph, unit_links)) { | 1571 TAILQ_FOREACH(periph, &dadriver.units, unit_links) { |
1573 union ccb ccb; 1574 softc = (struct da_softc *)periph->softc; 1575 1576 /* 1577 * We only sync the cache if the drive is still open, and 1578 * if the drive is capable of it.. 1579 */ 1580 if (((softc->flags & DA_FLAG_OPEN) == 0) --- 81 unchanged lines hidden --- | 1572 union ccb ccb; 1573 softc = (struct da_softc *)periph->softc; 1574 1575 /* 1576 * We only sync the cache if the drive is still open, and 1577 * if the drive is capable of it.. 1578 */ 1579 if (((softc->flags & DA_FLAG_OPEN) == 0) --- 81 unchanged lines hidden --- |