Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/tc SFB video base register is assigned with an inial...



details:   https://anonhg.NetBSD.org/src/rev/8cdbe9b0f8f6
branches:  trunk
changeset: 476979:8cdbe9b0f8f6
user:      nisimura <nisimura%NetBSD.org@localhost>
date:      Tue Oct 05 09:13:30 1999 +0000

description:
SFB video base register is assigned with an inialial value before use;
according to ULTRIX/OSF1 code.

diffstat:

 sys/dev/tc/sfb.c |  11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diffs (53 lines):

diff -r bbb2f4299119 -r 8cdbe9b0f8f6 sys/dev/tc/sfb.c
--- a/sys/dev/tc/sfb.c  Tue Oct 05 05:53:42 1999 +0000
+++ b/sys/dev/tc/sfb.c  Tue Oct 05 09:13:30 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sfb.c,v 1.18 1999/06/25 03:33:20 nisimura Exp $ */
+/* $NetBSD: sfb.c,v 1.19 1999/10/05 09:13:30 nisimura Exp $ */
 
 /*
  * Copyright (c) 1998, 1999 Tohru Nishimura.  All rights reserved.
@@ -32,7 +32,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: sfb.c,v 1.18 1999/06/25 03:33:20 nisimura Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sfb.c,v 1.19 1999/10/05 09:13:30 nisimura Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -171,7 +171,6 @@
 void   sfb_copyrows __P((void *, int, int, int));
 void   sfb_eraserows __P((void *, int, int, long));
 int    sfb_alloc_attr __P((void *, int, int, int, long *));
-#define        rcons_alloc_attr sfb_alloc_attr
 
 struct wsdisplay_emulops sfb_emulops = {
        sfb_cursor,                     /* could use hardware cursor; punt */
@@ -300,7 +299,7 @@
        sfbasic = (caddr_t)(dc->dc_vaddr + SFB_ASIC_OFFSET);
        hsetup = *(u_int32_t *)(sfbasic + SFB_ASIC_VIDEO_HSETUP);
        vsetup = *(u_int32_t *)(sfbasic + SFB_ASIC_VIDEO_VSETUP);
-       vbase  = *(u_int32_t *)(sfbasic + SFB_ASIC_VIDEO_BASE) & 0x1ff;
+       *(u_int32_t *)(sfbasic + SFB_ASIC_VIDEO_BASE) = vbase = 1;
 
        dc->dc_wid = (hsetup & 0x1ff) << 2;
        dc->dc_ht = (vsetup & 0x7ff);
@@ -485,7 +484,7 @@
        *cookiep = &sc->sc_dc->dc_rcons; /* one and only for now */
        *curxp = 0;
        *curyp = 0;
-       rcons_alloc_attr(&sc->sc_dc->dc_rcons, 0, 0, 0, &defattr);
+       sfb_alloc_attr(&sc->sc_dc->dc_rcons, 0, 0, 0, &defattr);
        *attrp = defattr;
        sc->nscreens++;
        return (0);
@@ -520,7 +519,7 @@
 
         sfb_getdevconfig(addr, dcp);
  
-        rcons_alloc_attr(&dcp->dc_rcons, 0, 0, 0, &defattr);
+        sfb_alloc_attr(&dcp->dc_rcons, 0, 0, 0, &defattr);
 
         wsdisplay_cnattach(&sfb_stdscreen, &dcp->dc_rcons,
                            0, 0, defattr);



Home | Main Index | Thread Index | Old Index