summaryrefslogtreecommitdiff
path: root/src/ativga.c
diff options
context:
space:
mode:
authorGeorge Sapountzis <gsap7@yahoo.gr>2006-12-27 17:45:33 +0200
committerGeorge Sapountzis <gsap7@yahoo.gr>2007-01-21 19:42:12 +0200
commit805674dc70be16a04fc07387b69189c3a900e9e0 (patch)
treecf5ec58a7a7ca1c3b9fcb9d10f6769f30c279310 /src/ativga.c
parentfe54d557da7ae27dd49d88f6c6298cae36704b3c (diff)
Clean pATI->Adapter and pATI->VGAAdapter.
- cull (pATI->Adapter != ATI_ADAPTER_MACH64) - treat pATI->VGAAdapter as Bool
Diffstat (limited to 'src/ativga.c')
-rw-r--r--src/ativga.c55
1 files changed, 0 insertions, 55 deletions
diff --git a/src/ativga.c b/src/ativga.c
index 9ff639f..391ea72 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
/*
@@ -198,53 +192,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 */