aboutsummaryrefslogtreecommitdiffstats
path: root/com32/lib
Commit message (Collapse)AuthorAgeFilesLines
* libpci: merge BIOS read and BIOS writeHEADmasterH. Peter Anvin2010-02-206-25/+13
| | | | | | | Save a few bytes by merging the very similar BIOS read and BIOS write functions. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* i915resolution: use libpci to access PCI config spacesyslinux-3.85-pre13syslinux-3.85H. Peter Anvin2010-02-161-19/+11
| | | | | | | | Use libpci to access PCI config space. This *hopefully* will make it less likely that some old machine hangs when failing to set the requested video mode. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Merge branch 'master' into i915resH. Peter Anvin2010-02-083-9/+108
|\
| * vesa: for jpg or png images, tile the image across the screenH. Peter Anvin2010-02-081-9/+37
| | | | | | | | | | | | | | | | | | | | | | If we specify a smaller image than the screen size, tile it across the screen rather than leaving a big black box. This may have to be made configurable. Also note that Syslinux currently does not handle the case of an image bleeding off the end of the screen. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * com32: add library function for DNS lookupH. Peter Anvin2010-02-062-0/+71
| | | | | | | | | | | | Add a library function for DNS lookup Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Merge branch 'master' into i915resH. Peter Anvin2010-01-221-0/+3
|\|
| * Add support for "vga=current"H. Peter Anvin2010-01-221-0/+3
| | | | | | | | | | | | "vga=current" is a user-friendly synonym for "vga=0x0f04". Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | vesa: allow arbitrary resolutions on some Intel chipsetsH. Peter Anvin2010-01-224-2/+813
|/ | | | | | | 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>
* com32/lib: remove unused variable in syslinux_getadv()H. Peter Anvin2010-01-101-1/+1
| | | | | | Remove unused variable, thus removing a warning. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* zlib: fix warning in crc32.cH. Peter Anvin2010-01-101-1/+1
| | | | | | Fix a signed/unsigned warning in crc32.c. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* com32/lib: fix external prototype for __vesacon_open()H. Peter Anvin2010-01-101-1/+1
| | | | | | | The external prototype for __vesacon_open() was incorrect; this is a good example of why external prototypes are bad, incidentally. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* com32/lib: fix inappropriate & in sys/colortable.cH. Peter Anvin2010-01-101-1/+1
| | | | | | The & is incorrect... not actively harmful, but generates a warning. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* com32/lib: add cast in __parse_argv()H. Peter Anvin2010-01-101-1/+1
| | | | | | | | | ALIGN_UP_FOR() returns the type of the original pointer, but we want it to be the type that we're actually going to use. Perhaps ALIGN_UP_FOR() should be changed, but for now, just add the proper cast. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* libgcc: fix signedness warning in __moddi3()H. Peter Anvin2010-01-101-1/+1
| | | | | | Intentional cross-signedness pointer passing, add a cast. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* com32/lib: fix unused argument warning in fdopendir()H. Peter Anvin2010-01-101-0/+2
| | | | | | fdopendir() is a stub, and probably will remain such. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* com32/lib: fix unused parameter warning in chdir()H. Peter Anvin2010-01-101-0/+4
| | | | | | chdir() is a stub at the moment... to be fixed in Syslinux 4. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* com32/lib: fix warning in str*cmp()H. Peter Anvin2010-01-104-4/+8
| | | | | | Shut up a warning about initializing pointer across signedness. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* com32/lib: fix warnings in opendir/readdir/closedirH. Peter Anvin2010-01-103-1/+6
| | | | | | Missing #include <stdlib.h>, nested comment in readdir. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Makefile: replace -W -Wall with centralized $(GCCWARN)H. Peter Anvin2010-01-101-1/+1
| | | | | | | | | Replace -W -Wall hardcoded into a bunch of Makefiles with $(GCCWARN), a centralized variable defined in the root MCONFIG. Add -Wstrict-prototypes to the list of global warnings: we should never have non-prototyped declarations. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Change () prototypes to (void)H. Peter Anvin2010-01-061-12/+22
| | | | | | | | () means the same as (...) in C, not the same as (void) as it does in C++. It is generally misused to mean (void), though. Actually write what we mean... this is C, after all. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* com32: syslinux_report_video_mode returns voidH. Peter Anvin2009-12-221-1/+1
| | | | | | | syslinux_report_video_mode() never gave a return value, to have it return void unless we need something else. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* vesa: formatting fixH. Peter Anvin2009-12-221-1/+1
| | | | | | Code formatting fix in screencpy.c Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* vesamenu: unbreak the default backgroundH. Peter Anvin2009-12-221-4/+11
| | | | | | Unbreak the default background image; it would clobber all of memory. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* video: implement long-promised video functions; use themH. Peter Anvin2009-12-185-13/+152
| | | | | | | | 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: don't display the cursor when doing a quiet bootH. Peter Anvin2009-12-075-8/+19
| | | | | | | | | Don't display the cursor on the graphical screen while doing a quiet boot. When doing a quiet boot we will probably show the graphical screen for a fair bit of time; as a result, we really don't want a completely bogus cursor blob on the bottom of the screen. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Merge branch 'softres'H. Peter Anvin2009-12-0715-543/+765
|\
| * vesacon: make it possible to request nonstandard resolutionsH. Peter Anvin2009-12-071-1/+15
| | | | | | | | | | | | | | Make it possible to request nonstandard resolutions when enabling vesacon. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * vesacon: not all JPEG images are JFIFH. Peter Anvin2009-12-071-2/+1
| | | | | | | | | | | | | | There are a fair number of valid JPEG images which we can validly decode that aren't JFIF-complient, so don't require the JFIF header. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * jpeg: actually build yuv420pH. Peter Anvin2009-08-091-1/+1
| | | | | | | | | | | | Actually build the yuv420p converter again. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * tinyjpeg: fix yuv420p, correct some of the initalization codeH. Peter Anvin2009-08-097-59/+77
| | | | | | | | | | | | | | Fix the yuv420p in the presence of partial pixels (if we have an odd number of pixels in this mode, we include the chroma pixel.) Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * vesacon: infrastructure support for arbitrary resolutionsH. Peter Anvin2009-08-055-77/+104
| | | | | | | | | | | | | | 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>
| * tinyjpeg: modify to handle partial image blocksH. Peter Anvin2009-08-059-357/+374
| | | | | | | | | | | | | | A lot of common resolutions, e.g. 800x600, include partial blocks at the side of the image. Implement that properly. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * tinyjpeg: set limit to 4096x4096 not 2048x2048H. Peter Anvin2009-08-051-2/+2
| | | | | | | | | | | | | | There are already screens on the market which are bigger than 2048 wide... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * tinyjpeg: update to revision 20070609H. Peter Anvin2009-08-054-63/+210
| | | | | | | | | | | | Update tinyjpeg to upstream version 20070609. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | pci: replace '-' by '_' in modules namesErwan Velu2009-12-041-1/+14
| | | | | | | | | | | | | | | | | | Impact: avoid kernel modules duplication In modules.pcimap, kernel modules name are featuring '_' or '-' whereas modules.alias is only using '_'. To avoid kernel modules duplication, let's rename all '-' by '_' to match what modules.alias provides This avoid stupid duplications like "a-b" & "a_b" whereas they are in fact the same kernel module
* | com32: Avoid gpxe detection code duplicationErwan Velu2009-12-042-0/+47
| | | | | | | | | | | | Impact: avoid code duplication This will make code more generic, hdt will need it ;)
* | Merge remote branch 'hpa/master'Erwan Velu2009-11-204-1/+69
|\ \
| * | open: close the file descriptor if the file fails to openH. Peter Anvin2009-11-191-1/+2
| | | | | | | | | | | | | | | | | | | | | Close the file descriptor (freeing the file structure) when opening a file fails. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | dprintf: fix uninitialized pointer; return voidH. Peter Anvin2009-11-192-10/+7
| | | | | | | | | | | | | | | | | | | | | | | | Fix an uninitialized pointer bug; return void rather than returning int like normal printfs... if we're depending on the return value of a debugging function we're screwed when debugging is disabled. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | dprintf: fix dprintf() and vdprintf()H. Peter Anvin2009-11-192-1/+9
| | | | | | | | | | | | | | | | | | | | | Fix incorrect prototype for vdprintf() used in dprintf(), masked by the non-use of the header file. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | dprintf: a generic debug-to-serial infrastructureH. Peter Anvin2009-11-193-0/+62
| | | | | | | | | | | | | | | | | | | | | | | | Actually provide real infrastructure for debug-to-serial. Very useful when debugging fullscreen applications, especially under an emulator like Qemu. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | | pci: using zfopen instead of fopenErwan Velu2009-11-101-5/+6
|/ / | | | | | | | | | | | | Impact: allow to open gzipped files This commit allow people using gzipped files (pci.ids/modules.pcimap/modules.alias)
* | pci: Removing useless initialisationErwan Velu2009-11-091-3/+0
| | | | | | | | | | | | Impact: None The kernel module count is set to zero when the dev_info is allocated.
* | pci: Prevent kernel modules to be listed twiceErwan Velu2009-11-091-4/+32
| | | | | | | | | | | | | | | | | | | | | | Impact: Prevent duplicated modules If both get_module_name_from_pcimap() & get_module_name_from_alias() are called, we didn't checked if the module we are detecting already got detected. This leads to a situation where modules got listed twice. This patch add a test to insure that we aren't adding an already detected module.
* | Revert "ansicon: allow to pass page # to write functions"H. Peter Anvin2009-11-063-15/+16
| | | | | | | | | | | | | | | | This reverts commit e9b317fd0dc87dc93a49bc40520f4bdd0264d746. (This commit breaks vesamenu, and $DEITY knows what else.) Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | libansi: reset SGR parameters cache in cls()Pierre-Alexandre Meyer2009-11-021-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There was a bug in HDT when switching from the menu to the cli and back to the menu: the background wasn't redrawn. This was due to the fact that the cli bypasses the libansi library and calls printf() directly. Unfortunately, the SGR attributes were cached between menu initializations and the background wasn't properly redrawn. To fix it, invalidate the cache in the cls() routine. cls() does much more than just erasing the screen already (e.g. initialize G1) - we may want to rename the function at some point. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* | libansi: correctly reset attributesPierre-Alexandre Meyer2009-09-051-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When resetting the attributes, we were updating last_attr to the unknown value 0x300, which doesn't always work. For instance, when requesting reset and normal attributes, i.e. "\e[0;30;47m" with the previous attribute being "\e[1;30;47m", we where printing "\e[0;47m", which behaves like "\e[0;39;47m". This is incorrect. This patch adds a flag to explicitly set background and foreground colors after a reset. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* | libansi: reset_colors should use csprintPierre-Alexandre Meyer2009-09-051-1/+1
| | | | | | | | | | | | cprint_vga2ansi takes only a char, not a string. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* | libansi: add reset_colors functionPierre-Alexandre Meyer2009-09-051-0/+5
| | | | | | | | | | | | Purpose of reset_colors is to reset the attribute to VGA 0x07. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* | ansi: add support for no-wrap mode, cleanupsH. Peter Anvin2009-09-042-40/+51
| | | | | | | | | | | | | | | | Add support for nowrap mode CSI ? 7 l (unfortunately, on ANSI.SYS it is CSI = 7 l; which means that the only way to support both is to print both sequences and then erase the resulting garbage.) Signed-off-by: H. Peter Anvin <hpa@zytor.com>