pkgsrc/x11/xf86-video-tdfx/patches/patch-aa
abs 041a8c7d56 Updated x11/xf86-video-tdfx to 1.4.2
upstream changes:
    - No changelog available
pkgsrc changes:
    - Add patch to include <sys/time.h> so gettimeofday() actually works
    - Regen patches for changed line numbers
2009-07-21 20:12:07 +00:00

33 lines
1.3 KiB
Text

$NetBSD: patch-aa,v 1.2 2009/07/21 20:12:07 abs Exp $
--- src/tdfxdefs.h.orig 2008-08-15 18:55:32.000000000 +0100
+++ src/tdfxdefs.h
@@ -405,4 +405,28 @@
#define SST_POWERDOWN_DAC BIT(8)
+/* VIDSERIALPARALELPORT */
+#define VSP_TVOUT_RESET 0x80000000 /* 0 forces TVout reset */
+#define VSP_GPIO2_IN 0x40000000
+#define VSP_GPIO1_OUT 0x20000000
+#define VSP_VMI_RESET_N 0x10000000 /* 0 forces a VMI reset */
+#define VSP_SDA1_IN 0x08000000 /* i2c bus on the feature connector */
+#define VSP_SCL1_IN 0x04000000
+#define VSP_SDA1_OUT 0x02000000
+#define VSP_SCL1_OUT 0x01000000
+#define VSP_ENABLE_IIC1 0x00800000 /* 1 enables I2C bus 1 */
+#define VSP_SDA0_IN 0x00400000 /* i2c bus on the monitor connector */
+#define VSP_SCL0_IN 0x00200000
+#define VSP_SDA0_OUT 0x00100000
+#define VSP_SCL0_OUT 0x00080000
+#define VSP_ENABLE_IIC0 0x00040000 /* 1 enables I2C bus 0 */
+#define VSP_VMI_ADDRESS 0x0003c000 /* mask */
+#define VSP_VMI_DATA 0x00003fc0 /* mask */
+#define VSP_VMI_DISABLE 0x00000020 /* 0 enables VMI output */
+#define VSP_VMI_RDY_N 0x00000010
+#define VSP_RW_N 0x00000008
+#define VSP_DS_N 0x00000004
+#define VSP_CS_N 0x00000002
+#define VSP_HOST_ENABLE 0x00000001 /* 1 enables VMI host control*/
+
#endif