Initial commit
[xorg_rtime.git] / xorg-server-1.4 / hw / xfree86 / ramdac / TIPriv.h
blob191c9b5ce18495c9b4a9945d96d20fa0d430fd87
2 #ifdef HAVE_XORG_CONFIG_H
3 #include <xorg-config.h>
4 #endif
6 #include "TI.h"
8 typedef struct {
9 char *DeviceName;
10 } xf86TIramdacInfo;
12 extern xf86TIramdacInfo TIramdacDeviceInfo[];
14 #ifdef INIT_TI_RAMDAC_INFO
15 xf86TIramdacInfo TIramdacDeviceInfo[] = {
16 {"TI TVP3030"},
17 {"TI TVP3026"}
19 #endif
21 #define TISAVE(_reg) do { \
22 ramdacReg->DacRegs[_reg] = (*ramdacPtr->ReadDAC)(pScrn, _reg); \
23 } while (0)
25 #define TIRESTORE(_reg) do { \
26 (*ramdacPtr->WriteDAC)(pScrn, _reg, \
27 (ramdacReg->DacRegs[_reg] & 0xFF00) >> 8, \
28 ramdacReg->DacRegs[_reg]); \
29 } while (0)