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/dev/dpt | |
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/dev/dpt')
-rw-r--r-- | sys/dev/dpt/dpt_control.c | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/sys/dev/dpt/dpt_control.c b/sys/dev/dpt/dpt_control.c index d0a33ce..0f9eff8 100644 --- a/sys/dev/dpt/dpt_control.c +++ b/sys/dev/dpt/dpt_control.c @@ -36,7 +36,7 @@ * future. */ -#ident "$Id: dpt_control.c,v 1.11 1999/05/11 11:03:18 jkh Exp $" +#ident "$Id: dpt_control.c,v 1.12 1999/05/13 05:24:53 jkh Exp $" #include "opt_dpt.h" @@ -91,11 +91,27 @@ static dpt_sig_t dpt_sig = { #define CDEV_MAJOR DPT_CDEV_MAJOR /* Normally, this is a static structure. But we need it in pci/dpt_pci.c */ -struct cdevsw dpt_cdevsw = { - dpt_open, dpt_close, dpt_read, dpt_write, - dpt_ioctl, nostop, nullreset, nodevtotty, - seltrue, nommap, NULL, "dpt", -NULL, -1}; +static struct cdevsw dpt_cdevsw = { + /* open */ dpt_open, + /* close */ dpt_close, + /* read */ dpt_read, + /* write */ dpt_write, + /* ioctl */ dpt_ioctl, + /* stop */ nostop, + /* reset */ noreset, + /* devtotty */ nodevtotty, + /* poll */ nopoll, + /* mmap */ nommap, + /* strategy */ nostrategy, + /* name */ "dpt", + /* parms */ noparms, + /* maj */ CDEV_MAJOR, + /* dump */ nodump, + /* psize */ nopsize, + /* flags */ 0, + /* maxio */ 0, + /* bmaj */ -1 +}; static struct buf *dpt_inbuf[DPT_MAX_ADAPTERS]; static char dpt_rw_command[DPT_MAX_ADAPTERS][DPT_RW_CMD_LEN + 1]; |