summaryrefslogtreecommitdiffstats
path: root/sys/dev/tdfx/tdfx_vars.h
diff options
context:
space:
mode:
authorcokane <cokane@FreeBSD.org>2000-08-28 04:28:53 +0000
committercokane <cokane@FreeBSD.org>2000-08-28 04:28:53 +0000
commitc851ea05b476be9ac84f29b54bd98fd69be99560 (patch)
tree653af965e7b682df417a4a10d92addbda6fb6643 /sys/dev/tdfx/tdfx_vars.h
parent4b7e05714e32500ba6e3dd109b293bbf3ae292d2 (diff)
downloadFreeBSD-src-c851ea05b476be9ac84f29b54bd98fd69be99560.zip
FreeBSD-src-c851ea05b476be9ac84f29b54bd98fd69be99560.tar.gz
Removed detection for Voodoo Banshee and Voodoo3 cards. I forsee certain
possible complications with the forthcoming DRI code, and feel that DRI should handle the device-level interaction. Read http://people.FreeBSD.org/~cokane/3dfx.html to find out more. Basically want to move toward using OpenGL and DRI for everything on these cards. Added a few defines and spacing style fixes in tdfx_vars.h
Diffstat (limited to 'sys/dev/tdfx/tdfx_vars.h')
-rw-r--r--sys/dev/tdfx/tdfx_vars.h21
1 files changed, 13 insertions, 8 deletions
diff --git a/sys/dev/tdfx/tdfx_vars.h b/sys/dev/tdfx/tdfx_vars.h
index 7af036f..f9a8660 100644
--- a/sys/dev/tdfx/tdfx_vars.h
+++ b/sys/dev/tdfx/tdfx_vars.h
@@ -50,15 +50,19 @@
#define PCI_DEVICE_3DFX_BANSHEE 0x0003121a
#define PCI_DEVICE_3DFX_VOODOO3 0x0005121a
-#define PCI_VENDOR_ID_FREEBSD 0x0
-#define PCI_DEVICE_ID_FREEBSD 0x2
-#define PCI_COMMAND_FREEBSD 0x4
-#define PCI_REVISION_ID_FREEBSD 0x8
+#define PCI_VENDOR_ID_FREEBSD 0x0
+#define PCI_DEVICE_ID_FREEBSD 0x2
+#define PCI_COMMAND_FREEBSD 0x4
+#define PCI_REVISION_ID_FREEBSD 0x8
#define PCI_BASE_ADDRESS_0_FREEBSD 0x10
-#define SST1_PCI_SPECIAL1_FREEBSD 0x40
-#define SST1_PCI_SPECIAL2_FREEBSD 0x44
-#define SST1_PCI_SPECIAL3_FREEBSD 0x48
-#define SST1_PCI_SPECIAL4_FREEBSD 0x54
+#define PCI_BASE_ADDRESS_1_FREEBSD 0x14
+#define PCI_PRIBUS_FREEBSD 0x18
+#define PCI_IOBASE_0_FREEBSD 0x2c
+#define PCI_IOLIMIT_0_FREEBSD 0x30
+#define SST1_PCI_SPECIAL1_FREEBSD 0x40
+#define SST1_PCI_SPECIAL2_FREEBSD 0x44
+#define SST1_PCI_SPECIAL3_FREEBSD 0x48
+#define SST1_PCI_SPECIAL4_FREEBSD 0x54
#define VGA_INPUT_STATUS_1C 0x3DA
#define VGA_MISC_OUTPUT_READ 0x3cc
@@ -85,6 +89,7 @@ struct tdfx_softc {
int vendor;
int type;
int addr0, addr1;
+ short pio0, pio0max;
unsigned char bus;
unsigned char dv;
struct file *curFile;
OpenPOWER on IntegriCloud