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 vidcvideo_stdpalette() and vidcvideo_textp...
details: https://anonhg.NetBSD.org/src/rev/78fe04fda393
branches: trunk
changeset: 532849:78fe04fda393
user: bjh21 <bjh21%NetBSD.org@localhost>
date: Sun Jun 16 13:38:12 2002 +0000
description:
vidcvideo_stdpalette() and vidcvideo_textpalette() do precisely the same thing.
G/C the latter and change its only caller to use the former.
diffstat:
sys/arch/arm/iomd/vidc20config.c | 29 +++--------------------------
sys/arch/arm/iomd/vidc20config.h | 3 +--
2 files changed, 4 insertions(+), 28 deletions(-)
diffs (74 lines):
diff -r 151163debbcb -r 78fe04fda393 sys/arch/arm/iomd/vidc20config.c
--- a/sys/arch/arm/iomd/vidc20config.c Sun Jun 16 13:25:02 2002 +0000
+++ b/sys/arch/arm/iomd/vidc20config.c Sun Jun 16 13:38:12 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vidc20config.c,v 1.9 2002/03/15 13:33:19 reinoud Exp $ */
+/* $NetBSD: vidc20config.c,v 1.10 2002/06/16 13:38:12 bjh21 Exp $ */
/*
* Copyright (c) 2001 Reinoud Zandijk
@@ -48,7 +48,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vidc20config.c,v 1.9 2002/03/15 13:33:19 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vidc20config.c,v 1.10 2002/06/16 13:38:12 bjh21 Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -566,7 +566,7 @@
vidcvideo_setmode(vidc_currentmode);
vidcvideo_blank(0); /* display on */
- vidcvideo_textpalette();
+ vidcvideo_stdpalette();
if (cold_init == 0) {
vidcvideo_write(VIDC_CP1, 0x0);
@@ -683,29 +683,6 @@
}
-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 151163debbcb -r 78fe04fda393 sys/arch/arm/iomd/vidc20config.h
--- a/sys/arch/arm/iomd/vidc20config.h Sun Jun 16 13:25:02 2002 +0000
+++ b/sys/arch/arm/iomd/vidc20config.h Sun Jun 16 13:38:12 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vidc20config.h,v 1.1 2001/10/05 22:27:43 reinoud Exp $ */
+/* $NetBSD: vidc20config.h,v 1.2 2002/06/16 13:38:13 bjh21 Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -48,7 +48,6 @@
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