summaryrefslogtreecommitdiffstats
path: root/sys/dev/syscons
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/dev/syscons
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/dev/syscons')
-rw-r--r--sys/dev/syscons/daemon/daemon_saver.c10
-rw-r--r--sys/dev/syscons/snake/snake_saver.c4
-rw-r--r--sys/dev/syscons/star/star_saver.c4
3 files changed, 18 insertions, 0 deletions
diff --git a/sys/dev/syscons/daemon/daemon_saver.c b/sys/dev/syscons/daemon/daemon_saver.c
index b056b48..5d5c539 100644
--- a/sys/dev/syscons/daemon/daemon_saver.c
+++ b/sys/dev/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/dev/syscons/snake/snake_saver.c b/sys/dev/syscons/snake/snake_saver.c
index e4277e3..a9a067a 100644
--- a/sys/dev/syscons/snake/snake_saver.c
+++ b/sys/dev/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/dev/syscons/star/star_saver.c b/sys/dev/syscons/star/star_saver.c
index 27e9921..0008852 100644
--- a/sys/dev/syscons/star/star_saver.c
+++ b/sys/dev/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