diff options
author | phk <phk@FreeBSD.org> | 1999-05-30 16:53:49 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-05-30 16:53:49 +0000 |
commit | 7e4a9dced9acd97789b37c32063ee7a8aa133f6d (patch) | |
tree | 407469b3581129f6442306683b28d6b54126baad /sys/cam/scsi/scsi_sa.c | |
parent | dfa3967ffa4d84ed0b1691fac89ba3e73b8544e0 (diff) | |
download | FreeBSD-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_sa.c')
-rw-r--r-- | sys/cam/scsi/scsi_sa.c | 43 |
1 files changed, 21 insertions, 22 deletions
diff --git a/sys/cam/scsi/scsi_sa.c b/sys/cam/scsi/scsi_sa.c index 40acfc1..1761055 100644 --- a/sys/cam/scsi/scsi_sa.c +++ b/sys/cam/scsi/scsi_sa.c @@ -1,5 +1,5 @@ /* - * $Id: scsi_sa.c,v 1.25 1999/05/22 22:00:23 gibbs Exp $ + * $Id: scsi_sa.c,v 1.26 1999/05/25 23:10:54 mjacob Exp $ * * Implementation of SCSI Sequential Access Peripheral driver for CAM. * @@ -340,27 +340,26 @@ DATA_SET(periphdriver_set, sadriver); #define SA_CDEV_MAJOR 14 #define SA_BDEV_MAJOR 5 -static struct cdevsw sa_cdevsw = -{ - /*d_open*/ saopen, - /*d_close*/ saclose, - /*d_read*/ physread, - /*d_write*/ physwrite, - /*d_ioctl*/ saioctl, - /*d_stop*/ nostop, - /*d_reset*/ noreset, - /*d_devtotty*/ nodevtotty, - /*d_poll*/ seltrue, - /*d_mmap*/ nommap, - /*d_strategy*/ sastrategy, - /*d_name*/ "sa", - /*d_spare*/ NULL, - /*d_maj*/ -1, - /*d_dump*/ nodump, - /*d_psize*/ nopsize, - /*d_flags*/ D_TAPE, - /*d_maxio*/ 0, - /*b_maj*/ -1 +static struct cdevsw sa_cdevsw = { + /* open */ saopen, + /* close */ saclose, + /* read */ physread, + /* write */ physwrite, + /* ioctl */ saioctl, + /* stop */ nostop, + /* reset */ noreset, + /* devtotty */ nodevtotty, + /* poll */ nopoll, + /* mmap */ nommap, + /* strategy */ sastrategy, + /* name */ "sa", + /* parms */ noparms, + /* maj */ SA_CDEV_MAJOR, + /* dump */ nodump, + /* psize */ nopsize, + /* flags */ D_TAPE, + /* maxio */ 0, + /* bmaj */ SA_BDEV_MAJOR }; static struct extend_array *saperiphs; |