Added PC-98 supports.
Obtained from: FreeBSD(98) 4.0R-Rev01
This commit is contained in:
parent
2d41e34a07
commit
b95b56c7a0
@ -43,6 +43,10 @@
|
||||
#include <dev/fb/splashreg.h>
|
||||
#include <dev/syscons/syscons.h>
|
||||
|
||||
#ifdef PC98
|
||||
#include <pc98/pc98/pc98_machdep.h>
|
||||
#endif
|
||||
|
||||
#define DAEMON_MAX_WIDTH 32
|
||||
#define DAEMON_MAX_HEIGHT 19
|
||||
|
||||
@ -200,9 +204,15 @@ draw_string(sc_softc_t *sc, int xpos, int ypos, int xoff, char *s, int len)
|
||||
int x;
|
||||
|
||||
for (x = xoff; x < len; x++) {
|
||||
#ifdef PC98
|
||||
sc_vtb_putc(&sc->cur_scp->scr,
|
||||
ypos*sc->cur_scp->xsize + xpos + x,
|
||||
sc->scr_map[s[x]], (FG_GREEN | BG_BLACK) << 8);
|
||||
#else
|
||||
sc_vtb_putc(&sc->cur_scp->scr,
|
||||
ypos*sc->cur_scp->xsize + xpos + x,
|
||||
sc->scr_map[s[x]], (FG_LIGHTGREEN | BG_BLACK) << 8);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -43,6 +43,10 @@
|
||||
#include <dev/fb/splashreg.h>
|
||||
#include <dev/syscons/syscons.h>
|
||||
|
||||
#ifdef PC98
|
||||
#include <pc98/pc98/pc98_machdep.h>
|
||||
#endif
|
||||
|
||||
static char *message;
|
||||
static int *messagep;
|
||||
static int messagelen;
|
||||
|
@ -41,6 +41,10 @@
|
||||
#include <dev/fb/splashreg.h>
|
||||
#include <dev/syscons/syscons.h>
|
||||
|
||||
#ifdef PC98
|
||||
#include <pc98/pc98/pc98_machdep.h>
|
||||
#endif
|
||||
|
||||
#define NUM_STARS 50
|
||||
|
||||
static int blanked;
|
||||
|
@ -6,4 +6,8 @@ SRCS= daemon_saver.c
|
||||
NOMAN=
|
||||
CFLAGS+= -I${.CURDIR}/..
|
||||
|
||||
.if ${MACHINE} == "pc98"
|
||||
CFLAGS+= -DPC98
|
||||
.endif
|
||||
|
||||
.include "${.CURDIR}/../../../conf/kmod.mk"
|
||||
|
@ -43,6 +43,10 @@
|
||||
#include <dev/fb/splashreg.h>
|
||||
#include <dev/syscons/syscons.h>
|
||||
|
||||
#ifdef PC98
|
||||
#include <pc98/pc98/pc98_machdep.h>
|
||||
#endif
|
||||
|
||||
#define DAEMON_MAX_WIDTH 32
|
||||
#define DAEMON_MAX_HEIGHT 19
|
||||
|
||||
@ -200,9 +204,15 @@ draw_string(sc_softc_t *sc, int xpos, int ypos, int xoff, char *s, int len)
|
||||
int x;
|
||||
|
||||
for (x = xoff; x < len; x++) {
|
||||
#ifdef PC98
|
||||
sc_vtb_putc(&sc->cur_scp->scr,
|
||||
ypos*sc->cur_scp->xsize + xpos + x,
|
||||
sc->scr_map[s[x]], (FG_GREEN | BG_BLACK) << 8);
|
||||
#else
|
||||
sc_vtb_putc(&sc->cur_scp->scr,
|
||||
ypos*sc->cur_scp->xsize + xpos + x,
|
||||
sc->scr_map[s[x]], (FG_LIGHTGREEN | BG_BLACK) << 8);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -6,4 +6,8 @@ SRCS= snake_saver.c
|
||||
NOMAN=
|
||||
CFLAGS+= -I${.CURDIR}/..
|
||||
|
||||
.if ${MACHINE} == "pc98"
|
||||
CFLAGS+= -DPC98
|
||||
.endif
|
||||
|
||||
.include "${.CURDIR}/../../../conf/kmod.mk"
|
||||
|
@ -43,6 +43,10 @@
|
||||
#include <dev/fb/splashreg.h>
|
||||
#include <dev/syscons/syscons.h>
|
||||
|
||||
#ifdef PC98
|
||||
#include <pc98/pc98/pc98_machdep.h>
|
||||
#endif
|
||||
|
||||
static char *message;
|
||||
static int *messagep;
|
||||
static int messagelen;
|
||||
|
@ -6,4 +6,8 @@ SRCS= star_saver.c
|
||||
NOMAN=
|
||||
CFLAGS+= -I${.CURDIR}/..
|
||||
|
||||
.if ${MACHINE} == "pc98"
|
||||
CFLAGS+= -DPC98
|
||||
.endif
|
||||
|
||||
.include "${.CURDIR}/../../../conf/kmod.mk"
|
||||
|
@ -41,6 +41,10 @@
|
||||
#include <dev/fb/splashreg.h>
|
||||
#include <dev/syscons/syscons.h>
|
||||
|
||||
#ifdef PC98
|
||||
#include <pc98/pc98/pc98_machdep.h>
|
||||
#endif
|
||||
|
||||
#define NUM_STARS 50
|
||||
|
||||
static int blanked;
|
||||
|
Loading…
x
Reference in New Issue
Block a user