summaryrefslogtreecommitdiffstats
path: root/sys/modules
diff options
context:
space:
mode:
authornyan <nyan@FreeBSD.org>2000-05-08 14:55:21 +0000
committernyan <nyan@FreeBSD.org>2000-05-08 14:55:21 +0000
commitc118e945dbea9cfb3f17f191de75063955027acc (patch)
treed3977759f169163c0f704ff495c3e306b37a07c7 /sys/modules
parent2fde06de69369c07020e27ea47a750705298ade1 (diff)
downloadFreeBSD-src-c118e945dbea9cfb3f17f191de75063955027acc.zip
FreeBSD-src-c118e945dbea9cfb3f17f191de75063955027acc.tar.gz
Added PC-98 supports.
Obtained from: FreeBSD(98) 4.0R-Rev01
Diffstat (limited to 'sys/modules')
-rw-r--r--sys/modules/syscons/daemon/Makefile4
-rw-r--r--sys/modules/syscons/daemon/daemon_saver.c10
-rw-r--r--sys/modules/syscons/snake/Makefile4
-rw-r--r--sys/modules/syscons/snake/snake_saver.c4
-rw-r--r--sys/modules/syscons/star/Makefile4
-rw-r--r--sys/modules/syscons/star/star_saver.c4
6 files changed, 30 insertions, 0 deletions
diff --git a/sys/modules/syscons/daemon/Makefile b/sys/modules/syscons/daemon/Makefile
index 9f77446..8e9a471 100644
--- a/sys/modules/syscons/daemon/Makefile
+++ b/sys/modules/syscons/daemon/Makefile
@@ -6,4 +6,8 @@ SRCS= daemon_saver.c
NOMAN=
CFLAGS+= -I${.CURDIR}/..
+.if ${MACHINE} == "pc98"
+CFLAGS+= -DPC98
+.endif
+
.include "${.CURDIR}/../../../conf/kmod.mk"
diff --git a/sys/modules/syscons/daemon/daemon_saver.c b/sys/modules/syscons/daemon/daemon_saver.c
index b056b48..5d5c539 100644
--- a/sys/modules/syscons/daemon/daemon_saver.c
+++ b/sys/modules/syscons/daemon/daemon_saver.c
@@ -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
}
}
diff --git a/sys/modules/syscons/snake/Makefile b/sys/modules/syscons/snake/Makefile
index 4b62a4c..986479a 100644
--- a/sys/modules/syscons/snake/Makefile
+++ b/sys/modules/syscons/snake/Makefile
@@ -6,4 +6,8 @@ SRCS= snake_saver.c
NOMAN=
CFLAGS+= -I${.CURDIR}/..
+.if ${MACHINE} == "pc98"
+CFLAGS+= -DPC98
+.endif
+
.include "${.CURDIR}/../../../conf/kmod.mk"
diff --git a/sys/modules/syscons/snake/snake_saver.c b/sys/modules/syscons/snake/snake_saver.c
index e4277e3..a9a067a 100644
--- a/sys/modules/syscons/snake/snake_saver.c
+++ b/sys/modules/syscons/snake/snake_saver.c
@@ -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;
diff --git a/sys/modules/syscons/star/Makefile b/sys/modules/syscons/star/Makefile
index 65ecbfa..985b7ab 100644
--- a/sys/modules/syscons/star/Makefile
+++ b/sys/modules/syscons/star/Makefile
@@ -6,4 +6,8 @@ SRCS= star_saver.c
NOMAN=
CFLAGS+= -I${.CURDIR}/..
+.if ${MACHINE} == "pc98"
+CFLAGS+= -DPC98
+.endif
+
.include "${.CURDIR}/../../../conf/kmod.mk"
diff --git a/sys/modules/syscons/star/star_saver.c b/sys/modules/syscons/star/star_saver.c
index 27e9921..0008852 100644
--- a/sys/modules/syscons/star/star_saver.c
+++ b/sys/modules/syscons/star/star_saver.c
@@ -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;
OpenPOWER on IntegriCloud