Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/iomd Revert last. vidcvideo_textpalette() and ...
details: https://anonhg.NetBSD.org/src/rev/64b535ce9771
branches: trunk
changeset: 532850:64b535ce9771
user: bjh21 <bjh21%NetBSD.org@localhost>
date: Sun Jun 16 14:02:04 2002 +0000
description:
Revert last. vidcvideo_textpalette() and vidcvideo_stdpalette set the palette
by different means.
diffstat:
sys/arch/arm/iomd/vidc20config.c | 29 ++++++++++++++++++++++++++---
sys/arch/arm/iomd/vidc20config.h | 3 ++-
2 files changed, 28 insertions(+), 4 deletions(-)
diffs (74 lines):
diff -r 78fe04fda393 -r 64b535ce9771 sys/arch/arm/iomd/vidc20config.c
--- a/sys/arch/arm/iomd/vidc20config.c Sun Jun 16 13:38:12 2002 +0000
+++ b/sys/arch/arm/iomd/vidc20config.c Sun Jun 16 14:02:04 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vidc20config.c,v 1.10 2002/06/16 13:38:12 bjh21 Exp $ */
+/* $NetBSD: vidc20config.c,v 1.11 2002/06/16 14:02:04 bjh21 Exp $ */
/*
* Copyright (c) 2001 Reinoud Zandijk
@@ -48,7 +48,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vidc20config.c,v 1.10 2002/06/16 13:38:12 bjh21 Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vidc20config.c,v 1.11 2002/06/16 14:02:04 bjh21 Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -566,7 +566,7 @@
vidcvideo_setmode(vidc_currentmode);
vidcvideo_blank(0); /* display on */
- vidcvideo_stdpalette();
+ vidcvideo_textpalette();
if (cold_init == 0) {
vidcvideo_write(VIDC_CP1, 0x0);
@@ -683,6 +683,29 @@
}
+int
+vidcvideo_textpalette()
+{
+ vidcvideo_write(VIDC_PALREG, 0x00000000);
+ vidcvideo_write(VIDC_PALETTE, VIDC_COL( 0, 0, 0));
+ vidcvideo_write(VIDC_PALETTE, VIDC_COL(255, 0, 0));
+ vidcvideo_write(VIDC_PALETTE, VIDC_COL( 0, 255, 0));
+ vidcvideo_write(VIDC_PALETTE, VIDC_COL(255, 255, 0));
+ vidcvideo_write(VIDC_PALETTE, VIDC_COL( 0, 0, 255));
+ vidcvideo_write(VIDC_PALETTE, VIDC_COL(255, 0, 255));
+ vidcvideo_write(VIDC_PALETTE, VIDC_COL( 0, 255, 255));
+ vidcvideo_write(VIDC_PALETTE, VIDC_COL(255, 255, 255));
+ vidcvideo_write(VIDC_PALETTE, VIDC_COL(128, 128, 128));
+ vidcvideo_write(VIDC_PALETTE, VIDC_COL(255, 128, 128));
+ vidcvideo_write(VIDC_PALETTE, VIDC_COL(128, 255, 128));
+ vidcvideo_write(VIDC_PALETTE, VIDC_COL(255, 255, 128));
+ vidcvideo_write(VIDC_PALETTE, VIDC_COL(128, 128, 255));
+ vidcvideo_write(VIDC_PALETTE, VIDC_COL(255, 128, 255));
+ vidcvideo_write(VIDC_PALETTE, VIDC_COL(255, 255, 255));
+
+ return 0;
+}
+
int
vidcvideo_blank(video_off)
int video_off;
diff -r 78fe04fda393 -r 64b535ce9771 sys/arch/arm/iomd/vidc20config.h
--- a/sys/arch/arm/iomd/vidc20config.h Sun Jun 16 13:38:12 2002 +0000
+++ b/sys/arch/arm/iomd/vidc20config.h Sun Jun 16 14:02:04 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vidc20config.h,v 1.2 2002/06/16 13:38:13 bjh21 Exp $ */
+/* $NetBSD: vidc20config.h,v 1.3 2002/06/16 14:02:04 bjh21 Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -48,6 +48,7 @@
extern int vidcvideo_write __P((u_int reg, int value));
extern int vidcvideo_cursor_init __P((int width, int heigth));
extern void vidcvideo_setpalette __P((struct vidc_state *vidc));
+extern int vidcvideo_textpalette __P((void));
extern void vidcvideo_stdpalette __P((void));
extern void vidcvideo_setstate __P((struct vidc_state *vidc));
extern void vidcvideo_getstate __P((struct vidc_state *vidc));
Home |
Main Index |
Thread Index |
Old Index