diff options
author | Eric Anholt <anholt@FreeBSD.org> | 2006-04-24 15:42:46 -0700 |
---|---|---|
committer | Eric Anholt <anholt@FreeBSD.org> | 2006-04-24 15:42:46 -0700 |
commit | b498d2b1d1170123595ada65353428578b59a361 (patch) | |
tree | 1e1f18cb212b02521861bfb9e3f5745137e32e0a /src/i830_sdvo.h | |
parent | 56c1f8b0de9b6acc50f51561caf14d3e6bac09ec (diff) |
Start trying to save/restore SDVO state on VT switches.
Diffstat (limited to 'src/i830_sdvo.h')
-rw-r--r-- | src/i830_sdvo.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/src/i830_sdvo.h b/src/i830_sdvo.h new file mode 100644 index 00000000..ec4b538b --- /dev/null +++ b/src/i830_sdvo.h @@ -0,0 +1,54 @@ +/* + * Copyright © 2006 Intel Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice (including the next + * paragraph) shall be included in all copies or substantial portions of the + * Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + * Authors: + * Eric Anholt <eric@anholt.net> + * + */ + +typedef struct _i830_sdvo_dtd { + CARD16 clock; + CARD8 h_active; + CARD8 h_blank; + CARD8 h_high; + CARD8 v_active; + CARD8 v_blank; + CARD8 v_high; + + CARD8 h_sync_off; + CARD8 h_sync_width; + CARD8 v_sync_off_width; + CARD8 sync_off_width_high; + CARD8 dtd_flags; + CARD8 sdvo_flags; + CARD8 v_sync_off_high; + CARD8 reserved; +} __attribute__((packed)) i830_sdvo_dtd; + +void +i830SDVOSave(ScrnInfoPtr pScrn, int output_index); + +void +i830SDVOPreRestore(ScrnInfoPtr pScrn, int output_index); + +void +i830SDVOPostRestore(ScrnInfoPtr pScrn, int output_index); |