summaryrefslogtreecommitdiff
path: root/com32/modules
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' into fscH. Peter Anvin2009-08-312-1/+64
|\
| * Merge commit 'hpa/master' into for-erwanPierre-Alexandre Meyer2009-08-0424-3535/+1934
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: com32/cmenu/libmenu/com32io.h com32/gplinclude/dmi/dmi.h com32/gplinclude/dmi/dmi_base_board.h com32/gplinclude/dmi/dmi_memory.h com32/gplinclude/dmi/dmi_system.h com32/gpllib/dmi/dmi.c com32/gpllib/dmi/dmi_memory.c com32/include/sys/pci.h com32/lib/pci/scan.c com32/modules/Makefile Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * | disk.c32: Fix indentationPierre-Alexandre Meyer2009-04-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Impact: none Fix indentation for the loop ending curly brace. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * | gpllib: Don't clobber legacy C/H/S parameters with EDD onesPierre-Alexandre Meyer2009-04-192-1/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Impact: driveinfo structure change, new disk.c32 module Adapt driveinfo structure to store both legacy and EDD parameters. Change utility functions to use EDD when available (C/H/S being a fallback). Add a new disk.c32 module to test the disk library. It will print information (geometry) about every detected drive. Misc.: refactoring, set ES:DI to 0:0 when querying legacy C/H/S Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* | | Core: code clean -- re-style the unstyle codeLiu Aleaxander2009-08-281-21/+21
| | | | | | | | | | | | | | | | | | | | | With the emacs config given by hpa, which is really powfull, I restyled the unsytled code. Signed-off-by: Liu Aleaxander <Aleaxander@gmail.com>
* | | Core: vfs-dir stuff cleanedLiu Aleaxander2009-08-281-1/+0
| | | | | | | | | | | | | | | | | | | | | Removes the core/include/dir.h, and put the dir structures to sys/dirent.h to avoid the compile error. Signed-off-by: Liu Aleaxander <Aleaxander@gmail.com>
* | | Core: vfs-dir stuff re-implementedLiu Aleaxander2009-08-281-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | We fist make it simple, as told by hpa. Here're the changes: 1, The DIR structure changed, just a file pointer included. 2. So, the open/close/read-dir stuff in com32/lib/ changed again. 3. We read one stuff from every readdir call. Signed-off-by: Liu Aleaxander <Aleaxander@gmail.com>
* | | Core: opendir/readdir/closedir stuff addedLiu Aleaxander2009-08-272-1/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Here're some big changes: 1. The vfs-dir stuff added. 2. The dir-functions in com32/lib are mostly rewritten. 3. with little change on rosh for avoid the compile error Well, I don't think it's a good vfs-dir interface. Signed-off-by: Liu Aleaxander <Aleaxander@gmail.com>
* | | Core:PXELINUX: dns_resolv problem resolved.Liu Aleaxander2009-08-212-1/+43
| |/ |/| | | | | | | | | | | | | | | | | Now the dns_resolv program can work correctly now except sometimes you should add some DNS servers manually by yourself if your current DNS server can not work, this mostly happen when you use something like Qemu. And, we added a host c32 module written by hpa, as a dns resolver test. Signed-off-by: Liu Aleaxander <Aleaxander@gmail.com>
* | Merge commit 'syslinux-3.83-pre1'H. Peter Anvin2009-07-271-2/+1
|\ \ | | | | | | | | | | | | | | | | | | Conflicts: com32/modules/chain.c Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | chain.c32: set DL properly when loaded from ISOLINUXH. Peter Anvin2009-07-231-2/+1
| | | | | | | | | | | | | | | | | | | | | When loaded from ISOLINUX, we still have a valid boot drive. Set it! This permits the use of chainloaded boot loaders. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | | Run Nindent on com32/modules/vpdtest.cH. Peter Anvin2009-05-291-22/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/vpdtest.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>
* | | Run Nindent on com32/modules/vesainfo.cH. Peter Anvin2009-05-291-47/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/vesainfo.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>
* | | Run Nindent on com32/modules/sdi.cH. Peter Anvin2009-05-291-124/+124
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/sdi.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>
* | | Run Nindent on com32/modules/sanboot.cH. Peter Anvin2009-05-291-71/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/sanboot.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>
* | | Run Nindent on com32/modules/reboot.cH. Peter Anvin2009-05-291-8/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/reboot.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>
* | | Run Nindent on com32/modules/pmload.cH. Peter Anvin2009-05-291-124/+124
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/pmload.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>
* | | Run Nindent on com32/modules/pcitest.cH. Peter Anvin2009-05-291-68/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/pcitest.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>
* | | Run Nindent on com32/modules/meminfo.cH. Peter Anvin2009-05-291-78/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/meminfo.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>
* | | Run Nindent on com32/modules/linux.cH. Peter Anvin2009-05-291-137/+137
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/linux.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>
* | | Run Nindent on com32/modules/kbdmap.cH. Peter Anvin2009-05-291-29/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/kbdmap.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>
* | | Run Nindent on com32/modules/ifcpu64.cH. Peter Anvin2009-05-291-56/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/ifcpu64.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>
* | | Run Nindent on com32/modules/ethersel.cH. Peter Anvin2009-05-291-127/+125
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/ethersel.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>
* | | Run Nindent on com32/modules/elf.cH. Peter Anvin2009-05-291-183/+184
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/elf.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>
* | | Run Nindent on com32/modules/dmitest.cH. Peter Anvin2009-05-291-132/+145
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/dmitest.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>
* | | Run Nindent on com32/modules/dmi_utils.cH. Peter Anvin2009-05-291-31/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/dmi_utils.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>
* | | Run Nindent on com32/modules/cpuidtest.cH. Peter Anvin2009-05-291-47/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/cpuidtest.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>
* | | Run Nindent on com32/modules/config.cH. Peter Anvin2009-05-291-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/config.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>
* | | Run Nindent on com32/modules/cmd.cH. Peter Anvin2009-05-291-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/cmd.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>
* | | Run Nindent on com32/modules/chain.cH. Peter Anvin2009-05-291-563/+574
|/ / | | | | | | | | | | | | | | | | Automatically reformat com32/modules/chain.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>
* | chain.c32: remove clobber of drivename/partitionH. Peter Anvin2009-05-211-3/+0
| | | | | | | | | | | | | | | | Remove a clobber of drivename and partition, after we have spent time computing what the should have been... Reported-by: Luciano Miguel Ferreira Rocha <strange@nsk.no-ip.org> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | meminfo: distinguish between no flags and flags=1syslinux-3.81-pre7H. Peter Anvin2009-05-201-5/+10
| | | | | | | | | | | | | | For debugging reasons it's important to know if we have no flags at all or if we get flags = 1. Print [-] in the case of no flags at all. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | linux.c32: replace the kernel name with BOOT_IMAGE=syslinux-3.81-pre2H. Peter Anvin2009-05-051-13/+10
| | | | | | | | | | | | | | | | | | The BOOT_IMAGE= argument is generated by replacing the kernel name in the argument array. As a result, we shouldn't advance argp. Move the code around slightly, to make it more obvious that that is what is happening. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | linux.c32: honor the "quiet" flagH. Peter Anvin2009-05-051-6/+34
| | | | | | | | | | | | | | Honor the "quiet" flag for linux.c32, since some distros have odd notions about these things. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | shuffler: correctly handle one-to-many relationshipssyslinux-3.80-pre7H. Peter Anvin2009-05-021-8/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | One-to-many relationships, in which one chunk of a file is used in more than one place, tends to naturally show up in decoding certain fileformats, including (but not limited to) Microsoft SDI. Make the shuffler library handle those cases correctly, and remove a special-purpose hack in sdi.c. This is based on the observation that all one-to-many relationships can be treated as a one-to-one shuffle followed by destination-to-destination copies; i.e. one copy is (arbitrarily) assigned the "master copy" status, and all aliases are then copied from the master copy when the master copy is already in its final place. All other copies can then be simply ignored for the duration of the shuffle, just as zero-memory is. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | linux.c32: move handling of mem= and vga= into the library functionsyslinux-3.80-pre5H. Peter Anvin2009-04-291-67/+1
| | | | | | | | | | | | | | Move the handling of mem= and vga= into syslinux_boot_linux(), so that the user of that function doesn't need to worry about it. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Remove the old mboot modulenew-mbootH. Peter Anvin2009-04-265-1629/+1
|/
* Merge branch 'master' into for-erwanPierre-Alexandre Meyer2009-04-113-72/+10
|\ | | | | | | | | | | Conflicts: com32/hdt/Makefile
| * Merge branch 'new-shuffler'H. Peter Anvin2009-04-081-70/+7
| |\
| | * Update copyright noticesH. Peter Anvin2009-04-041-0/+1
| | | | | | | | | | | | Update copyright notices; add Intel copyright notices where appropriate.
| | * Merge branch 'master' into new-shufflerH. Peter Anvin2009-04-042-1/+2
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: com32/lib/syslinux/memmap.c Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| | * | chain.c32: remove misleading commentH. Peter Anvin2009-03-311-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | Remove a never-implemented, misleading comment Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
| | * | chain.c32: remove loadbase < 0x7c00 hackH. Peter Anvin2009-03-311-70/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the special hack for loadbase < 0x7c00. We no longer need it, since the shuffler will relocate appropriately by magic. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
| * | | Makefiles: try to make "make install" do the right thingH. Peter Anvin2009-04-061-1/+1
| | |/ | |/| | | | | | | | | | | | | | | | | | | One more attempt at getting semi-sanity to "make install". Realistically, the install/netinstall/install-all/... needs to be pushed into the com32 Makefiles, but this is at least a quick hack. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | Update copyright notices; add Intel notices where appropriateH. Peter Anvin2009-04-042-1/+2
| |/ | | | | | | | | | | | | Update copyright notices. Per agreement with my new employer, Intel Corporation, add Intel copyright notices where appropriate. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | VPD: Adding the Virtual Product Data detectionErwan Velu2009-04-102-1/+70
|/ | | | | | | | | | | | | | Impact: It's now possible to reach VPD's info Calling vpd_decode() populate a VPD structure to display : - VPD's base address - Bios Build ID - Bios Release Date - Bios Version - Box Serial Number - Motherboard Serial Number - Machine Type/Model - Default Flash Filename
* pci: Rename get_module_name_from_pci_idssyslinux-3.74-pre13syslinux-3.74-pre12Erwan Velu2009-03-291-1/+1
| | | | | | | | | Impact: none Rename get_module_name_from_pci_ids to get_module_name_from_pcimap since the module names are read from the modules.pcimap and not pci.ids file. Signed-off-by: Sebastian Herbszt (herbszt@gmx.de)
* pci modules: Check for pci_scan() == NULL.Erwan Velu2009-03-231-1/+5
| | | | | | Impact: we don't have to grab more details if pci_scan returns NULL Signed-off-by: Sebastian Herbszt (herbszt@gmx.de)
* cmd.c32: simplify by passing the unparsed command lineH. Peter Anvin2009-03-141-21/+3
| | | | | Instead of parsing and unparsing the command line, just pass the raw command line the way we already have it.
* cmd.c32: use strpcpy() instead of sprintf()syslinux-3.74-pre4H. Peter Anvin2009-03-121-5/+6
| | | | | Make the cmd.c32 module a lot smaller (and avoid a warning) by using strpcpy() instead of sprintf().