Deleted Added
sdiff udiff text old ( 197539 ) new ( 199171 )
full compact
1/*-
2 * Copyright (c) 1999 Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
3 * All rights reserved.
4 *
5 * Copyright (c) 2008-2009 Ed Schouten <ed@FreeBSD.org>
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

23 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */
29
30#include <sys/cdefs.h>
31__FBSDID("$FreeBSD: head/sys/dev/syscons/scterm-teken.c 197539 2009-09-27 18:19:41Z ed $");
32
33#include "opt_syscons.h"
34#include "opt_teken.h"
35
36#include <sys/param.h>
37#include <sys/systm.h>
38#include <sys/kernel.h>
39#include <sys/module.h>
40#include <sys/consio.h>
41
42#if defined(__sparc64__) || defined(__powerpc__)
43#include <machine/sc_machdep.h>
44#else
45#include <machine/pc/display.h>
46#endif
47
48#include <dev/syscons/syscons.h>
49
50#include <teken/teken.h>
51
52static void scteken_revattr(unsigned char, teken_attr_t *);
53static unsigned int scteken_attr(const teken_attr_t *);
54
55static sc_term_init_t scteken_init;
56static sc_term_term_t scteken_term;
57static sc_term_puts_t scteken_puts;
58static sc_term_ioctl_t scteken_ioctl;
59static sc_term_default_attr_t scteken_default_attr;
60static sc_term_clear_t scteken_clear;
61static sc_term_input_t scteken_input;
62static void scteken_nop(void);
63
64typedef struct {
65 teken_t ts_teken;
66 int ts_busy;
67} teken_stat;
68
69static teken_stat reserved_teken_stat;
70

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

79 scteken_term,
80 scteken_puts,
81 scteken_ioctl,
82 (sc_term_reset_t *)scteken_nop,
83 scteken_default_attr,
84 scteken_clear,
85 (sc_term_notify_t *)scteken_nop,
86 scteken_input,
87};
88
89SCTERM_MODULE(scteken, sc_term_scteken);
90
91static tf_bell_t scteken_bell;
92static tf_cursor_t scteken_cursor;
93static tf_putchar_t scteken_putchar;
94static tf_fill_t scteken_fill;

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

236
237static int
238scteken_input(scr_stat *scp, int c, struct tty *tp)
239{
240
241 return FALSE;
242}
243
244static void
245scteken_nop(void)
246{
247
248}
249
250/*
251 * libteken routines.

--- 408 unchanged lines hidden ---