Deleted Added
full compact
scmouse.c (119420) scmouse.c (146736)
1/*-
2 * Copyright (c) 1999 Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
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 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1999 Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
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 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/dev/syscons/scmouse.c 119420 2003-08-24 18:17:24Z obrien $");
28__FBSDID("$FreeBSD: head/sys/dev/syscons/scmouse.c 146736 2005-05-29 08:43:44Z delphij $");
29
30#include "opt_syscons.h"
31
32#include <sys/param.h>
33#include <sys/systm.h>
34#include <sys/conf.h>
35#include <sys/consio.h>
36#include <sys/fbio.h>

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

674
675 case MOUSE_SHOW:
676 s = spltty();
677 if (!(scp->sc->flags & SC_MOUSE_ENABLED)) {
678 scp->sc->flags |= SC_MOUSE_ENABLED;
679 cur_scp->status &= ~MOUSE_HIDDEN;
680 if (!ISGRAPHSC(cur_scp))
681 mark_all(cur_scp);
29
30#include "opt_syscons.h"
31
32#include <sys/param.h>
33#include <sys/systm.h>
34#include <sys/conf.h>
35#include <sys/consio.h>
36#include <sys/fbio.h>

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

674
675 case MOUSE_SHOW:
676 s = spltty();
677 if (!(scp->sc->flags & SC_MOUSE_ENABLED)) {
678 scp->sc->flags |= SC_MOUSE_ENABLED;
679 cur_scp->status &= ~MOUSE_HIDDEN;
680 if (!ISGRAPHSC(cur_scp))
681 mark_all(cur_scp);
682 splx(s);
683 return 0;
684 } else {
685 splx(s);
686 return EINVAL;
687 }
682 }
688 break;
683 splx(s);
684 return 0;
685 /* NOTREACHED */
689
690 case MOUSE_HIDE:
691 s = spltty();
692 if (scp->sc->flags & SC_MOUSE_ENABLED) {
693 scp->sc->flags &= ~SC_MOUSE_ENABLED;
694 sc_remove_all_mouse(scp->sc);
686
687 case MOUSE_HIDE:
688 s = spltty();
689 if (scp->sc->flags & SC_MOUSE_ENABLED) {
690 scp->sc->flags &= ~SC_MOUSE_ENABLED;
691 sc_remove_all_mouse(scp->sc);
695 splx(s);
696 return 0;
697 } else {
698 splx(s);
699 return EINVAL;
700 }
692 }
701 break;
693 splx(s);
694 return 0;
695 /* NOTREACHED */
702
703 case MOUSE_MOVEABS:
704 s = spltty();
705 scp->mouse_xpos = mouse->u.data.x;
706 scp->mouse_ypos = mouse->u.data.y;
707 set_mouse_pos(scp);
708 splx(s);
709 break;

--- 201 unchanged lines hidden ---
696
697 case MOUSE_MOVEABS:
698 s = spltty();
699 scp->mouse_xpos = mouse->u.data.x;
700 scp->mouse_ypos = mouse->u.data.y;
701 set_mouse_pos(scp);
702 splx(s);
703 break;

--- 201 unchanged lines hidden ---