153e90a53Smrg/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/imstt/imstt.h,v 1.4 2001/04/05 21:29:14 dawes Exp $ */ 253e90a53Smrg 353e90a53Smrg#ifndef _IMSTT_H 453e90a53Smrg#define _IMSTT_H 553e90a53Smrg 653e90a53Smrg#include "xf86.h" 753e90a53Smrg#include "xf86Pci.h" 853e90a53Smrg#include "xf86PciInfo.h" 953e90a53Smrg#include "xaa.h" 1053e90a53Smrg 1153e90a53Smrg 1253e90a53Smrgtypedef struct _IMSTTRec { 1353e90a53Smrg pciVideoPtr PciInfo; 1453e90a53Smrg PCITAG PciTag; 1553e90a53Smrg EntityInfoPtr pEnt; 1653e90a53Smrg CARD32 IOAddress; 1753e90a53Smrg CARD32 FBAddress; 1853e90a53Smrg unsigned char * FBBase; 1953e90a53Smrg unsigned long * MMIOBase; 2053e90a53Smrg unsigned char * CMAPBase; 2153e90a53Smrg long FBMapSize; 2253e90a53Smrg unsigned long videoRam; 2353e90a53Smrg unsigned long ramdac; 2453e90a53Smrg int rev; 2553e90a53Smrg OptionInfoPtr Options; 2653e90a53Smrg unsigned int Flags; 2753e90a53Smrg CARD32 Bus; 2853e90a53Smrg XAAInfoRecPtr AccelInfoRec; 2953e90a53Smrg/* xf86CursorInfoPtr CursorInfoRec; */ 3053e90a53Smrg Bool NoAccel; 3153e90a53Smrg Bool HWCursor; 3253e90a53Smrg Bool InitDAC; 3353e90a53Smrg Bool FBDev; 3453e90a53Smrg int Chipset, ChipRev; 3553e90a53Smrg int ydir; 3653e90a53Smrg int color; 3753e90a53Smrg unsigned long pitch; 3853e90a53Smrg unsigned long ll; 3953e90a53Smrg unsigned long screen_width; 4053e90a53Smrg unsigned long sp; 4153e90a53Smrg unsigned long dp; 4253e90a53Smrg unsigned long cnt; 4353e90a53Smrg unsigned long bltctl; 4453e90a53Smrg unsigned short hes; 4553e90a53Smrg unsigned short heb; 4653e90a53Smrg unsigned short hsb; 4753e90a53Smrg unsigned short ht; 4853e90a53Smrg unsigned short ves; 4953e90a53Smrg unsigned short veb; 5053e90a53Smrg unsigned short vsb; 5153e90a53Smrg unsigned short vt; 5253e90a53Smrg unsigned short vil; 5353e90a53Smrg unsigned char pclk_m; 5453e90a53Smrg unsigned char pclk_n; 5553e90a53Smrg unsigned char pclk_p; 5653e90a53Smrg unsigned char mlc[3]; 5753e90a53Smrg unsigned char lckl_p[3]; 5853e90a53Smrg} IMSTTRec, *IMSTTPtr; 5953e90a53Smrg 6053e90a53Smrg#if 0 6153e90a53Smrg#define IMSTTTRACE(s) ErrorF(s) 6253e90a53Smrg#define IMSTTTRACE1(s,a) ErrorF(s,a) 6353e90a53Smrg#else 6453e90a53Smrg#define IMSTTTRACE(s) 6553e90a53Smrg#define IMSTTTRACE1(s,a) 6653e90a53Smrg#endif 6753e90a53Smrg 6853e90a53Smrg#define IMSTTPTR(p) ((IMSTTPtr)((p)->driverPrivate)) 6953e90a53Smrg 7053e90a53Smrg#define PCI_IMSTT128 0x9128 /* IMS,tt128mbA */ 7153e90a53Smrg#define PCI_IMSTT3D 0x9135 /* IMS,tt3d */ 7253e90a53Smrg 7353e90a53Smrg#define RAMDAC_IBM 1 7453e90a53Smrg#define RAMDAC_TVP 2 7553e90a53Smrg 7653e90a53SmrgBool IMSTTAccelInit(ScreenPtr pScreen); 7753e90a53Smrg 7853e90a53Smrg#endif /* _IMSTT_H */ 79