summaryrefslogtreecommitdiffstats
path: root/sys/cam/scsi/scsi_pass.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_pass.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_pass.c')
-rw-r--r--sys/cam/scsi/scsi_pass.c43
1 files changed, 21 insertions, 22 deletions
diff --git a/sys/cam/scsi/scsi_pass.c b/sys/cam/scsi/scsi_pass.c
index 37cdd55..a350c8e 100644
--- a/sys/cam/scsi/scsi_pass.c
+++ b/sys/cam/scsi/scsi_pass.c
@@ -24,7 +24,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: scsi_pass.c,v 1.9 1999/05/09 01:25:30 ken Exp $
+ * $Id: scsi_pass.c,v 1.10 1999/05/22 22:00:21 gibbs Exp $
*/
#include <sys/param.h>
@@ -121,27 +121,26 @@ static struct periph_driver passdriver =
DATA_SET(periphdriver_set, passdriver);
-static struct cdevsw pass_cdevsw =
-{
- /*d_open*/ passopen,
- /*d_close*/ passclose,
- /*d_read*/ physread,
- /*d_write*/ physwrite,
- /*d_ioctl*/ passioctl,
- /*d_stop*/ nostop,
- /*d_reset*/ noreset,
- /*d_devtotty*/ nodevtotty,
- /*d_poll*/ seltrue,
- /*d_mmap*/ nommap,
- /*d_strategy*/ passstrategy,
- /*d_name*/ "pass",
- /*d_spare*/ NULL,
- /*d_maj*/ -1,
- /*d_dump*/ nodump,
- /*d_psize*/ nopsize,
- /*d_flags*/ 0,
- /*d_maxio*/ 0,
- /*b_maj*/ -1
+static struct cdevsw pass_cdevsw = {
+ /* open */ passopen,
+ /* close */ passclose,
+ /* read */ physread,
+ /* write */ physwrite,
+ /* ioctl */ passioctl,
+ /* stop */ nostop,
+ /* reset */ noreset,
+ /* devtotty */ nodevtotty,
+ /* poll */ nopoll,
+ /* mmap */ nommap,
+ /* strategy */ passstrategy,
+ /* name */ "pass",
+ /* parms */ noparms,
+ /* maj */ PASS_CDEV_MAJOR,
+ /* dump */ nodump,
+ /* psize */ nopsize,
+ /* flags */ 0,
+ /* maxio */ 0,
+ /* bmaj */ -1
};
static struct extend_array *passperiphs;
OpenPOWER on IntegriCloud