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