syscons.c (37639) | syscons.c (37683) |
---|---|
1/*- 2 * Copyright (c) 1992-1997 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-1997 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.265 1998/07/06 06:29:07 imp Exp $ | 28 * $Id: syscons.c,v 1.266 1998/07/14 11:42:05 bde Exp $ |
29 */ 30 31#include "sc.h" 32#include "apm.h" 33#include "opt_ddb.h" 34#include "opt_devfs.h" 35#include "opt_syscons.h" 36 --- 770 unchanged lines hidden (view full) --- 807 apm_hook_establish(APM_HOOK_RESUME , &scp->r_hook); 808#endif 809 810 cdevsw_add(&cdev, &scdevsw, NULL); 811 812#ifdef DEVFS 813 for (vc = 0; vc < MAXCONS; vc++) 814 sc_devfs_token[vc] = devfs_add_devswf(&scdevsw, vc, DV_CHR, | 29 */ 30 31#include "sc.h" 32#include "apm.h" 33#include "opt_ddb.h" 34#include "opt_devfs.h" 35#include "opt_syscons.h" 36 --- 770 unchanged lines hidden (view full) --- 807 apm_hook_establish(APM_HOOK_RESUME , &scp->r_hook); 808#endif 809 810 cdevsw_add(&cdev, &scdevsw, NULL); 811 812#ifdef DEVFS 813 for (vc = 0; vc < MAXCONS; vc++) 814 sc_devfs_token[vc] = devfs_add_devswf(&scdevsw, vc, DV_CHR, |
815 UID_ROOT, GID_WHEEL, 0600, "ttyv%n", vc); | 815 UID_ROOT, GID_WHEEL, 0600, "ttyv%r", vc); |
816 sc_vga_devfs_token = devfs_link(sc_devfs_token[0], "vga"); 817 sc_mouse_devfs_token = devfs_add_devswf(&scdevsw, SC_MOUSE, DV_CHR, 818 UID_ROOT, GID_WHEEL, 0600, "sysmouse"); 819 sc_console_devfs_token = devfs_add_devswf(&scdevsw, SC_CONSOLE, DV_CHR, 820 UID_ROOT, GID_WHEEL, 0600, "consolectl"); 821#endif 822 return 0; 823} --- 4394 unchanged lines hidden --- | 816 sc_vga_devfs_token = devfs_link(sc_devfs_token[0], "vga"); 817 sc_mouse_devfs_token = devfs_add_devswf(&scdevsw, SC_MOUSE, DV_CHR, 818 UID_ROOT, GID_WHEEL, 0600, "sysmouse"); 819 sc_console_devfs_token = devfs_add_devswf(&scdevsw, SC_CONSOLE, DV_CHR, 820 UID_ROOT, GID_WHEEL, 0600, "consolectl"); 821#endif 822 return 0; 823} --- 4394 unchanged lines hidden --- |