--- tdfx_vars.h Thu Aug 10 21:36:22 2000 +++ /sys/dev/tdfx/tdfx_vars.h Thu Aug 10 21:30:54 2000 @@ -50,15 +50,18 @@ #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_IOBASE_0_FREEBSD 0x18 +#define PCI_ROM_BASE_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 @@ -79,12 +82,14 @@ struct tdfx_softc { int cardno; vm_offset_t addr, addr2; - struct resource *memrange, *memrange2, *piorange; - int memrid, memrid2, piorid; + struct resource *memrange, *memrange2, *piorange, *romrange; + int memrid, memrid2, piorid, romrid; long range; int vendor; int type; int addr0, addr1; + int pio0; + int rom; unsigned char bus; unsigned char dv; struct file *curFile;