f0ab104f070bc7f569404826fea1828ed985638cvboxsync * Copyright © 2002 David Dawes
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * Permission is hereby granted, free of charge, to any person obtaining a
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * copy of this software and associated documentation files (the "Software"),
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * to deal in the Software without restriction, including without limitation
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * the rights to use, copy, modify, merge, publish, distribute, sublicense,
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * and/or sell copies of the Software, and to permit persons to whom the
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * Software is furnished to do so, subject to the following conditions:
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * The above copyright notice and this permission notice shall be included in
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * all copies or substantial portions of the Software.
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * THE AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * SOFTWARE.
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * Except as contained in this notice, the name of the author(s) shall
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * not be used in advertising or otherwise to promote the sale, use or other
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * dealings in this Software without prior written authorization from
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * the author(s).
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * Authors: David Dawes <dawes@xfree86.org>
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * This is intended to be stored in the DisplayModeRec's private area.
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * It includes all the information necessary to VBE information.
f0ab104f070bc7f569404826fea1828ed985638cvboxsync#define VBE_MODE_SUPPORTED(m) (((m)->ModeAttributes & 0x01) != 0)
f0ab104f070bc7f569404826fea1828ed985638cvboxsync#define VBE_MODE_COLOR(m) (((m)->ModeAttributes & 0x08) != 0)
f0ab104f070bc7f569404826fea1828ed985638cvboxsync#define VBE_MODE_GRAPHICS(m) (((m)->ModeAttributes & 0x10) != 0)
f0ab104f070bc7f569404826fea1828ed985638cvboxsync#define VBE_MODE_VGA(m) (((m)->ModeAttributes & 0x40) == 0)
f0ab104f070bc7f569404826fea1828ed985638cvboxsync#define VBE_MODE_LINEAR(m) (((m)->ModeAttributes & 0x80) != 0 && \
f0ab104f070bc7f569404826fea1828ed985638cvboxsync#define VBE_MODE_USABLE(m, f) (VBE_MODE_SUPPORTED(m) || \
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncextern _X_EXPORT int VBEFindSupportedDepths(vbeInfoPtr pVbe, VbeInfoBlock *vbe,
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncextern _X_EXPORT DisplayModePtr VBEGetModePool(ScrnInfoPtr pScrn, vbeInfoPtr pVbe,
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncextern _X_EXPORT void VBESetModeNames(DisplayModePtr pMode);
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncextern _X_EXPORT void VBESetModeParameters(ScrnInfoPtr pScrn, vbeInfoPtr pVbe);
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * Note: These are alternatives to the standard helpers. They should
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * usually just wrap the standard helpers.
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncextern _X_EXPORT int VBEValidateModes(ScrnInfoPtr scrp, DisplayModePtr availModes,
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncextern _X_EXPORT void VBEPrintModes(ScrnInfoPtr scrp);
f0ab104f070bc7f569404826fea1828ed985638cvboxsync#endif /* VBE_MODES_H */