path: root/com32/lib/sys/vesa/initvesa.c
Commit message (Collapse)AuthorAgeFilesLines
* Reorganize and clean up a bunch of the x86 codeH. Peter Anvin2019-02-041-1/+1
| | | | | | | We were doing a bunch of i386-specific things even on x86-64. Fix this, and merge x86 definitions where possible. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* sys/vesa: Modularise common vesa codeMatt Fleming2012-11-151-192/+26
| | | | | | | | | | | | | | There's lots of the vesa infrastructure that can be shared for both BIOS and EFI, so share the things that are common and split out the things that are not into firmware-specific functions and use the 'firmware' structure to access them. This commit is part of a series of changes that removes all EFI-specific code from everywhere except efi/, which means we can delete inclusion of any gnu-efi header files and remove gnu-efi paths from CFLAGS. Signed-off-by: Matt Fleming <matt.fleming@intel.com>
* vesa: Change the prototype of __vesacon_init()Matt Fleming2012-11-051-4/+4
| | | | | | | | commit 97402a0a1639 ("efi, vesa: Fix vesa initialization and video mode resolution") should have updated the BIOS version of the vesa code too. Signed-off-by: Matt Fleming <matt.fleming@intel.com>
* com32: replace hard-coded bounce buffer use in com32/libsyslinux-4.00-pre25H. Peter Anvin2010-02-241-16/+36
| | | | | | Replace hard-coded bounce buffer uses in com32/lib with lmalloc/lfree. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* vesa: allow arbitrary resolutions on some Intel chipsetsH. Peter Anvin2010-01-221-2/+7
| | | | | | | Add some code from the tool "915resolution" to allow arbitrary resolutions to be set on some Intel chipsets. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* video: implement long-promised video functions; use themH. Peter Anvin2009-12-181-12/+7
| | | | | | | | Implement long-since-promised video functions defined in <syslinux/video.h>. Use these functions in initvesa.c instead of open-coding the same functionality. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* vesacon: infrastructure support for arbitrary resolutionsH. Peter Anvin2009-08-051-15/+32
| | | | | | | Drop the hard-coding of 640x480 resolution in preparation for being able to handle other resolutions. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Run Nindent on com32/lib/sys/vesa/initvesa.cH. Peter Anvin2009-05-291-222/+221
| | | | | | | | | Automatically reformat com32/lib/sys/vesa/initvesa.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Whitespace cleanup...syslinux-3.62-pre11H. Peter Anvin2008-02-191-1/+1
* VESA: work around bug in the Bochs VESA BIOSsyslinux-3.62-pre10H. Peter Anvin2008-02-161-4/+14
| | | | | | | The Bochs VESA BIOS returns a value other than 1 for the number of banks in unbanked modes. Ignore the number of banks if bank_size == 0 (the spec says that for unbanked modes, banks == 1 && bank_size == 0; for banked modes banks > 1 and bank_size != 0).
* VESA: Minor cleanupssyslinux-3.62-pre6H. Peter Anvin2008-02-131-7/+9
| | | | Minor cleanups for clarity
* VESA: move debugging code to separate header fileH. Peter Anvin2008-02-131-25/+2
| | | | | Move the debugging function to a separate header file, so we can include it at will when convenient.
* VESA: move pixel formatting into __vesacon_copy_to_screen()syslinux-3.62-pre5H. Peter Anvin2008-02-131-0/+1
| | | | | | | | Make pixel formatting an integral part of __vesacon_copy_to_screen(). In order to cut down on the dispatch overhead, make the formatting functions contain the pixel loop, so we only do indirect dispatch twice per pixel row - once for the formatting and once for copying to the screen.
* Fix the calculation of bytes_per_pixelH. Peter Anvin2008-02-131-1/+1
| | | | | Handle cases where __vesa_info.mi.bpp is not a multiple of 8, e.g. 15. Remove totally redundant switch statement in vesacon_update_characters().
* VESA: Support 15-bit RGB modes.H. Peter Anvin2008-02-131-0/+5
| | | | | If there are manufacturers which don't support linear framebuffers out there, then there is probably someone who want a 15-bit mode, too.
* Add support for paged (banked) VESA video modeH. Peter Anvin2008-02-131-11/+41
| | | | | | | Add support for paged ("banked", non-linear-framebuffer) VESA video modes. Apparently some manufacturers haven't caught on that non-linear graphics modes have been obsolete for 15 years or so already.
* Update copyright yearH. Peter Anvin2008-01-101-1/+1
* Fix handling of VESA modes with noncontiguous memory buffersH. Peter Anvin2007-12-101-2/+2
| | | | | Handle VESA modes with noncontiguous memory buffers. In particular, this applies to Qemu/KVM in Cirrus emulation mode.
* Stealth whitespace cleanup (automated)H. Peter Anvin2007-03-141-2/+2
* vesainit: clear the VESA buffers before call (paranoia)H. Peter Anvin2006-09-301-0/+2
* vesainit: more careful detection of VESA modesH. Peter Anvin2006-09-301-2/+14
* Use the color table for the shadow, and make it user controllableH. Peter Anvin2006-09-211-5/+7
* Default background; skip background if VESA is uninitializedsyslinux-3.30-pre7H. Peter Anvin2006-09-141-2/+3
* Properly support 16, 24 and 32-bit modes; now working properly.syslinux-3.30-pre6H. Peter Anvin2006-09-141-5/+16
* Beginnings of supporting multiple pixel formatsH. Peter Anvin2006-09-131-14/+35
* initvesa: don't trust the BIOS when it says tty is supportedH. Peter Anvin2006-09-121-1/+7
| | | | | For too many BIOSes, tty output in VESA modes doesn't work in any useful sense, even if it is claimed.
* vesacon: if mode set failed, assume screen is unchangedH. Peter Anvin2006-09-121-4/+1
* vesacon: stub out debugging functionH. Peter Anvin2006-09-121-2/+6
* vesacon: if a custom font is loaded, use it instead of the BIOS fontH. Peter Anvin2006-09-121-7/+22
* Cursor support for vesaconH. Peter Anvin2006-09-111-0/+1
* Augment tinyjpeg so that we can decode straight into the buffer;H. Peter Anvin2006-09-051-1/+1
| | | | clear the screen on startup.
* Lots of fixes to make the graphical menu actually work.syslinux-3.30-pre1H. Peter Anvin2006-09-011-2/+7
* More work on actual VESA console and menu. Shadowing still doesn't workH. Peter Anvin2006-08-311-72/+6
| | | | quite right, however.
* More work on VESA graphical console supportH. Peter Anvin2006-08-281-10/+146
* More work on the VESA graphics consoleH. Peter Anvin2006-08-271-0/+149