45e9809aff7304721fddb95654901b32195c9c7avboxsync/*
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Copyright � 2006 Intel Corporation
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Permission is hereby granted, free of charge, to any person obtaining a
45e9809aff7304721fddb95654901b32195c9c7avboxsync * copy of this software and associated documentation files (the "Software"),
45e9809aff7304721fddb95654901b32195c9c7avboxsync * to deal in the Software without restriction, including without limitation
45e9809aff7304721fddb95654901b32195c9c7avboxsync * the rights to use, copy, modify, merge, publish, distribute, sublicense,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * and/or sell copies of the Software, and to permit persons to whom the
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Software is furnished to do so, subject to the following conditions:
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * The above copyright notice and this permission notice (including the next
45e9809aff7304721fddb95654901b32195c9c7avboxsync * paragraph) shall be included in all copies or substantial portions of the
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Software.
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
45e9809aff7304721fddb95654901b32195c9c7avboxsync * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
45e9809aff7304721fddb95654901b32195c9c7avboxsync * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
45e9809aff7304721fddb95654901b32195c9c7avboxsync * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
45e9809aff7304721fddb95654901b32195c9c7avboxsync * SOFTWARE.
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Authors:
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Eric Anholt <eric@anholt.net>
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifndef _XF86MODES_H_
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define _XF86MODES_H_
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include <stddef.h>
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include <string.h>
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include <stdio.h>
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include "xf86.h"
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include "xorgVersion.h"
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include "edid.h"
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include "xf86Parser.h"
45e9809aff7304721fddb95654901b32195c9c7avboxsync#if XF86_MODES_RENAME
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include "xf86Rename.h"
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncdouble xf86ModeHSync(DisplayModePtr mode);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncdouble xf86ModeVRefresh(DisplayModePtr mode);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncint
45e9809aff7304721fddb95654901b32195c9c7avboxsyncxf86ModeWidth (DisplayModePtr mode, Rotation rotation);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncint
45e9809aff7304721fddb95654901b32195c9c7avboxsyncxf86ModeHeight (DisplayModePtr mode, Rotation rotation);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncDisplayModePtr xf86DuplicateMode(DisplayModePtr pMode);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncDisplayModePtr xf86DuplicateModes(ScrnInfoPtr pScrn,
45e9809aff7304721fddb95654901b32195c9c7avboxsync DisplayModePtr modeList);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid xf86SetModeDefaultName(DisplayModePtr mode);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid xf86SetModeCrtc(DisplayModePtr p, int adjustFlags);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncBool xf86ModesEqual(DisplayModePtr pMode1, DisplayModePtr pMode2);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid xf86PrintModeline(int scrnIndex,DisplayModePtr mode);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncDisplayModePtr xf86ModesAdd(DisplayModePtr modes, DisplayModePtr new);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncDisplayModePtr xf86DDCGetModes(int scrnIndex, xf86MonPtr DDC);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncDisplayModePtr xf86CVTMode(int HDisplay, int VDisplay, float VRefresh,
45e9809aff7304721fddb95654901b32195c9c7avboxsync Bool Reduced, Bool Interlaced);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid
45e9809aff7304721fddb95654901b32195c9c7avboxsyncxf86ValidateModesFlags(ScrnInfoPtr pScrn, DisplayModePtr modeList,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int flags);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid
45e9809aff7304721fddb95654901b32195c9c7avboxsyncxf86ValidateModesClocks(ScrnInfoPtr pScrn, DisplayModePtr modeList,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int *min, int *max, int n_ranges);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid
45e9809aff7304721fddb95654901b32195c9c7avboxsyncxf86ValidateModesSize(ScrnInfoPtr pScrn, DisplayModePtr modeList,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int maxX, int maxY, int maxPitch);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid
45e9809aff7304721fddb95654901b32195c9c7avboxsyncxf86ValidateModesSync(ScrnInfoPtr pScrn, DisplayModePtr modeList,
45e9809aff7304721fddb95654901b32195c9c7avboxsync MonPtr mon);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid
45e9809aff7304721fddb95654901b32195c9c7avboxsyncxf86PruneInvalidModes(ScrnInfoPtr pScrn, DisplayModePtr *modeList,
45e9809aff7304721fddb95654901b32195c9c7avboxsync Bool verbose);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid
45e9809aff7304721fddb95654901b32195c9c7avboxsyncxf86ValidateModesFlags(ScrnInfoPtr pScrn, DisplayModePtr modeList,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int flags);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid
45e9809aff7304721fddb95654901b32195c9c7avboxsyncxf86ValidateModesUserConfig(ScrnInfoPtr pScrn, DisplayModePtr modeList);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncDisplayModePtr
45e9809aff7304721fddb95654901b32195c9c7avboxsyncxf86GetMonitorModes (ScrnInfoPtr pScrn, XF86ConfMonitorPtr conf_monitor);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncDisplayModePtr
45e9809aff7304721fddb95654901b32195c9c7avboxsyncxf86GetDefaultModes (Bool interlaceAllowed, Bool doubleScanAllowed);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif /* _XF86MODES_H_ */