summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>1998-01-12 03:28:36 +0000
committerjulian <julian@FreeBSD.org>1998-01-12 03:28:36 +0000
commita2436929c7718ca21875de1c6eff79c42746da45 (patch)
tree1524b220ff409455567ca92feefb8d1df08fae15 /sys
parent9a35ec7fec0ee6da0bb2d76063dbe89889e01281 (diff)
downloadFreeBSD-src-a2436929c7718ca21875de1c6eff79c42746da45.zip
FreeBSD-src-a2436929c7718ca21875de1c6eff79c42746da45.tar.gz
add devfs entries for a few more syscons devices (e.g. sysmouse)
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/syscons/syscons.c12
-rw-r--r--sys/i386/isa/syscons.c12
-rw-r--r--sys/isa/syscons.c12
3 files changed, 27 insertions, 9 deletions
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c
index 6862fd9..a63e79a 100644
--- a/sys/dev/syscons/syscons.c
+++ b/sys/dev/syscons/syscons.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: syscons.c,v 1.243 1998/01/07 08:40:34 yokota Exp $
+ * $Id: syscons.c,v 1.244 1998/01/09 09:06:55 yokota Exp $
*/
#include "sc.h"
@@ -109,6 +109,8 @@ static scr_stat main_console;
static scr_stat *console[MAXCONS];
#ifdef DEVFS
static void *sc_devfs_token[MAXCONS];
+static void *sc_mouse_devfs_token;
+static void *sc_console_devfs_token;
#endif
scr_stat *cur_console;
static scr_stat *new_scp, *old_scp;
@@ -749,8 +751,12 @@ scattach(struct isa_device *dev)
#ifdef DEVFS
for (vc = 0; vc < MAXCONS; vc++)
- sc_devfs_token[vc] = devfs_add_devswf(&scdevsw, vc, DV_CHR, UID_ROOT,
- GID_WHEEL, 0600, "ttyv%n", vc);
+ sc_devfs_token[vc] = devfs_add_devswf(&scdevsw, vc, DV_CHR,
+ UID_ROOT, GID_WHEEL, 0600, "ttyv%n", vc);
+ sc_mouse_devfs_token = devfs_add_devswf(&scdevsw, SC_MOUSE, DV_CHR,
+ UID_ROOT, GID_WHEEL, 0600, "sysmouse");
+ sc_console_devfs_token = devfs_add_devswf(&scdevsw, SC_CONSOLE, DV_CHR,
+ UID_ROOT, GID_WHEEL, 0600, "consolectl");
#endif
return 0;
}
diff --git a/sys/i386/isa/syscons.c b/sys/i386/isa/syscons.c
index 6862fd9..a63e79a 100644
--- a/sys/i386/isa/syscons.c
+++ b/sys/i386/isa/syscons.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: syscons.c,v 1.243 1998/01/07 08:40:34 yokota Exp $
+ * $Id: syscons.c,v 1.244 1998/01/09 09:06:55 yokota Exp $
*/
#include "sc.h"
@@ -109,6 +109,8 @@ static scr_stat main_console;
static scr_stat *console[MAXCONS];
#ifdef DEVFS
static void *sc_devfs_token[MAXCONS];
+static void *sc_mouse_devfs_token;
+static void *sc_console_devfs_token;
#endif
scr_stat *cur_console;
static scr_stat *new_scp, *old_scp;
@@ -749,8 +751,12 @@ scattach(struct isa_device *dev)
#ifdef DEVFS
for (vc = 0; vc < MAXCONS; vc++)
- sc_devfs_token[vc] = devfs_add_devswf(&scdevsw, vc, DV_CHR, UID_ROOT,
- GID_WHEEL, 0600, "ttyv%n", vc);
+ sc_devfs_token[vc] = devfs_add_devswf(&scdevsw, vc, DV_CHR,
+ UID_ROOT, GID_WHEEL, 0600, "ttyv%n", vc);
+ sc_mouse_devfs_token = devfs_add_devswf(&scdevsw, SC_MOUSE, DV_CHR,
+ UID_ROOT, GID_WHEEL, 0600, "sysmouse");
+ sc_console_devfs_token = devfs_add_devswf(&scdevsw, SC_CONSOLE, DV_CHR,
+ UID_ROOT, GID_WHEEL, 0600, "consolectl");
#endif
return 0;
}
diff --git a/sys/isa/syscons.c b/sys/isa/syscons.c
index 6862fd9..a63e79a 100644
--- a/sys/isa/syscons.c
+++ b/sys/isa/syscons.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: syscons.c,v 1.243 1998/01/07 08:40:34 yokota Exp $
+ * $Id: syscons.c,v 1.244 1998/01/09 09:06:55 yokota Exp $
*/
#include "sc.h"
@@ -109,6 +109,8 @@ static scr_stat main_console;
static scr_stat *console[MAXCONS];
#ifdef DEVFS
static void *sc_devfs_token[MAXCONS];
+static void *sc_mouse_devfs_token;
+static void *sc_console_devfs_token;
#endif
scr_stat *cur_console;
static scr_stat *new_scp, *old_scp;
@@ -749,8 +751,12 @@ scattach(struct isa_device *dev)
#ifdef DEVFS
for (vc = 0; vc < MAXCONS; vc++)
- sc_devfs_token[vc] = devfs_add_devswf(&scdevsw, vc, DV_CHR, UID_ROOT,
- GID_WHEEL, 0600, "ttyv%n", vc);
+ sc_devfs_token[vc] = devfs_add_devswf(&scdevsw, vc, DV_CHR,
+ UID_ROOT, GID_WHEEL, 0600, "ttyv%n", vc);
+ sc_mouse_devfs_token = devfs_add_devswf(&scdevsw, SC_MOUSE, DV_CHR,
+ UID_ROOT, GID_WHEEL, 0600, "sysmouse");
+ sc_console_devfs_token = devfs_add_devswf(&scdevsw, SC_CONSOLE, DV_CHR,
+ UID_ROOT, GID_WHEEL, 0600, "consolectl");
#endif
return 0;
}
OpenPOWER on IntegriCloud