diff options
author | phk <phk@FreeBSD.org> | 1995-12-08 23:23:00 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1995-12-08 23:23:00 +0000 |
commit | a69d1dfbcb7bc187703b1767f289aba2bd4edbb6 (patch) | |
tree | 0408fdddf8ea8eeab5dc960ead9a7c96a2e301bd /sys/gnu/i386 | |
parent | 5a5b07fa54887595e0725dba442af441c842786a (diff) | |
download | FreeBSD-src-a69d1dfbcb7bc187703b1767f289aba2bd4edbb6.zip FreeBSD-src-a69d1dfbcb7bc187703b1767f289aba2bd4edbb6.tar.gz |
Julian forgot to make the *devsw structures static.
Diffstat (limited to 'sys/gnu/i386')
-rw-r--r-- | sys/gnu/i386/isa/dgb.c | 4 | ||||
-rw-r--r-- | sys/gnu/i386/isa/nic3008.c | 29 | ||||
-rw-r--r-- | sys/gnu/i386/isa/nic3009.c | 29 |
3 files changed, 54 insertions, 8 deletions
diff --git a/sys/gnu/i386/isa/dgb.c b/sys/gnu/i386/isa/dgb.c index 8187b44..f293977 100644 --- a/sys/gnu/i386/isa/dgb.c +++ b/sys/gnu/i386/isa/dgb.c @@ -1,5 +1,5 @@ /*- - * dgb.c $Id: dgb.c,v 1.9 1995/12/07 12:45:18 davidg Exp $ + * dgb.c $Id: dgb.c,v 1.10 1995/12/08 11:12:42 julian Exp $ * * Digiboard driver. * @@ -204,7 +204,7 @@ static d_stop_t dgbstop; static d_ttycv_t dgbdevtotty; #define CDEV_MAJOR 58 -struct cdevsw dgb_cdevsw = +static struct cdevsw dgb_cdevsw = { dgbopen, dgbclose, dgbread, dgbwrite, /*58*/ dgbioctl, dgbstop, nxreset, dgbdevtotty, /* dgb */ ttselect, nommap, NULL, "dgb", NULL, -1 }; diff --git a/sys/gnu/i386/isa/nic3008.c b/sys/gnu/i386/isa/nic3008.c index 85a4081..d6edea3 100644 --- a/sys/gnu/i386/isa/nic3008.c +++ b/sys/gnu/i386/isa/nic3008.c @@ -1,6 +1,6 @@ -static char nic38_id[] = "@(#)$Id: nic3008.c,v 1.11 1995/11/29 14:39:07 julian Exp $"; +static char nic38_id[] = "@(#)$Id: nic3008.c,v 1.12 1995/12/08 11:12:45 julian Exp $"; /******************************************************************************* - * II - Version 0.1 $Revision: 1.11 $ $State: Exp $ + * II - Version 0.1 $Revision: 1.12 $ $State: Exp $ * * Copyright 1994 Dietmar Friede ******************************************************************************* @@ -10,6 +10,29 @@ static char nic38_id[] = "@(#)$Id: nic3008.c,v 1.11 1995/11/29 14:39:07 juli * ******************************************************************************* * $Log: nic3008.c,v $ + * Revision 1.12 1995/12/08 11:12:45 julian + * Pass 3 of the great devsw changes + * most devsw referenced functions are now static, as they are + * in the same file as their devsw structure. I've also added DEVFS + * support for nearly every device in the system, however + * many of the devices have 'incorrect' names under DEVFS + * because I couldn't quickly work out the correct naming conventions. + * (but devfs won't be coming on line for a month or so anyhow so that doesn't + * matter) + * + * If you "OWN" a device which would normally have an entry in /dev + * then search for the devfs_add_devsw() entries and munge to make them right.. + * check out similar devices to see what I might have done in them in you + * can't see what's going on.. + * for a laugh compare conf.c conf.h defore and after... :) + * I have not doen DEVFS entries for any DISKSLICE devices yet as that will be + * a much more complicated job.. (pass 5 :) + * + * pass 4 will be to make the devsw tables of type (cdevsw * ) + * rather than (cdevsw) + * seems to work here.. + * complaints to the usual places.. :) + * * Revision 1.11 1995/11/29 14:39:07 julian * If you're going to mechanically replicate something in 50 files * it's best to not have a (compiles cleanly) typo in it! (sigh) @@ -136,7 +159,7 @@ static d_close_t nicclose; static d_ioctl_t nicioctl; #define CDEV_MAJOR 54 -struct cdevsw nic_cdevsw = +static struct cdevsw nic_cdevsw = { nicopen, nicclose, noread, nowrite, /*54*/ nicioctl, nostop, nullreset, nodevtotty,/* nic */ seltrue, nommap, NULL, "nic", NULL, -1 }; diff --git a/sys/gnu/i386/isa/nic3009.c b/sys/gnu/i386/isa/nic3009.c index 8359c9d..e4f4109 100644 --- a/sys/gnu/i386/isa/nic3009.c +++ b/sys/gnu/i386/isa/nic3009.c @@ -1,6 +1,6 @@ -static char nic39_id[] = "@(#)$Id: nic3009.c,v 1.11 1995/11/29 14:39:08 julian Exp $"; +static char nic39_id[] = "@(#)$Id: nic3009.c,v 1.12 1995/12/08 11:12:47 julian Exp $"; /******************************************************************************* - * II - Version 0.1 $Revision: 1.11 $ $State: Exp $ + * II - Version 0.1 $Revision: 1.12 $ $State: Exp $ * * Copyright 1994 Dietmar Friede ******************************************************************************* @@ -10,6 +10,29 @@ static char nic39_id[] = "@(#)$Id: nic3009.c,v 1.11 1995/11/29 14:39:08 juli * ******************************************************************************* * $Log: nic3009.c,v $ + * Revision 1.12 1995/12/08 11:12:47 julian + * Pass 3 of the great devsw changes + * most devsw referenced functions are now static, as they are + * in the same file as their devsw structure. I've also added DEVFS + * support for nearly every device in the system, however + * many of the devices have 'incorrect' names under DEVFS + * because I couldn't quickly work out the correct naming conventions. + * (but devfs won't be coming on line for a month or so anyhow so that doesn't + * matter) + * + * If you "OWN" a device which would normally have an entry in /dev + * then search for the devfs_add_devsw() entries and munge to make them right.. + * check out similar devices to see what I might have done in them in you + * can't see what's going on.. + * for a laugh compare conf.c conf.h defore and after... :) + * I have not doen DEVFS entries for any DISKSLICE devices yet as that will be + * a much more complicated job.. (pass 5 :) + * + * pass 4 will be to make the devsw tables of type (cdevsw * ) + * rather than (cdevsw) + * seems to work here.. + * complaints to the usual places.. :) + * * Revision 1.11 1995/11/29 14:39:08 julian * If you're going to mechanically replicate something in 50 files * it's best to not have a (compiles cleanly) typo in it! (sigh) @@ -128,7 +151,7 @@ static d_close_t nnicclose; static d_ioctl_t nnicioctl; #define CDEV_MAJOR 60 -struct cdevsw nnic_cdevsw = +static struct cdevsw nnic_cdevsw = { nnicopen, nnicclose, noread, nowrite, /*60*/ nnicioctl, nostop, nullreset, nodevtotty,/* nnic */ seltrue, nommap, NULL, "nnic", NULL, -1 }; |