summaryrefslogtreecommitdiffstats
path: root/sys/cam/scsi/scsi_target.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1999-05-30 16:53:49 +0000
committerphk <phk@FreeBSD.org>1999-05-30 16:53:49 +0000
commit7e4a9dced9acd97789b37c32063ee7a8aa133f6d (patch)
tree407469b3581129f6442306683b28d6b54126baad /sys/cam/scsi/scsi_target.c
parentdfa3967ffa4d84ed0b1691fac89ba3e73b8544e0 (diff)
downloadFreeBSD-src-7e4a9dced9acd97789b37c32063ee7a8aa133f6d.zip
FreeBSD-src-7e4a9dced9acd97789b37c32063ee7a8aa133f6d.tar.gz
This commit should be a extensive NO-OP:
Reformat and initialize correctly all "struct cdevsw". Initialize the d_maj and d_bmaj fields. The d_reset field was not removed, although it is never used. I used a program to do most of this, so all the files now use the same consistent format. Please keep it that way. Vinum and i4b not modified, patches emailed to respective authors.
Diffstat (limited to 'sys/cam/scsi/scsi_target.c')
-rw-r--r--sys/cam/scsi/scsi_target.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/sys/cam/scsi/scsi_target.c b/sys/cam/scsi/scsi_target.c
index 191a991..302e23f 100644
--- a/sys/cam/scsi/scsi_target.c
+++ b/sys/cam/scsi/scsi_target.c
@@ -25,7 +25,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: scsi_target.c,v 1.11 1999/05/07 07:03:03 phk Exp $
+ * $Id: scsi_target.c,v 1.12 1999/05/22 22:00:24 gibbs Exp $
*/
#include <stddef.h> /* For offsetof */
@@ -136,25 +136,25 @@ static d_strategy_t targstrategy;
#define TARG_CDEV_MAJOR 65
static struct cdevsw targ_cdevsw = {
- /*d_open*/ targopen,
- /*d_close*/ targclose,
- /*d_read*/ targread,
- /*d_write*/ targwrite,
- /*d_ioctl*/ targioctl,
- /*d_stop*/ nostop,
- /*d_reset*/ noreset,
- /*d_devtotty*/ nodevtotty,
- /*d_poll*/ targpoll,
- /*d_mmap*/ nommap,
- /*d_strategy*/ targstrategy,
- /*d_name*/ "targ",
- /*d_spare*/ NULL,
- /*d_maj*/ -1,
- /*d_dump*/ nodump,
- /*d_psize*/ nopsize,
- /*d_flags*/ 0,
- /*d_maxio*/ 0,
- /*b_maj*/ -1
+ /* open */ targopen,
+ /* close */ targclose,
+ /* read */ targread,
+ /* write */ targwrite,
+ /* ioctl */ targioctl,
+ /* stop */ nostop,
+ /* reset */ noreset,
+ /* devtotty */ nodevtotty,
+ /* poll */ targpoll,
+ /* mmap */ nommap,
+ /* strategy */ targstrategy,
+ /* name */ "targ",
+ /* parms */ noparms,
+ /* maj */ TARG_CDEV_MAJOR,
+ /* dump */ nodump,
+ /* psize */ nopsize,
+ /* flags */ 0,
+ /* maxio */ 0,
+ /* bmaj */ -1
};
static int targsendccb(struct cam_periph *periph, union ccb *ccb,
OpenPOWER on IntegriCloud