scsi_ctl.c (273318) | scsi_ctl.c (273319) |
---|---|
1/*- 2 * Copyright (c) 2008, 2009 Silicon Graphics International Corp. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 22 unchanged lines hidden (view full) --- 31 */ 32/* 33 * Peripheral driver interface between CAM and CTL (CAM Target Layer). 34 * 35 * Author: Ken Merry <ken@FreeBSD.org> 36 */ 37 38#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2008, 2009 Silicon Graphics International Corp. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 22 unchanged lines hidden (view full) --- 31 */ 32/* 33 * Peripheral driver interface between CAM and CTL (CAM Target Layer). 34 * 35 * Author: Ken Merry <ken@FreeBSD.org> 36 */ 37 38#include <sys/cdefs.h> |
39__FBSDID("$FreeBSD: stable/10/sys/cam/ctl/scsi_ctl.c 273318 2014-10-20 07:58:01Z mav $"); | 39__FBSDID("$FreeBSD: stable/10/sys/cam/ctl/scsi_ctl.c 273319 2014-10-20 07:59:29Z mav $"); |
40 41#include <sys/param.h> 42#include <sys/queue.h> 43#include <sys/systm.h> 44#include <sys/kernel.h> 45#include <sys/lock.h> 46#include <sys/mutex.h> 47#include <sys/condvar.h> --- 347 unchanged lines hidden (view full) --- 395 port->num_requested_ctl_io = 4096; 396 snprintf(softc->port_name, sizeof(softc->port_name), 397 "%s%d", cpi->dev_name, cpi->unit_number); 398 /* 399 * XXX KDM it would be nice to allocate storage in the 400 * frontend structure itself. 401 */ 402 port->port_name = softc->port_name; | 40 41#include <sys/param.h> 42#include <sys/queue.h> 43#include <sys/systm.h> 44#include <sys/kernel.h> 45#include <sys/lock.h> 46#include <sys/mutex.h> 47#include <sys/condvar.h> --- 347 unchanged lines hidden (view full) --- 395 port->num_requested_ctl_io = 4096; 396 snprintf(softc->port_name, sizeof(softc->port_name), 397 "%s%d", cpi->dev_name, cpi->unit_number); 398 /* 399 * XXX KDM it would be nice to allocate storage in the 400 * frontend structure itself. 401 */ 402 port->port_name = softc->port_name; |
403 port->physical_port = cpi->unit_number; 404 port->virtual_port = cpi->bus_id; | 403 port->physical_port = cpi->bus_id; 404 port->virtual_port = 0; |
405 port->port_online = ctlfe_online; 406 port->port_offline = ctlfe_offline; 407 port->onoff_arg = softc; 408 port->lun_enable = ctlfe_lun_enable; 409 port->lun_disable = ctlfe_lun_disable; 410 port->targ_lun_arg = softc; 411 port->fe_datamove = ctlfe_datamove_done; 412 port->fe_done = ctlfe_datamove_done; --- 1791 unchanged lines hidden --- | 405 port->port_online = ctlfe_online; 406 port->port_offline = ctlfe_offline; 407 port->onoff_arg = softc; 408 port->lun_enable = ctlfe_lun_enable; 409 port->lun_disable = ctlfe_lun_disable; 410 port->targ_lun_arg = softc; 411 port->fe_datamove = ctlfe_datamove_done; 412 port->fe_done = ctlfe_datamove_done; --- 1791 unchanged lines hidden --- |