From 9fcc42c7c344622b074fd141e129731d86c76335 Mon Sep 17 00:00:00 2001 From: KATO Takenori Date: Mon, 12 Jan 1998 15:38:20 +0000 Subject: [PATCH] Sync with sys/i386/isa/syscons.c revision 1.245. --- sys/pc98/pc98/syscons.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/sys/pc98/pc98/syscons.c b/sys/pc98/pc98/syscons.c index d5a017efdb46..cb2fe3f95a69 100644 --- a/sys/pc98/pc98/syscons.c +++ b/sys/pc98/pc98/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.69 1998/01/10 13:31:27 kato Exp $ + * $Id: syscons.c,v 1.70 1998/01/12 15:34:17 kato Exp $ */ #include "sc.h" @@ -131,6 +131,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; @@ -881,8 +883,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; }