2 * Copyright © 2006 Intel Corporation
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
11 * The above copyright notice and this permission notice (including the next
12 * paragraph) shall be included in all copies or substantial portions of the
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24 * Eric Anholt <eric@anholt.net>
36 #include "xorgVersion.h"
38 #include "xf86Parser.h"
40 #include "xf86Rename.h"
43 double xf86ModeHSync(DisplayModePtr mode
);
44 double xf86ModeVRefresh(DisplayModePtr mode
);
47 xf86ModeWidth (DisplayModePtr mode
, Rotation rotation
);
50 xf86ModeHeight (DisplayModePtr mode
, Rotation rotation
);
52 DisplayModePtr
xf86DuplicateMode(DisplayModePtr pMode
);
53 DisplayModePtr
xf86DuplicateModes(ScrnInfoPtr pScrn
,
54 DisplayModePtr modeList
);
55 void xf86SetModeDefaultName(DisplayModePtr mode
);
56 void xf86SetModeCrtc(DisplayModePtr p
, int adjustFlags
);
57 Bool
xf86ModesEqual(DisplayModePtr pMode1
, DisplayModePtr pMode2
);
58 void xf86PrintModeline(int scrnIndex
,DisplayModePtr mode
);
59 DisplayModePtr
xf86ModesAdd(DisplayModePtr modes
, DisplayModePtr
new);
61 DisplayModePtr
xf86DDCGetModes(int scrnIndex
, xf86MonPtr DDC
);
62 DisplayModePtr
xf86CVTMode(int HDisplay
, int VDisplay
, float VRefresh
,
63 Bool Reduced
, Bool Interlaced
);
66 xf86ValidateModesFlags(ScrnInfoPtr pScrn
, DisplayModePtr modeList
,
70 xf86ValidateModesClocks(ScrnInfoPtr pScrn
, DisplayModePtr modeList
,
71 int *min
, int *max
, int n_ranges
);
74 xf86ValidateModesSize(ScrnInfoPtr pScrn
, DisplayModePtr modeList
,
75 int maxX
, int maxY
, int maxPitch
);
78 xf86ValidateModesSync(ScrnInfoPtr pScrn
, DisplayModePtr modeList
,
82 xf86PruneInvalidModes(ScrnInfoPtr pScrn
, DisplayModePtr
*modeList
,
86 xf86ValidateModesFlags(ScrnInfoPtr pScrn
, DisplayModePtr modeList
,
90 xf86ValidateModesUserConfig(ScrnInfoPtr pScrn
, DisplayModePtr modeList
);
93 xf86GetMonitorModes (ScrnInfoPtr pScrn
, XF86ConfMonitorPtr conf_monitor
);
96 xf86GetDefaultModes (Bool interlaceAllowed
, Bool doubleScanAllowed
);
98 #endif /* _XF86MODES_H_ */