summaryrefslogtreecommitdiff
path: root/xc/programs/Xserver/hw/xfree86/drivers/imstt/imstt.h
blob: 095dead6b3a431313d854d26312e87e95330fc77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/imstt/imstt.h,v 1.4 2001/04/05 21:29:14 dawes Exp $ */

#ifndef _IMSTT_H
#define _IMSTT_H

#include "xf86.h"
#include "xf86Pci.h"
#include "xf86PciInfo.h"
#include "xaa.h"
#include "xf86_ansic.h"


typedef struct _IMSTTRec {
	pciVideoPtr		PciInfo;
	PCITAG			PciTag;
	EntityInfoPtr		pEnt;
	CARD32			IOAddress;
	CARD32			FBAddress;
	unsigned char *		FBBase;
	unsigned long *		MMIOBase;
	unsigned char *		CMAPBase;
	long			FBMapSize;
	unsigned long		videoRam;
	unsigned long		ramdac;
	int			rev;
	OptionInfoPtr		Options;
	unsigned int		Flags;
	CARD32			Bus;
	XAAInfoRecPtr		AccelInfoRec;
/*	xf86CursorInfoPtr	CursorInfoRec; */
	Bool			NoAccel;
	Bool			HWCursor;
	Bool			InitDAC;
	Bool			FBDev;
	int			Chipset, ChipRev;
	int			ydir;
	int			color;
	unsigned long		pitch;
	unsigned long		ll;
	unsigned long		screen_width;
	unsigned long		sp;
	unsigned long		dp;
	unsigned long		cnt;
	unsigned long		bltctl;
	unsigned short		hes;
	unsigned short		heb;
	unsigned short		hsb;
	unsigned short		ht;
	unsigned short		ves;
	unsigned short		veb;
	unsigned short		vsb;
	unsigned short		vt;
	unsigned short		vil;
	unsigned char		pclk_m;
	unsigned char		pclk_n;
	unsigned char		pclk_p;
	unsigned char		mlc[3];
	unsigned char		lckl_p[3];
} IMSTTRec, *IMSTTPtr;

#if 0
#define IMSTTTRACE	ErrorF
#else
#define IMSTTTRACE
#endif

#define IMSTTPTR(p)	((IMSTTPtr)((p)->driverPrivate))

#define	PCI_IMSTT128	0x9128	/* IMS,tt128mbA */
#define PCI_IMSTT3D	0x9135	/* IMS,tt3d */

#define RAMDAC_IBM	1
#define RAMDAC_TVP	2

#endif /* _IMSTT_H */