tdfx_pci.h revision 61911
161911Scokane/* tdfx_pci.h -- Prototypes for tdfx device methods */ 261911Scokane/* Copyright (C) 2000 by Coleman Kane <cokane@pohl.ececs.uc.edu>*/ 361911Scokane#include <sys/proc.h> 461911Scokane#include <sys/conf.h> 561911Scokane 661911Scokane/* Driver functions */ 761911Scokanestatic int tdfx_probe(device_t dev); 861911Scokanestatic int tdfx_attach(device_t dev); 961911Scokanestatic int tdfx_setmtrr(device_t dev); 1061911Scokanestatic int tdfx_clrmtrr(device_t dev); 1161911Scokanestatic int tdfx_detach(device_t dev); 1261911Scokanestatic int tdfx_shutdown(device_t dev); 1361911Scokane 1461911Scokane/* CDEV file ops */ 1561911Scokanestatic d_open_t tdfx_open; 1661911Scokanestatic d_close_t tdfx_close; 1761911Scokanestatic d_mmap_t tdfx_mmap; 1861911Scokanestatic d_ioctl_t tdfx_ioctl; 1961911Scokane 2061911Scokane/* Card Queries */ 2161911Scokanestatic int tdfx_do_query(u_int cmd, struct tdfx_pio_data *piod); 2261911Scokanestatic int tdfx_query_boards(void); 2361911Scokanestatic int tdfx_query_fetch(u_int cmd, struct tdfx_pio_data *piod); 2461911Scokanestatic int tdfx_query_update(u_int cmd, struct tdfx_pio_data *piod); 2561911Scokane 2661911Scokane/* Card PIO funcs */ 2761911Scokanestatic int tdfx_do_pio(u_int cmd, struct tdfx_pio_data *piod); 2861911Scokanestatic int tdfx_do_pio_wt(struct tdfx_pio_data *piod); 2961911Scokanestatic int tdfx_do_pio_rd(struct tdfx_pio_data *piod); 30