Deleted Added
full compact
vt_consolectl.c (268366) vt_consolectl.c (271952)
1/*-
2 * Copyright (c) 2009 The FreeBSD Foundation
3 * All rights reserved.
4 *
5 * This software was developed by Ed Schouten under sponsorship from the
6 * FreeBSD Foundation.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 */
29
30#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2009 The FreeBSD Foundation
3 * All rights reserved.
4 *
5 * This software was developed by Ed Schouten under sponsorship from the
6 * FreeBSD Foundation.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 */
29
30#include <sys/cdefs.h>
31__FBSDID("$FreeBSD: stable/10/sys/dev/vt/vt_consolectl.c 268366 2014-07-07 14:16:05Z ray $");
31__FBSDID("$FreeBSD: stable/10/sys/dev/vt/vt_consolectl.c 271952 2014-09-22 10:21:08Z ray $");
32
33#include <sys/param.h>
34#include <sys/consio.h>
35#include <sys/kernel.h>
36#include <sys/systm.h>
37
38#include <dev/vt/vt.h>
39

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

46};
47
48static int
49consolectl_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int flag,
50 struct thread *td)
51{
52
53 switch (cmd) {
32
33#include <sys/param.h>
34#include <sys/consio.h>
35#include <sys/kernel.h>
36#include <sys/systm.h>
37
38#include <dev/vt/vt.h>
39

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

46};
47
48static int
49consolectl_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int flag,
50 struct thread *td)
51{
52
53 switch (cmd) {
54 case CONS_GETVERS:
54 case CONS_GETVERS:
55 *(int*)data = 0x200;
56 return 0;
57 case CONS_MOUSECTL: {
58 mouse_info_t *mi = (mouse_info_t*)data;
59
60 sysmouse_process_event(mi);
61 return (0);
62 }

--- 20 unchanged lines hidden ---
55 *(int*)data = 0x200;
56 return 0;
57 case CONS_MOUSECTL: {
58 mouse_info_t *mi = (mouse_info_t*)data;
59
60 sysmouse_process_event(mi);
61 return (0);
62 }

--- 20 unchanged lines hidden ---