scsi_da.c (219075) | scsi_da.c (220644) |
---|---|
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 219075 2011-02-26 23:30:32Z nwhitehorn $"); | 30__FBSDID("$FreeBSD: head/sys/cam/scsi/scsi_da.c 220644 2011-04-14 21:25:32Z 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> --- 1248 unchanged lines hidden (view full) --- 1287 */ 1288 callout_init_mtx(&softc->sendordered_c, periph->sim->mtx, 0); 1289 callout_reset(&softc->sendordered_c, 1290 (DA_DEFAULT_TIMEOUT * hz) / DA_ORDEREDTAG_INTERVAL, 1291 dasendorderedtag, softc); 1292 1293 mtx_unlock(periph->sim->mtx); 1294 softc->disk = disk_alloc(); | 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> --- 1248 unchanged lines hidden (view full) --- 1287 */ 1288 callout_init_mtx(&softc->sendordered_c, periph->sim->mtx, 0); 1289 callout_reset(&softc->sendordered_c, 1290 (DA_DEFAULT_TIMEOUT * hz) / DA_ORDEREDTAG_INTERVAL, 1291 dasendorderedtag, softc); 1292 1293 mtx_unlock(periph->sim->mtx); 1294 softc->disk = disk_alloc(); |
1295 softc->disk->d_devstat = devstat_new_entry(periph->periph_name, 1296 periph->unit_number, 0, 1297 DEVSTAT_BS_UNAVAILABLE, 1298 SID_TYPE(&cgd->inq_data) | 1299 XPORT_DEVSTAT_TYPE(cpi.transport), 1300 DEVSTAT_PRIORITY_DISK); |
|
1295 softc->disk->d_open = daopen; 1296 softc->disk->d_close = daclose; 1297 softc->disk->d_strategy = dastrategy; 1298 softc->disk->d_dump = dadump; 1299 softc->disk->d_name = "da"; 1300 softc->disk->d_drv1 = periph; 1301 if (cpi.maxio == 0) 1302 softc->disk->d_maxsize = DFLTPHYS; /* traditional default */ --- 889 unchanged lines hidden --- | 1301 softc->disk->d_open = daopen; 1302 softc->disk->d_close = daclose; 1303 softc->disk->d_strategy = dastrategy; 1304 softc->disk->d_dump = dadump; 1305 softc->disk->d_name = "da"; 1306 softc->disk->d_drv1 = periph; 1307 if (cpi.maxio == 0) 1308 softc->disk->d_maxsize = DFLTPHYS; /* traditional default */ --- 889 unchanged lines hidden --- |