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