summaryrefslogtreecommitdiff
path: root/src/i830.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2006-10-04 15:00:19 -0700
committerEric Anholt <eric@anholt.net>2006-10-04 18:48:17 -0700
commit103b4edce7859ddf58f3e1fadeb427a5e85c7acd (patch)
tree3907bea3aa233a1587d075fe81bd515d8d5fa4c5 /src/i830.h
parent3e6f81f70f65a5ba6b5c3a4e0eeaf67776a5f54d (diff)
Move the save, restore, and DPMS per-output settings to per-output files.
Diffstat (limited to 'src/i830.h')
-rw-r--r--src/i830.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/i830.h b/src/i830.h
index 7def141e..f92704b0 100644
--- a/src/i830.h
+++ b/src/i830.h
@@ -69,6 +69,8 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "i830_dri.h"
#endif
+typedef struct _I830OutputRec I830OutputRec, *I830OutputPtr;
+
#include "common.h"
#include "i830_sdvo.h"
#include "i2c_vid.h"
@@ -222,6 +224,23 @@ struct _I830OutputRec {
int type;
/* int pipe;
int flags;*/
+
+ /**
+ * Turns the output on/off, or sets intermediate power levels if available.
+ * Unsupported intermediate modes drop to the lower power setting.
+ */
+ void (*dpms)(ScrnInfoPtr pScrn, I830OutputPtr output, int mode);
+
+ /**
+ * Saves the output's state for restoration on VT switch.
+ */
+ void (*save)(ScrnInfoPtr pScrn, I830OutputPtr output);
+
+ /**
+ * Restore's the output's state at VT switch.
+ */
+ void (*restore)(ScrnInfoPtr pScrn, I830OutputPtr output);
+
xf86MonPtr MonInfo;
I2CBusPtr pI2CBus;
I2CBusPtr pDDCBus;
@@ -613,10 +632,23 @@ extern Bool I830FixOffset(ScrnInfoPtr pScrn, I830MemRange *mem);
extern Bool I830I2CInit(ScrnInfoPtr pScrn, I2CBusPtr *bus_ptr, int i2c_reg,
char *name);
+/* i830_crt.c */
+void I830CRTDPMS(ScrnInfoPtr pScrn, I830OutputPtr output, int mode);
+void I830CRTSave(ScrnInfoPtr pScrn, I830OutputPtr output);
+void I830CRTRestore(ScrnInfoPtr pScrn, I830OutputPtr output);
+
/* i830_dvo.c */
+void I830DVODPMS(ScrnInfoPtr pScrn, I830OutputPtr output, int mode);
+void I830DVOSave(ScrnInfoPtr pScrn, I830OutputPtr output);
+void I830DVORestore(ScrnInfoPtr pScrn, I830OutputPtr output);
Bool I830I2CDetectDVOControllers(ScrnInfoPtr pScrn, I2CBusPtr pI2CBus,
struct _I830DVODriver **retdrv);
+/* i830_lvds.c */
+void I830LVDSDPMS(ScrnInfoPtr pScrn, I830OutputPtr output, int mode);
+void I830LVDSSave(ScrnInfoPtr pScrn, I830OutputPtr output);
+void I830LVDSRestore(ScrnInfoPtr pScrn, I830OutputPtr output);
+
/* i830_memory.c */
Bool I830BindAGPMemory(ScrnInfoPtr pScrn);
Bool I830UnbindAGPMemory(ScrnInfoPtr pScrn);