Set and use new fboff element from grfmode structure.

This commit is contained in:
briggs 1995-07-02 00:30:25 +00:00
parent af7f31e30a
commit 932a8fc9af
5 changed files with 10 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: grf.c,v 1.22 1995/07/01 23:40:38 briggs Exp $ */
/* $NetBSD: grf.c,v 1.23 1995/07/02 00:30:25 briggs Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -385,7 +385,7 @@ grfmap(dev, addrp, p)
0);
/* Offset into page: */
*addrp += (unsigned long) gp->curr_mode.fbbase & 0xfff;
*addrp += (unsigned long) gp->curr_mode.fboff & 0xfff;
return (error);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: grf_iv.c,v 1.2 1995/06/21 02:48:00 briggs Exp $ */
/* $NetBSD: grf_iv.c,v 1.3 1995/07/02 00:30:30 briggs Exp $ */
/*
* Copyright (c) 1995 Allen Briggs. All rights reserved.
@ -93,6 +93,7 @@ grfiv_init(sc)
gm->vres = 80; /* XXX Hack */
gm->fbsize = gm->width * gm->height;
gm->fbbase = (caddr_t) 0;
gm->fboff = 0;
return 1;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: grf_mv.c,v 1.4 1995/06/30 05:21:33 briggs Exp $ */
/* $NetBSD: grf_mv.c,v 1.5 1995/07/02 00:30:29 briggs Exp $ */
/*
* Copyright (c) 1995 Allen Briggs. All rights reserved.
@ -177,6 +177,7 @@ grfmv_init(sc)
sc->curr_mode.mode_id = mode;
sc->curr_mode.fbbase = (caddr_t) (base + image.offset);
sc->curr_mode.fboff = image.offset;
sc->curr_mode.rowbytes = image.rowbytes;
sc->curr_mode.width = image.right - image.left;
sc->curr_mode.height = image.bottom - image.top;

View File

@ -1,4 +1,4 @@
/* $NetBSD: grf_nubus.c,v 1.4 1995/06/30 05:21:33 briggs Exp $ */
/* $NetBSD: grf_nubus.c,v 1.5 1995/07/02 00:30:29 briggs Exp $ */
/*
* Copyright (c) 1995 Allen Briggs. All rights reserved.
@ -177,6 +177,7 @@ grfmv_init(sc)
sc->curr_mode.mode_id = mode;
sc->curr_mode.fbbase = (caddr_t) (base + image.offset);
sc->curr_mode.fboff = image.offset;
sc->curr_mode.rowbytes = image.rowbytes;
sc->curr_mode.width = image.right - image.left;
sc->curr_mode.height = image.bottom - image.top;

View File

@ -1,4 +1,4 @@
/* $NetBSD: grf_obio.c,v 1.2 1995/06/21 02:48:00 briggs Exp $ */
/* $NetBSD: grf_obio.c,v 1.3 1995/07/02 00:30:30 briggs Exp $ */
/*
* Copyright (c) 1995 Allen Briggs. All rights reserved.
@ -93,6 +93,7 @@ grfiv_init(sc)
gm->vres = 80; /* XXX Hack */
gm->fbsize = gm->width * gm->height;
gm->fbbase = (caddr_t) 0;
gm->fboff = 0;
return 1;
}