summaryrefslogtreecommitdiff
path: root/sys/dev/sbus/cgsixreg.h
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2002-07-30 23:03:31 +0000
committerJason Wright <jason@cvs.openbsd.org>2002-07-30 23:03:31 +0000
commit9fa22dab6be1492a24bdccea29ac7472b91d342b (patch)
tree41535ba7d2de70d1f5ba358eecce02822a7eead2 /sys/dev/sbus/cgsixreg.h
parent1421d3a222d2f8eabc7e689cd8c5c93638c36ca9 (diff)
- Whoops, I had the mode mask and value bits backwards
- make sure FBC_MODE is reset when switching back to WSDISPLAYIO_MODE_EMUL
Diffstat (limited to 'sys/dev/sbus/cgsixreg.h')
-rw-r--r--sys/dev/sbus/cgsixreg.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/sbus/cgsixreg.h b/sys/dev/sbus/cgsixreg.h
index 31478041dfa..226b9e196bc 100644
--- a/sys/dev/sbus/cgsixreg.h
+++ b/sys/dev/sbus/cgsixreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cgsixreg.h,v 1.2 2002/07/30 18:07:02 jason Exp $ */
+/* $OpenBSD: cgsixreg.h,v 1.3 2002/07/30 23:03:30 jason Exp $ */
/*
* Copyright (c) 2002 Jason L. Wright (jason@thought.net)
@@ -111,7 +111,7 @@ union bt_cmap {
#define CG6_FBC_ARECTX 0x900 /* rectangle drawing, x coord */
#define CG6_FBC_ARECTY 0x904 /* rectangle drawing, y coord */
-#define FBC_MODE_MASK ( \
+#define FBC_MODE_VAL ( \
0x00200000 /* GX_BLIT_SRC */ \
| 0x00020000 /* GX_MODE_COLOR8 */ \
| 0x00008000 /* GX_DRAW_RENDER */ \
@@ -120,7 +120,7 @@ union bt_cmap {
| 0x00000200 /* GX_BREAD_0 */ \
| 0x00000080 /* GX_BDISP_0 */ \
)
-#define FBC_MODE_VAL ( \
+#define FBC_MODE_MASK ( \
0x00300000 /* GX_BLIT_ALL */ \
| 0x00060000 /* GX_MODE_ALL */ \
| 0x00018000 /* GX_DRAW_ALL */ \