Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/atari/pci Initialize to CGA mode. Wscons expects this.



details:   https://anonhg.NetBSD.org/src/rev/4b18e45433a6
branches:  trunk
changeset: 510151:4b18e45433a6
user:      leo <leo%NetBSD.org@localhost>
date:      Mon May 21 14:30:41 2001 +0000

description:
Initialize to CGA mode. Wscons expects this.

diffstat:

 sys/arch/atari/pci/pci_tseng.c |   4 ++--
 sys/arch/atari/pci/pci_vga.c   |  11 ++++++++---
 2 files changed, 10 insertions(+), 5 deletions(-)

diffs (57 lines):

diff -r da9428df180f -r 4b18e45433a6 sys/arch/atari/pci/pci_tseng.c
--- a/sys/arch/atari/pci/pci_tseng.c    Mon May 21 14:09:09 2001 +0000
+++ b/sys/arch/atari/pci/pci_tseng.c    Mon May 21 14:30:41 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pci_tseng.c,v 1.3 1999/06/03 12:38:50 leo Exp $        */
+/*     $NetBSD: pci_tseng.c,v 1.4 2001/05/21 14:30:41 leo Exp $        */
 
 /*
  * Copyright (c) 1999 Leo Weppelman.  All rights reserved.
@@ -49,7 +49,7 @@
        0x03, 0x01, 0x03, 0x00, 0x02, 0x00, 0x00, 0x00 };
 
 static u_char gfx_tab[] = {
-       0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x06, 0x0f, 0xff };
+       0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x0e, 0x0f, 0xff };
 
 static u_char attr_tab[] = {
        0x0a, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00 };
diff -r da9428df180f -r 4b18e45433a6 sys/arch/atari/pci/pci_vga.c
--- a/sys/arch/atari/pci/pci_vga.c      Mon May 21 14:09:09 2001 +0000
+++ b/sys/arch/atari/pci/pci_vga.c      Mon May 21 14:30:41 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pci_vga.c,v 1.1 1999/03/15 15:47:22 leo Exp $  */
+/*     $NetBSD: pci_vga.c,v 1.2 2001/05/21 14:30:42 leo Exp $  */
 
 /*
  * Copyright (c) 1999 Leo Weppelman.  All rights reserved.
@@ -105,6 +105,11 @@
                return (0);
 
        /*
+        * Assume the device is in CGA mode. Wscons expects this too...
+        */
+       fb = fb + 0x18000;
+
+       /*
         * Generic parts of the initialization...
         */
        
@@ -156,7 +161,7 @@
        WSeq(ba, SEQ_ID_MEMORY_MODE,     0x06);
        WGfx(ba, GCT_ID_READ_MAP_SELECT, 0x02);
        WGfx(ba, GCT_ID_GRAPHICS_MODE,   0x00);
-       WGfx(ba, GCT_ID_MISC,            0x04);
+       WGfx(ba, GCT_ID_MISC,            0x0c);
        
        /*
         * load text font into beginning of display memory. Each
@@ -180,7 +185,7 @@
        WSeq(ba, SEQ_ID_MEMORY_MODE,     0x03);
        WGfx(ba, GCT_ID_READ_MAP_SELECT, 0x00);
        WGfx(ba, GCT_ID_GRAPHICS_MODE,   0x10);
-       WGfx(ba, GCT_ID_MISC,            0x06);
+       WGfx(ba, GCT_ID_MISC,            0x0e);
 
        /*
         * Font height + underline location



Home | Main Index | Thread Index | Old Index