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/fdc/fdc.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/dev/fdc/fdc.c')
-rw-r--r-- | sys/dev/fdc/fdc.c | 31 |
1 files changed, 23 insertions, 8 deletions
diff --git a/sys/dev/fdc/fdc.c b/sys/dev/fdc/fdc.c index cc51f93..cd7001b 100644 --- a/sys/dev/fdc/fdc.c +++ b/sys/dev/fdc/fdc.c @@ -47,7 +47,7 @@ * SUCH DAMAGE. * * from: @(#)fd.c 7.4 (Berkeley) 5/25/91 - * $Id: fd.c,v 1.143 1999/05/11 04:58:30 bde Exp $ + * $Id: fd.c,v 1.144 1999/05/30 11:10:54 dfr Exp $ * */ @@ -370,16 +370,31 @@ static d_close_t fdclose; static d_ioctl_t fdioctl; static d_strategy_t fdstrategy; -static struct cdevsw fd_cdevsw = { - Fdopen, fdclose, physread, physwrite, - fdioctl, nostop, nullreset, nodevtotty, - seltrue, nommap, fdstrategy, "fd", - NULL, -1, nodump, nopsize, - D_DISK, 0, -1 -}; #define CDEV_MAJOR 9 #define BDEV_MAJOR 2 +static struct cdevsw fd_cdevsw = { + /* open */ Fdopen, + /* close */ fdclose, + /* read */ physread, + /* write */ physwrite, + /* ioctl */ fdioctl, + /* stop */ nostop, + /* reset */ noreset, + /* devtotty */ nodevtotty, + /* poll */ nopoll, + /* mmap */ nommap, + /* strategy */ fdstrategy, + /* name */ "fd", + /* parms */ noparms, + /* maj */ CDEV_MAJOR, + /* dump */ nodump, + /* psize */ nopsize, + /* flags */ D_DISK, + /* maxio */ 0, + /* bmaj */ BDEV_MAJOR +}; + static int fdc_err(struct fdc_data *fdc, const char *s) { |