diff options
author | Keith Packard <keithp@keithp.com> | 2004-07-26 17:14:27 +0000 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2004-07-26 17:14:27 +0000 |
commit | f15f881727cee9a879bd43be8dc849320f8d3cbd (patch) | |
tree | 920ee085da0406b5f2dfad2d9b104e9e57e25911 /hw/kdrive/vesa/vesa.c | |
parent | 20913b7d5daf90e0f7ad1ee967ad2f0daaec40f9 (diff) |
Eliminate bogus rate check in fbdevModeSupported. Hmm. Potentially bogus
rate selection necessary for Mac fbdev
Don't know about fb changes to pixmaps, so can't track dirt.
Add Mac specific 1280x854 mode. Warn when requested mode isn't found.
Add ability to soft-boot video cards.
Add region expand request. FIXME: need test cases
Diffstat (limited to 'hw/kdrive/vesa/vesa.c')
-rw-r--r-- | hw/kdrive/vesa/vesa.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/hw/kdrive/vesa/vesa.c b/hw/kdrive/vesa/vesa.c index 004f35981..bcc871907 100644 --- a/hw/kdrive/vesa/vesa.c +++ b/hw/kdrive/vesa/vesa.c @@ -41,6 +41,7 @@ Bool vesa_verbose = FALSE; Bool vesa_force_text = FALSE; Bool vesa_restore_font = TRUE; Bool vesa_map_holes = TRUE; +Bool vesa_boot = FALSE; #define VesaPriv(scr) ((VesaScreenPrivPtr) (scr)->driver) @@ -216,6 +217,9 @@ vesaInitialize (KdCardInfo *card, VesaCardPrivPtr priv) if(!priv->vi) goto fail; + if (vesa_boot) + VbeBoot (priv->vi); + priv->modes = vesaGetModes (priv->vi, &priv->nmode); if (!priv->modes) @@ -1756,6 +1760,7 @@ vesaUseMsg (void) ErrorF("-map-holes Use contiguous memory map (For seg fault with rare BIOS)\n"); ErrorF("-verbose Emit diagnostic messages during BIOS initialization\n"); ErrorF("-force-text Always use standard 25x80 text mode on server exit or VT switch\n"); + ErrorF("-boot Soft boot video card\n"); /* XXX: usage for -vesatest, -no-map-holes (don't need?), * XXX: and -trash-font. Also in man page. */ } @@ -1802,6 +1807,9 @@ vesaProcessArgument (int argc, char **argv, int i) } else if(!strcmp(argv[i], "-trash-font")) { vesa_restore_font = FALSE; return 1; + } else if(!strcmp(argv[i], "-boot")) { + vesa_boot = TRUE; + return 1; } return 0; |