Deleted Added
full compact
syscons.c (54381) syscons.c (54543)
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 * $FreeBSD: head/sys/dev/syscons/syscons.c 54381 1999-12-10 04:30:58Z yokota $
28 * $FreeBSD: head/sys/dev/syscons/syscons.c 54543 1999-12-13 09:31:43Z yokota $
29 */
30
31#include "sc.h"
32#include "splash.h"
33#include "opt_syscons.h"
34#include "opt_ddb.h"
35#ifdef __i386__
36#include "apm.h"

--- 985 unchanged lines hidden (view full) ---

1022 return 0;
1023
1024 case KDGKBSTATE: /* get keyboard state (locks) */
1025 if (scp == sc->cur_scp)
1026 save_kbd_state(scp);
1027 *(int *)data = scp->status & LOCK_MASK;
1028 return 0;
1029
29 */
30
31#include "sc.h"
32#include "splash.h"
33#include "opt_syscons.h"
34#include "opt_ddb.h"
35#ifdef __i386__
36#include "apm.h"

--- 985 unchanged lines hidden (view full) ---

1022 return 0;
1023
1024 case KDGKBSTATE: /* get keyboard state (locks) */
1025 if (scp == sc->cur_scp)
1026 save_kbd_state(scp);
1027 *(int *)data = scp->status & LOCK_MASK;
1028 return 0;
1029
1030 case KDGETREPEAT: /* get keyboard repeat & delay rates */
1030 case KDSETREPEAT: /* set keyboard repeat & delay rates (new) */
1031 error = kbd_ioctl(sc->kbd, cmd, data);
1032 if (error == ENOIOCTL)
1033 error = ENODEV;
1034 return error;
1035
1036 case KDSETRAD: /* set keyboard repeat & delay rates (old) */
1037 if (*(int *)data & ~0x7f)

--- 3008 unchanged lines hidden ---
1031 case KDSETREPEAT: /* set keyboard repeat & delay rates (new) */
1032 error = kbd_ioctl(sc->kbd, cmd, data);
1033 if (error == ENOIOCTL)
1034 error = ENODEV;
1035 return error;
1036
1037 case KDSETRAD: /* set keyboard repeat & delay rates (old) */
1038 if (*(int *)data & ~0x7f)

--- 3008 unchanged lines hidden ---