Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/sun magic number reduction, no functional change
details: https://anonhg.NetBSD.org/src/rev/5e45a1591bac
branches: trunk
changeset: 780074:5e45a1591bac
user: macallan <macallan%NetBSD.org@localhost>
date: Tue Jul 10 22:35:11 2012 +0000
description:
magic number reduction, no functional change
diffstat:
sys/dev/sun/cgsix.c | 13 +++++--------
1 files changed, 5 insertions(+), 8 deletions(-)
diffs (41 lines):
diff -r 4c50050532e5 -r 5e45a1591bac sys/dev/sun/cgsix.c
--- a/sys/dev/sun/cgsix.c Tue Jul 10 22:34:37 2012 +0000
+++ b/sys/dev/sun/cgsix.c Tue Jul 10 22:35:11 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cgsix.c,v 1.52 2012/07/10 22:33:15 macallan Exp $ */
+/* $NetBSD: cgsix.c,v 1.53 2012/07/10 22:35:11 macallan Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -78,7 +78,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cgsix.c,v 1.52 2012/07/10 22:33:15 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cgsix.c,v 1.53 2012/07/10 22:35:11 macallan Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1314,8 +1314,8 @@
fbc->fbc_incy = 1;
fbc->fbc_fg = fg;
fbc->fbc_bg = bg;
- fbc->fbc_mode = 0x00140000; /* nosrc, color1 */
- fbc->fbc_alu = 0x0800fc30; /* colour expansion, solid bg */
+ fbc->fbc_mode = GX_BLIT_NOSRC | GX_MODE_COLOR1;
+ fbc->fbc_alu = GX_PATTERN_ONES | ROP_OSTP(GX_ROP_CLEAR, GX_ROP_SET);
sc->sc_mono_width = wi;
/* now feed the data into the chip */
}
@@ -1396,10 +1396,7 @@
}
/* put the chip back to normal */
fbc->fbc_incy = 0;
- /* nosrc, color8 */
- fbc->fbc_mode = 0x00120000;
- /*fbc->fbc_mode &= ~CG6_MODE_MASK;
- fbc->fbc_mode |= CG6_MODE;*/
+ fbc->fbc_mode = GX_BLIT_NOSRC | GX_MODE_COLOR8;
}
}
}
Home |
Main Index |
Thread Index |
Old Index