Deleted Added
full compact
scterm-sck.c (153110) scterm-sck.c (181905)
1/*-
2 * Copyright (c) 1999 FreeBSD(98) Porting Team.
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

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

18 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT,
19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
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 *
1/*-
2 * Copyright (c) 1999 FreeBSD(98) Porting Team.
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

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

18 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT,
19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
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 * $FreeBSD: head/sys/pc98/cbus/scterm-sck.c 153110 2005-12-05 11:58:35Z ru $
26 * $FreeBSD: head/sys/pc98/cbus/scterm-sck.c 181905 2008-08-20 08:31:58Z ed $
27 */
28
29#include "opt_syscons.h"
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/kernel.h>
34#include <sys/module.h>

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

1105
1106 scp->sc->write_in_progress--;
1107 if (len)
1108 goto outloop;
1109}
1110
1111static int
1112scterm_ioctl(scr_stat *scp, struct tty *tp, u_long cmd, caddr_t data,
27 */
28
29#include "opt_syscons.h"
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/kernel.h>
34#include <sys/module.h>

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

1105
1106 scp->sc->write_in_progress--;
1107 if (len)
1108 goto outloop;
1109}
1110
1111static int
1112scterm_ioctl(scr_stat *scp, struct tty *tp, u_long cmd, caddr_t data,
1113 int flag, struct thread *td)
1113 struct thread *td)
1114{
1115 term_stat *tcp = scp->ts;
1116 vid_info_t *vi;
1117
1118 switch (cmd) {
1119 case GIO_ATTR: /* get current attributes */
1120 /* FIXME: */
1121 *(int*)data = (tcp->cur_attr >> 8) & 0xff;

--- 95 unchanged lines hidden ---
1114{
1115 term_stat *tcp = scp->ts;
1116 vid_info_t *vi;
1117
1118 switch (cmd) {
1119 case GIO_ATTR: /* get current attributes */
1120 /* FIXME: */
1121 *(int*)data = (tcp->cur_attr >> 8) & 0xff;

--- 95 unchanged lines hidden ---