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