syscons.c (47625) | syscons.c (47640) |
---|---|
1/*- 2 * Copyright (c) 1992-1998 S�ren Schmidt 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * | 1/*- 2 * Copyright (c) 1992-1998 S�ren Schmidt 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * |
28 * $Id: syscons.c,v 1.303 1999/05/12 04:45:56 bde Exp $ | 28 * $Id: syscons.c,v 1.304 1999/05/30 16:51:42 phk Exp $ |
29 */ 30 31#include "sc.h" 32#include "splash.h" 33#ifdef __i386__ 34#include "apm.h" 35#endif 36#include "opt_ddb.h" --- 532 unchanged lines hidden (view full) --- 569 570int 571sc_attach_unit(int unit, int flags) 572{ 573 scr_stat *scp; 574#if defined(VESA) && defined(VM86) 575 video_info_t info; 576#endif | 29 */ 30 31#include "sc.h" 32#include "splash.h" 33#ifdef __i386__ 34#include "apm.h" 35#endif 36#include "opt_ddb.h" --- 532 unchanged lines hidden (view full) --- 569 570int 571sc_attach_unit(int unit, int flags) 572{ 573 scr_stat *scp; 574#if defined(VESA) && defined(VM86) 575 video_info_t info; 576#endif |
577 dev_t cdev = makedev(CDEV_MAJOR, 0); | |
578#ifdef DEVFS 579 int vc; 580#endif 581 582 scinit(); 583 scp = console[0]; 584 sc_flags = flags; 585 if (!ISFONTAVAIL(scp->adp->va_flags)) --- 70 unchanged lines hidden (view full) --- 656 scp->r_hook.ah_arg = NULL; 657 scp->r_hook.ah_name = "system keyboard"; 658 scp->r_hook.ah_order = APM_MID_ORDER; 659 apm_hook_establish(APM_HOOK_RESUME , &scp->r_hook); 660#endif 661 662 at_shutdown(scshutdown, NULL, SHUTDOWN_PRE_SYNC); 663 | 577#ifdef DEVFS 578 int vc; 579#endif 580 581 scinit(); 582 scp = console[0]; 583 sc_flags = flags; 584 if (!ISFONTAVAIL(scp->adp->va_flags)) --- 70 unchanged lines hidden (view full) --- 655 scp->r_hook.ah_arg = NULL; 656 scp->r_hook.ah_name = "system keyboard"; 657 scp->r_hook.ah_order = APM_MID_ORDER; 658 apm_hook_establish(APM_HOOK_RESUME , &scp->r_hook); 659#endif 660 661 at_shutdown(scshutdown, NULL, SHUTDOWN_PRE_SYNC); 662 |
664 cdevsw_add(&cdev, &sc_cdevsw, NULL); | 663 cdevsw_add(&sc_cdevsw); |
665 666#ifdef DEVFS 667 for (vc = 0; vc < MAXCONS; vc++) 668 sc_devfs_token[vc] = devfs_add_devswf(&sc_cdevsw, vc, DV_CHR, 669 UID_ROOT, GID_WHEEL, 0600, "ttyv%r", vc); 670 sc_mouse_devfs_token = devfs_add_devswf(&sc_cdevsw, SC_MOUSE, DV_CHR, 671 UID_ROOT, GID_WHEEL, 0600, "sysmouse"); 672 sc_console_devfs_token = devfs_add_devswf(&sc_cdevsw, SC_CONSOLE, DV_CHR, --- 3884 unchanged lines hidden --- | 664 665#ifdef DEVFS 666 for (vc = 0; vc < MAXCONS; vc++) 667 sc_devfs_token[vc] = devfs_add_devswf(&sc_cdevsw, vc, DV_CHR, 668 UID_ROOT, GID_WHEEL, 0600, "ttyv%r", vc); 669 sc_mouse_devfs_token = devfs_add_devswf(&sc_cdevsw, SC_MOUSE, DV_CHR, 670 UID_ROOT, GID_WHEEL, 0600, "sysmouse"); 671 sc_console_devfs_token = devfs_add_devswf(&sc_cdevsw, SC_CONSOLE, DV_CHR, --- 3884 unchanged lines hidden --- |