summaryrefslogtreecommitdiffstats
path: root/sys/dev/tdfx/tdfx_pci.h
diff options
context:
space:
mode:
authorcokane <cokane@FreeBSD.org>2000-06-21 20:09:31 +0000
committercokane <cokane@FreeBSD.org>2000-06-21 20:09:31 +0000
commitfd35136c6dcf725645029a03a946c73fb3467e67 (patch)
tree8b662769603e5160c99a35923ac82535a89494cb /sys/dev/tdfx/tdfx_pci.h
downloadFreeBSD-src-fd35136c6dcf725645029a03a946c73fb3467e67.zip
FreeBSD-src-fd35136c6dcf725645029a03a946c73fb3467e67.tar.gz
First import of my 3dfx voodoo driver. Currently it supports the Voodoo Graphics and Voodoo2 perfectly. It works just like the 3dfx driver does for linux, by using a character device at /dev/3dfx of Major 107 to provide a window into the 3dfx card's memory space. This interface is used by glide and mesa as far as i know, and probably some other libraries too.
Approved by: jkh
Diffstat (limited to 'sys/dev/tdfx/tdfx_pci.h')
-rw-r--r--sys/dev/tdfx/tdfx_pci.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/sys/dev/tdfx/tdfx_pci.h b/sys/dev/tdfx/tdfx_pci.h
new file mode 100644
index 0000000..3fe5f53
--- /dev/null
+++ b/sys/dev/tdfx/tdfx_pci.h
@@ -0,0 +1,29 @@
+/* tdfx_pci.h -- Prototypes for tdfx device methods */
+/* Copyright (C) 2000 by Coleman Kane <cokane@pohl.ececs.uc.edu>*/
+#include <sys/proc.h>
+#include <sys/conf.h>
+
+/* Driver functions */
+static int tdfx_probe(device_t dev);
+static int tdfx_attach(device_t dev);
+static int tdfx_setmtrr(device_t dev);
+static int tdfx_clrmtrr(device_t dev);
+static int tdfx_detach(device_t dev);
+static int tdfx_shutdown(device_t dev);
+
+/* CDEV file ops */
+static d_open_t tdfx_open;
+static d_close_t tdfx_close;
+static d_mmap_t tdfx_mmap;
+static d_ioctl_t tdfx_ioctl;
+
+/* Card Queries */
+static int tdfx_do_query(u_int cmd, struct tdfx_pio_data *piod);
+static int tdfx_query_boards(void);
+static int tdfx_query_fetch(u_int cmd, struct tdfx_pio_data *piod);
+static int tdfx_query_update(u_int cmd, struct tdfx_pio_data *piod);
+
+/* Card PIO funcs */
+static int tdfx_do_pio(u_int cmd, struct tdfx_pio_data *piod);
+static int tdfx_do_pio_wt(struct tdfx_pio_data *piod);
+static int tdfx_do_pio_rd(struct tdfx_pio_data *piod);
OpenPOWER on IntegriCloud