Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci moar registers
details: https://anonhg.NetBSD.org/src/rev/baea5f4eadfc
branches: trunk
changeset: 354466:baea5f4eadfc
user: macallan <macallan%NetBSD.org@localhost>
date: Sat Jun 17 16:11:14 2017 +0000
description:
moar registers
diffstat:
sys/dev/pci/pm3reg.h | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 54 insertions(+), 0 deletions(-)
diffs (82 lines):
diff -r 0c6082acb33d -r baea5f4eadfc sys/dev/pci/pm3reg.h
--- a/sys/dev/pci/pm3reg.h Sat Jun 17 15:49:56 2017 +0000
+++ b/sys/dev/pci/pm3reg.h Sat Jun 17 16:11:14 2017 +0000
@@ -211,10 +211,15 @@
#define PM3_TEXTURECOLOR_MODE 0x00008680
#define PM3_FOG_MODE 0x00008690
#define PM3_COLORDDA_MODE 0x000087e0
+#define PM3_COLOR 0x000087f0
#define PM3_ALPHATEST_MODE 0x00008800
#define PM3_ANTIALIAS_MODE 0x00008808
#define PM3_DITHER_MODE 0x00008818
#define PM3_CF_TO_DIM_CF(_cf) ((((_cf) & 0x0f) << 2) | ( 1 << 10))
+#define PM3_DITHER_ENABLE 0x00000001
+#define PM3_DITHER 0x00000002
+#define PM3_DITHER_COLOR_SHIFT 2
+#define PM3_DITHER_RGB 0x00000400
#define PM3_FBSOFTWAREWRITEMASK 0x00008820
#define PM3_LOGICALOP_MODE 0x00008828
#define PM3_ROUTER_MODE 0x00008840
@@ -256,8 +261,45 @@
#define PM3_FBSOURCEREAD_BUFFEROFFSET 0x0000af10
#define PM3_FBSOURCEREAD_BUFFERWIDTH 0x0000af18
#define PM3_FBSOURCEREAD_BUFFERWIDTH_WIDTH(_w) ((_w) & 0x0fff)
+#define PM3_ALPHA_SOURCE_COLOR 0x0000af80 /* in ABGR */
+#define PM3_ALPHA_DEST_COLOR 0x0000af88 /* in ABGR */
#define PM3_ALPHABLENDCOLOR_MODE 0x0000afa0
+ /* lower 12 bits are identical to PM3_ALPHABLENDALPHA_MODE */
+#define PM3_COLORFORMAT_MASK 0x0000f000
+#define PM3_COLORFORMAT_8888 0x00000000
+#define PM3_COLORFORMAT_4444 0x00001000
+#define PM3_COLORFORMAT_5551 0x00002000
+#define PM3_COLORFORMAT_565 0x00003000
+#define PM3_COLORFORMAT_332 0x00004000
+#define PM3_COLOR_ORDER_RGB 0x00010000
+#define PM3_COLOR_CONV_SHIFT 0x00020000 /* scale otherwise */.
+#define PM3_SOURCE_COLOR_CONST 0x00040000
+#define PM3_DEST_COLOR_CONST 0x00080000
+#define PM3_COLOR_OP_MASK 0x00f00000 /* see PM3_ALPHA_OP_MASK */
+#define PM3_SWAP_SOURCE_DEST 0x01000000
#define PM3_ALPHABLENDALPHA_MODE 0x0000afa8
+#define PM3_ENABLE_ALPHA 0x00000001
+#define PM3_SOURCEBLEND_MASK 0x0000001e
+#define PM3_SOURCEBLEND_SHIFT 1
+#define PM3_DESTBLEND_MASK 0x000000e0
+#define PM3_DESTBLEND_SHIFT 5
+#define PM3_SOURCE_X2 0x00000100
+#define PM3_DEST_X2 0x00000200
+#define PM3_SOURCE_INVERT 0x00000400
+#define PM3_DEST_INVERT 0x00000800
+#define PM3_NO_ALPHA_BUFFER 0x00001000
+#define PM3_ALPHA_APPLE 0x00002000
+#define PM3_ALPHA_OPENGL 0x00000000
+#define PM3_ALPHA_SHIFT 0x00004000
+#define PM3_ALPHA_SCALE 0x00000000
+#define PM3_SOURCE_ALPHA_CONST 0x00008000
+#define PM3_DEST_ALPHA_CONST 0x00010000
+#define PM3_ALPHA_OP_MASK 0x000e0000
+#define PM3_ALPHA_OP_ADD 0x00000000
+#define PM3_ALPHA_OP_SUB 0x00020000
+#define PM3_ALPHA_OP_SUBREV 0x00040000
+#define PM3_ALPHA_OP_MIN 0x00060000
+#define PM3_ALPHA_OP_MAX 0x00080000
#define PM3_FBWRITEBUFFERADDRESS0 0x0000b000
#define PM3_FBWRITEBUFFEROFFSET0 0x0000b020
#define PM3_FBWRITEBUFFERWIDTH0 0x0000b040
@@ -306,4 +348,16 @@
#define PM3_RENDER2D_AREASTIPPLEENABLE 0x40000000
#define PM3_RENDER2D_TEXTUREENABLE 0x80000000
+#define PM3_BLEND_ZERO 0x00000000
+#define PM3_BLEND_ONE 0x00000001
+#define PM3_BLEND_COLOR 0x00000002
+#define PM3_BLEND_ONE_MINUS_COLOR 0x00000003
+#define PM3_BLEND_SOURCE_ALPHA 0x00000004
+#define PM3_BLEND_ONE_MINUS_SOURCE_ALPHA 0x00000005
+#define PM3_BLEND_DEST_ALPHA 0x00000006
+#define PM3_BLEND_ONE_MINUS_DEST_ALPHA 0x00000007
+#define PM3_BLEND_SAT_SOURCE_ALPHA 0x00000008
+
+
+
#endif /* PM3_REG_H */
Home |
Main Index |
Thread Index |
Old Index