summaryrefslogtreecommitdiffstats
path: root/sys/gnu
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1995-12-08 23:23:00 +0000
committerphk <phk@FreeBSD.org>1995-12-08 23:23:00 +0000
commita69d1dfbcb7bc187703b1767f289aba2bd4edbb6 (patch)
tree0408fdddf8ea8eeab5dc960ead9a7c96a2e301bd /sys/gnu
parent5a5b07fa54887595e0725dba442af441c842786a (diff)
downloadFreeBSD-src-a69d1dfbcb7bc187703b1767f289aba2bd4edbb6.zip
FreeBSD-src-a69d1dfbcb7bc187703b1767f289aba2bd4edbb6.tar.gz
Julian forgot to make the *devsw structures static.
Diffstat (limited to 'sys/gnu')
-rw-r--r--sys/gnu/i386/isa/dgb.c4
-rw-r--r--sys/gnu/i386/isa/nic3008.c29
-rw-r--r--sys/gnu/i386/isa/nic3009.c29
-rw-r--r--sys/gnu/isdn/iispy.c29
-rw-r--r--sys/gnu/isdn/iitel.c29
-rw-r--r--sys/gnu/isdn/iitty.c29
-rw-r--r--sys/gnu/isdn/isdn.c29
7 files changed, 158 insertions, 20 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 };
diff --git a/sys/gnu/isdn/iispy.c b/sys/gnu/isdn/iispy.c
index 470bea1..01ba1e3 100644
--- a/sys/gnu/isdn/iispy.c
+++ b/sys/gnu/isdn/iispy.c
@@ -1,6 +1,6 @@
-static char _ispyid[] = "@(#)$Id: iispy.c,v 1.7 1995/12/06 23:43:37 bde Exp $";
+static char _ispyid[] = "@(#)$Id: iispy.c,v 1.8 1995/12/08 11:12:52 julian Exp $";
/*******************************************************************************
- * II - Version 0.1 $Revision: 1.7 $ $State: Exp $
+ * II - Version 0.1 $Revision: 1.8 $ $State: Exp $
*
* Copyright 1994 Dietmar Friede
*******************************************************************************
@@ -10,6 +10,29 @@ static char _ispyid[] = "@(#)$Id: iispy.c,v 1.7 1995/12/06 23:43:37 bde Exp
*
*******************************************************************************
* $Log: iispy.c,v $
+ * Revision 1.8 1995/12/08 11:12:52 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.7 1995/12/06 23:43:37 bde
* Removed unnecessary #includes of <sys/user.h>. Some of these were just
* to get the definitions of TRUE and FALSE which happen to be defined in
@@ -106,7 +129,7 @@ static d_read_t ispyread;
static d_ioctl_t ispyioctl;
#define CDEV_MAJOR 59
-struct cdevsw ispy_cdevsw =
+static struct cdevsw ispy_cdevsw =
{ ispyopen, ispyclose, ispyread, nowrite, /*59*/
ispyioctl, nostop, nullreset, nodevtotty,/* ispy */
seltrue, nommap, NULL, "ispy", NULL, -1 };
diff --git a/sys/gnu/isdn/iitel.c b/sys/gnu/isdn/iitel.c
index 21c87e8..7d219cc 100644
--- a/sys/gnu/isdn/iitel.c
+++ b/sys/gnu/isdn/iitel.c
@@ -1,6 +1,6 @@
-static char _itelid[] = "@(#)$Id: iitel.c,v 1.8 1995/11/29 14:39:11 julian Exp $";
+static char _itelid[] = "@(#)$Id: iitel.c,v 1.9 1995/12/08 11:12:54 julian Exp $";
/*******************************************************************************
- * II - Version 0.1 $Revision: 1.8 $ $State: Exp $
+ * II - Version 0.1 $Revision: 1.9 $ $State: Exp $
*
* Copyright 1994 Dietmar Friede
*******************************************************************************
@@ -10,6 +10,29 @@ static char _itelid[] = "@(#)$Id: iitel.c,v 1.8 1995/11/29 14:39:11 julian E
*
*******************************************************************************
* $Log: iitel.c,v $
+ * Revision 1.9 1995/12/08 11:12:54 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.8 1995/11/29 14:39:11 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)
@@ -91,7 +114,7 @@ static d_write_t itelwrite;
static d_ioctl_t itelioctl;
#define CDEV_MAJOR 57
-struct cdevsw itel_cdevsw =
+static struct cdevsw itel_cdevsw =
{ itelopen, itelclose, itelread, itelwrite, /*57*/
itelioctl, nostop, nullreset, nodevtotty,/* itel */
seltrue, nommap, NULL, "itel", NULL, -1 };
diff --git a/sys/gnu/isdn/iitty.c b/sys/gnu/isdn/iitty.c
index 3c4bf87..4304335 100644
--- a/sys/gnu/isdn/iitty.c
+++ b/sys/gnu/isdn/iitty.c
@@ -1,6 +1,6 @@
-static char _ittyid[] = "@(#)$Id: iitty.c,v 1.15 1995/12/05 20:33:47 bde Exp $";
+static char _ittyid[] = "@(#)$Id: iitty.c,v 1.16 1995/12/08 11:12:56 julian Exp $";
/*******************************************************************************
- * II - Version 0.1 $Revision: 1.15 $ $State: Exp $
+ * II - Version 0.1 $Revision: 1.16 $ $State: Exp $
*
* Copyright 1994 Dietmar Friede
*******************************************************************************
@@ -10,6 +10,29 @@ static char _ittyid[] = "@(#)$Id: iitty.c,v 1.15 1995/12/05 20:33:47 bde Exp
*
*******************************************************************************
* $Log: iitty.c,v $
+ * Revision 1.16 1995/12/08 11:12:56 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.15 1995/12/05 20:33:47 bde
* Fixed ity's d_stop entry. itystop() wasn't used. itystop() is inadequate
* but probably harmless. It's hard to tell because apparently no one runs
@@ -200,7 +223,7 @@ static d_stop_t itystop;
static d_ttycv_t itydevtotty;
#define CDEV_MAJOR 56
-struct cdevsw ity_cdevsw =
+static struct cdevsw ity_cdevsw =
{ ityopen, ityclose, ityread, itywrite, /*56*/
ityioctl, itystop, noreset, itydevtotty,/* ity */
ttselect, nommap, NULL, "ity", NULL, -1 };
diff --git a/sys/gnu/isdn/isdn.c b/sys/gnu/isdn/isdn.c
index 71755e3..d77bed9 100644
--- a/sys/gnu/isdn/isdn.c
+++ b/sys/gnu/isdn/isdn.c
@@ -1,6 +1,6 @@
-static char _isdnid[] = "@(#)$Id: isdn.c,v 1.8 1995/11/29 14:39:12 julian Exp $";
+static char _isdnid[] = "@(#)$Id: isdn.c,v 1.9 1995/12/08 11:13:01 julian Exp $";
/*******************************************************************************
- * II - Version 0.1 $Revision: 1.8 $ $State: Exp $
+ * II - Version 0.1 $Revision: 1.9 $ $State: Exp $
*
* Copyright 1994 Dietmar Friede
*******************************************************************************
@@ -10,6 +10,29 @@ static char _isdnid[] = "@(#)$Id: isdn.c,v 1.8 1995/11/29 14:39:12 julian Ex
*
*******************************************************************************
* $Log: isdn.c,v $
+ * Revision 1.9 1995/12/08 11:13:01 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.8 1995/11/29 14:39:12 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)
@@ -111,7 +134,7 @@ static d_write_t isdnwrite;
static d_ioctl_t isdnioctl;
#define CDEV_MAJOR 55
-struct cdevsw isdn_cdevsw =
+static struct cdevsw isdn_cdevsw =
{ isdnopen, isdnclose, isdnread, nowrite, /*55*/
isdnioctl, nostop, nullreset, nodevtotty,/* isdn */
seltrue, nommap, NULL, "isdn", NULL, -1 };
OpenPOWER on IntegriCloud