if (type == VIDEO_TYPE_VLFB)
lfb_size <<= 16; return lfb_size;
}
staticinlinebool __screen_info_vbe_mode_nonvga(conststruct screen_info *si)
{ /* * VESA modes typically run on VGA hardware. Set bit 5 signals that this * is not the case. Drivers can then not make use of VGA resources. See * Sec 4.4 of the VBE 2.0 spec.
*/ return si->vesa_attributes & BIT(5);
}
staticinlineunsignedint __screen_info_video_type(unsignedint type)
{ switch (type) { case VIDEO_TYPE_MDA: case VIDEO_TYPE_CGA: case VIDEO_TYPE_EGAM: case VIDEO_TYPE_EGAC: case VIDEO_TYPE_VGAC: case VIDEO_TYPE_VLFB: case VIDEO_TYPE_PICA_S3: case VIDEO_TYPE_MIPS_G364: case VIDEO_TYPE_SGI: case VIDEO_TYPE_TGAC: case VIDEO_TYPE_SUN: case VIDEO_TYPE_SUNPCI: case VIDEO_TYPE_PMAC: case VIDEO_TYPE_EFI: return type; default: return 0;
}
}
/** * screen_info_video_type() - Decodes the video type from struct screen_info * @si: an instance of struct screen_info * * Returns: * A VIDEO_TYPE_ constant representing si's type of video display, or 0 otherwise.
*/ staticinlineunsignedint screen_info_video_type(conststruct screen_info *si)
{ unsignedint type;
// check if display output is on if (!si->orig_video_isVGA) return 0;
// check for a known VIDEO_TYPE_ constant
type = __screen_info_video_type(si->orig_video_isVGA); if (type) return si->orig_video_isVGA;
// check if text mode has been initialized if (!si->orig_video_lines || !si->orig_video_cols) return 0;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.