diff options
Diffstat (limited to 'src/ativga.c')
-rw-r--r-- | src/ativga.c | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/src/ativga.c b/src/ativga.c index fc50d021..905df98e 100644 --- a/src/ativga.c +++ b/src/ativga.c @@ -25,17 +25,11 @@ #endif #include "ati.h" -#include "atiadapter.h" #include "atichip.h" #include "atistruct.h" #include "ativga.h" #include "ativgaio.h" -#ifndef DPMS_SERVER -# define DPMS_SERVER -#endif -#include <X11/extensions/dpms.h> - #ifndef AVOID_CPIO /* @@ -199,53 +193,4 @@ ATIVGASaveScreen } } -/* - * ATIVGASetDPMSMode -- - * - * This function sets a VGA's VESA Display Power Management Signaling mode. - */ -void -ATIVGASetDPMSMode -( - ATIPtr pATI, - int DPMSMode -) -{ - CARD8 seq1, crt17; - - switch (DPMSMode) - { - case DPMSModeOn: /* HSync on, VSync on */ - seq1 = 0x00U; - crt17 = 0x80U; - break; - - case DPMSModeStandby: /* HSync off, VSync on -- unsupported */ - seq1 = 0x20U; - crt17 = 0x80U; - break; - - case DPMSModeSuspend: /* HSync on, VSync off -- unsupported */ - seq1 = 0x20U; - crt17 = 0x80U; - break; - - case DPMSModeOff: /* HSync off, VSync off */ - seq1 = 0x20U; - crt17 = 0x00U; - break; - - default: /* Muffle compiler */ - return; - } - - PutReg(SEQX, 0x00U, 0x01U); /* Start synchonous reset */ - seq1 |= GetReg(SEQX, 0x01U) & ~0x20U; - PutReg(SEQX, 0x01U, seq1); - crt17 |= GetReg(CRTX(pATI->CPIO_VGABase), 0x17U) & ~0x80U; - usleep(10000); - PutReg(CRTX(pATI->CPIO_VGABase), 0x17U, crt17); - PutReg(SEQX, 0x01U, 0x03U); /* End synchonous reset */ -} - #endif /* AVOID_CPIO */ |