Deleted Added
full compact
uart_kbd_sun.c (155971) uart_kbd_sun.c (162424)
1/*-
2 * Copyright (c) 2003 Jake Burkholder.
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 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2003 Jake Burkholder.
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 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/dev/uart/uart_kbd_sun.c 155971 2006-02-24 02:42:26Z marcel $");
28__FBSDID("$FreeBSD: head/sys/dev/uart/uart_kbd_sun.c 162424 2006-09-18 22:56:59Z emax $");
29
30#include "opt_kbd.h"
31
32#include <sys/param.h>
33#include <sys/systm.h>
34#include <sys/bus.h>
35#include <sys/interrupt.h>
36#include <sys/kbio.h>

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

544 TODO;
545}
546
547static void
548sunkbd_repeat(void *v)
549{
550 struct sunkbd_softc *sc = v;
551
29
30#include "opt_kbd.h"
31
32#include <sys/param.h>
33#include <sys/systm.h>
34#include <sys/bus.h>
35#include <sys/interrupt.h>
36#include <sys/kbio.h>

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

544 TODO;
545}
546
547static void
548sunkbd_repeat(void *v)
549{
550 struct sunkbd_softc *sc = v;
551
552 if (sc->sc_repeat_key != -1) {
553 sc->sc_repeating = 1;
554 sc->sc_kbd.kb_callback.kc_func(&sc->sc_kbd,
555 KBDIO_KEYINPUT, sc->sc_kbd.kb_callback.kc_arg);
552 if (KBD_IS_ACTIVE(&sc->sc_kbd) && KBD_IS_BUSY(&sc->sc_kbd)) {
553 if (sc->sc_repeat_key != -1) {
554 sc->sc_repeating = 1;
555 sc->sc_kbd.kb_callback.kc_func(&sc->sc_kbd,
556 KBDIO_KEYINPUT, sc->sc_kbd.kb_callback.kc_arg);
557 }
556 }
557}
558 }
559}