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/ata/atapi-tape.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/ata/atapi-tape.c')
-rw-r--r-- | sys/dev/ata/atapi-tape.c | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/sys/dev/ata/atapi-tape.c b/sys/dev/ata/atapi-tape.c index 43edafa..7699d89 100644 --- a/sys/dev/ata/atapi-tape.c +++ b/sys/dev/ata/atapi-tape.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: atapi-tape.c,v 1.7 1999/05/07 07:03:15 phk Exp $ + * $Id: atapi-tape.c,v 1.8 1999/05/17 15:58:47 sos Exp $ */ #include "ata.h" @@ -61,11 +61,25 @@ static d_strategy_t aststrategy; #define CDEV_MAJOR 119 static struct cdevsw ast_cdevsw = { - astopen, astclose, physread, physwrite, - astioctl, nostop, nullreset, nodevtotty, - seltrue, nommap, aststrategy, "ast", - NULL, -1, nodump, nopsize, - D_TAPE, 0, -1 + /* open */ astopen, + /* close */ astclose, + /* read */ physread, + /* write */ physwrite, + /* ioctl */ astioctl, + /* stop */ nostop, + /* reset */ noreset, + /* devtotty */ nodevtotty, + /* poll */ nopoll, + /* mmap */ nommap, + /* strategy */ aststrategy, + /* name */ "ast", + /* parms */ noparms, + /* maj */ CDEV_MAJOR, + /* dump */ nodump, + /* psize */ nopsize, + /* flags */ D_TAPE, + /* maxio */ 0, + /* bmaj */ BDEV_MAJOR }; static u_int32_t ast_total = 0; |