Deleted Added
full compact
daemon_saver.c (56043) daemon_saver.c (60201)
1/*-
2 * Copyright (c) 1997 Sandro Sigala, Brescia, Italy.
3 * Copyright (c) 1997 Chris Shenton
4 * Copyright (c) 1995 S ren Schmidt
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
1/*-
2 * Copyright (c) 1997 Sandro Sigala, Brescia, Italy.
3 * Copyright (c) 1997 Chris Shenton
4 * Copyright (c) 1995 S ren Schmidt
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * $FreeBSD: head/sys/dev/syscons/daemon/daemon_saver.c 56043 2000-01-15 15:25:43Z yokota $
28 * $FreeBSD: head/sys/dev/syscons/daemon/daemon_saver.c 60201 2000-05-08 14:55:21Z nyan $
29 */
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/module.h>
34#include <sys/malloc.h>
35#include <sys/kernel.h>
36#include <sys/sysctl.h>
37#include <sys/consio.h>
38#include <sys/fbio.h>
39
40#include <machine/pc/display.h>
41
42#include <dev/fb/fbreg.h>
43#include <dev/fb/splashreg.h>
44#include <dev/syscons/syscons.h>
45
29 */
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/module.h>
34#include <sys/malloc.h>
35#include <sys/kernel.h>
36#include <sys/sysctl.h>
37#include <sys/consio.h>
38#include <sys/fbio.h>
39
40#include <machine/pc/display.h>
41
42#include <dev/fb/fbreg.h>
43#include <dev/fb/splashreg.h>
44#include <dev/syscons/syscons.h>
45
46#ifdef PC98
47#include <pc98/pc98/pc98_machdep.h>
48#endif
49
46#define DAEMON_MAX_WIDTH 32
47#define DAEMON_MAX_HEIGHT 19
48
49static char *message;
50static int messagelen;
51static int blanked;
52
53/* Who is the author of this ASCII pic? */

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

195}
196
197static void
198draw_string(sc_softc_t *sc, int xpos, int ypos, int xoff, char *s, int len)
199{
200 int x;
201
202 for (x = xoff; x < len; x++) {
50#define DAEMON_MAX_WIDTH 32
51#define DAEMON_MAX_HEIGHT 19
52
53static char *message;
54static int messagelen;
55static int blanked;
56
57/* Who is the author of this ASCII pic? */

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

199}
200
201static void
202draw_string(sc_softc_t *sc, int xpos, int ypos, int xoff, char *s, int len)
203{
204 int x;
205
206 for (x = xoff; x < len; x++) {
207#ifdef PC98
203 sc_vtb_putc(&sc->cur_scp->scr,
204 ypos*sc->cur_scp->xsize + xpos + x,
208 sc_vtb_putc(&sc->cur_scp->scr,
209 ypos*sc->cur_scp->xsize + xpos + x,
210 sc->scr_map[s[x]], (FG_GREEN | BG_BLACK) << 8);
211#else
212 sc_vtb_putc(&sc->cur_scp->scr,
213 ypos*sc->cur_scp->xsize + xpos + x,
205 sc->scr_map[s[x]], (FG_LIGHTGREEN | BG_BLACK) << 8);
214 sc->scr_map[s[x]], (FG_LIGHTGREEN | BG_BLACK) << 8);
215#endif
206 }
207}
208
209static int
210daemon_saver(video_adapter_t *adp, int blank)
211{
212 static int txpos = 10, typos = 10;
213 static int txdir = -1, tydir = -1;

--- 180 unchanged lines hidden ---
216 }
217}
218
219static int
220daemon_saver(video_adapter_t *adp, int blank)
221{
222 static int txpos = 10, typos = 10;
223 static int txdir = -1, tydir = -1;

--- 180 unchanged lines hidden ---