Deleted Added
full compact
star_saver.c (50477) star_saver.c (56043)
1/*-
2 * Copyright (c) 1995-1998 S�ren Schmidt
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 * 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) 1995-1998 S�ren Schmidt
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 * 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/star/star_saver.c 50477 1999-08-28 01:08:13Z peter $
28 * $FreeBSD: head/sys/dev/syscons/star/star_saver.c 56043 2000-01-15 15:25:43Z yokota $
29 */
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/kernel.h>
34#include <sys/module.h>
35#include <sys/consio.h>
36#include <sys/fbio.h>

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

80 outb(0x0c17, inb(0xc17) & ~0x08);
81 outb(0x43f, 0x40);
82 }
83#endif /* PC98 */
84 /* clear the screen and set the border color */
85 sc_vtb_clear(&scp->scr, sc->scr_map[0x20],
86 (FG_LIGHTGREY | BG_BLACK) << 8);
87 (*vidsw[adp->va_index]->set_hw_cursor)(adp, -1, -1);
29 */
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/kernel.h>
34#include <sys/module.h>
35#include <sys/consio.h>
36#include <sys/fbio.h>

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

80 outb(0x0c17, inb(0xc17) & ~0x08);
81 outb(0x43f, 0x40);
82 }
83#endif /* PC98 */
84 /* clear the screen and set the border color */
85 sc_vtb_clear(&scp->scr, sc->scr_map[0x20],
86 (FG_LIGHTGREY | BG_BLACK) << 8);
87 (*vidsw[adp->va_index]->set_hw_cursor)(adp, -1, -1);
88 set_border(scp, 0);
88 sc_set_border(scp, 0);
89 blanked = TRUE;
90 for(i=0; i<NUM_STARS; i++) {
91 stars[i][0] =
92 random() % (scp->xsize*scp->ysize);
93 stars[i][1] = 0;
94 }
95 }
96 cell = random() % NUM_STARS;

--- 39 unchanged lines hidden ---
89 blanked = TRUE;
90 for(i=0; i<NUM_STARS; i++) {
91 stars[i][0] =
92 random() % (scp->xsize*scp->ysize);
93 stars[i][1] = 0;
94 }
95 }
96 cell = random() % NUM_STARS;

--- 39 unchanged lines hidden ---