fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#ifdef HAVE_XORG_CONFIG_H
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#include <xorg-config.h>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#endif
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#include "TI.h"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortetypedef struct {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte char *DeviceName;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte} xf86TIramdacInfo;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteextern xf86TIramdacInfo TIramdacDeviceInfo[];
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#ifdef INIT_TI_RAMDAC_INFO
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortexf86TIramdacInfo TIramdacDeviceInfo[] = {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte {"TI TVP3030"},
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte {"TI TVP3026"}
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte};
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#endif
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define TISAVE(_reg) do { \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ramdacReg->DacRegs[_reg] = (*ramdacPtr->ReadDAC)(pScrn, _reg); \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte} while (0)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define TIRESTORE(_reg) do { \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte (*ramdacPtr->WriteDAC)(pScrn, _reg, \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte (ramdacReg->DacRegs[_reg] & 0xFF00) >> 8, \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ramdacReg->DacRegs[_reg]); \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte} while (0)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte