aboutsummaryrefslogtreecommitdiffstats
path: root/com32/include/sys
Commit message (Collapse)AuthorAgeFilesLines
* 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)
* hdt: Adding PCI latencyErwan Velu2009-03-141-0/+1
| | | | Adding the pci latency information
* hdt: irq have to be in dev_infoErwan Velu2009-03-141-1/+1
| | | | Moving irq stuff to the dev_info structure to keep coherent
* hdt: Adding legacy IRQ stuffErwan Velu2009-03-131-1/+2
| | | | | | | | In the cli mode, the pci context feature the following : pci> show irq Under cli, "pci> show device <x>" display the IRQ when device features one. The menu mode behave the same way.
* PCI: flexible modules.pcimap & pci.ids pathsErwan Velu2009-03-111-3/+3
| | | | | | While detecting the pci names, class name & kernel modules, it's better to let the user choosing the path instead of the harcoded value "/" is not always the wanted path
* hdt: PCI: Adding categoryErwan Velu2009-02-261-1/+3
|
* hdt: Adding more defined values for pci components Enabling mulitple kernel ↵Erwan Velu2009-02-251-7/+13
| | | | modules per pci device Updating pcitest
* hdt: Returning ENOPCIIDS and ENOMODULESPCIMAP when pci.ids and ↵Erwan Velu2009-02-251-0/+5
| | | | modules.pcidmap files are missing
* hdt: Adding get_class_name_from_pci_ids to grab class name from the pciidsErwan Velu2009-02-251-0/+2
|
* pci: revamp the PCI system to have a hierarchial formatH. Peter Anvin2008-08-121-25/+48
| | | | | | | | Create the concept of a PCI domain, as a hierarcy of busses, devices and functions. This avoids large static-sized arrays and allows for geographical addressing of devices. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* pci: inlines for extracting part of a PCI device addressH. Peter Anvin2008-08-011-0/+15
| | | | | | The inverse operations of pci_mkaddr() Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* pci: store device addressH. Peter Anvin2008-08-011-0/+1
| | | | | | | When scanning PCI devices, store the device address for reference. Based on a patch by Sebastian Herbszt. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* pci: resize pci_device arrayssyslinux-3.71-pre15Sebastian Herbszt2008-07-191-5/+5
| | | | | | | | | | | pci_bus->pci_device get's populated with functions so it should take up to MAX_PCI_DEVICES * MAX_PCI_FUNC elements. pci_device_list->pci_device get's populated with functions for every possible pci bus. Therefore it should take up to MAX_PCI_BUS * MAX_PCI_DEVICES * MAX_PCI_FUNC elements. Also adjust count variable types. - Sebastian
* <sys/cpu.h>: asm() formatting cleanupH. Peter Anvin2008-07-161-1/+2
| | | | | | Minor asm() formatting cleanup. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* <sys/cpu.h>: drop redundant "return"H. Peter Anvin2008-07-161-1/+1
| | | | | | Drop "return" for function returning void. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* com32: move cpuid inlines to <sys/cpu.h>H. Peter Anvin2008-07-161-5/+40
| | | | | | | | <sys/cpu.h> already has most of the CPUID inlines, put them all there. <cpuid.h> still have structures for the code that really should be librarized at some point. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* pci: fix off-by-one error and introduce MAX_PCI_FUNCSebastian Herbszt2008-06-131-1/+2
| | | | | | | | | | | | | | | | | | | | | | | In include/sys/pci.h we have #define MAX_PCI_BUSES 255 and struct pci_bus_list { struct pci_bus pci_bus[MAX_PCI_BUSES]; uint8_t count; }; And in lib/pci/scan.c for (bus = 0; bus <= MAX_PCI_BUSES; bus++) { pci_bus_list->pci_bus[bus].pci_device_count = 0; Fix possible overflows and introduce MAX_PCI_FUNC. - Sebastian
* PCI detection code doesn't corrupt memory anymore (2nd try)Erwan2008-03-201-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From : Erwan Velu <erwan.velu@free.fr> This patch fixes the pci detection stuff demo'd in pcitest.c32 - Fix a wrong type in malloc - Incorrect use of strdup - Replacing strncpy by strnlcpy (thx hpa) This two fixes makes pcitest.c32 working far better, no more crash when running it twice. I'd like to thank Sebastian Herbszt for its reports and tests. This patch was made for 3.62-pre16 but applies fine on 3.63-pre1. Signed-off-by:Erwan Velu <erwan.velu@free.fr> -------------------------------------------------------------------------------- Les opinions et prises de position emises par le signataire du present message lui sont propres et ne sauraient engager la responsabilite de la societe SEANODES. Ce message ainsi que les eventuelles pieces jointes constituent une correspondance privee et confidentielle a l'attention exclusive du destinataire designe ci-dessus. Si vous n'etes pas le destinataire du present message ou une personne susceptible de pouvoir le lui delivrer, il vous est signifie que toute divulgation, distribution ou copie de cette transmission est strictement interdite. Si vous avez recu ce message par erreur, nous vous remercions d'en informer l'expediteur par telephone ou de lui retourner le present message, puis d'effacer immediatement ce message de votre systeme. The views and opinions expressed by the author of this message are personal. SEANODES shall assume no liability, express or implied for such message. This e-mail and any attachments is a confidential correspondence intended only for use of the individual or entity named above. If you are not the intended recipient or the agent responsible for delivering the message to the intended recipient, you are hereby notified that any disclosure, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender by phone or by replying this message, and then delete this message from your system.
* Fix building on a 64-bit system without a 32-bit system installedsyslinux-3.52-pre10syslinux-3.52H. Peter Anvin2007-09-241-0/+6
| | | | | A bunch of glibc header files were bogusly included. We should not depend on having a 32-bit glibc installed, since we don't use it.
* Improving PCI collected informationsErwan Velu2007-08-161-15/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch - add a new pci_dev_info structure : It contains additional informations about the pci devices like the product/vendor name and the associated linux kernel module - add a get_name_from_pci_ids() function in pci/scan.c This function reads a pci.ids file from the boot device. Then it assign for each pci device, its vendor/product name. You just have to put this file in the root directory of your isolinux/pxelinux (i.e the root directory of your tfptboot server if you are using pxelinux). - add a get_module_name_from_pci_ids() function in pci/scan.c This function reads a modules.pcimap file from the boot device. Then it assign for each pci_device its linux kernel module. You just have to put this file in the root directory of your isolinux/pxelinux (i.e the root directory of your tfptboot server if you are using pxelinux). - Add a call to get_name_from_pci_ids() into the pcitest COM32 module - Add a call to get_module_name_from_pci_ids() into the pcitest COM32 module - Fixing typedef struct { ... } s_pci...; by struct pci... {}; - Improving comments - Fixing the memory allocation to prevent leaks With this patch, pcitest.c32 act like lspci plus a bonus by displaying the linux kernel module assiocated to each pci device. Signed-off-by:Erwan Velu <erwan.velu@free.fr> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Remove useless attempt at reading pci.idsH. Peter Anvin2007-04-011-2/+0
| | | | | | | We try to read pci.ids over and over to get human-readable strings, and reserve enormous amounts of memory for them. We don't ever actually use them. If we want to have a PCI database we should do that elsewhere, and better.
* Stealth whitespace cleanup (automated)H. Peter Anvin2007-03-143-37/+37
|
* Wrapper infrastructure for "shuffle and boot"H. Peter Anvin2007-03-123-0/+413
| | | | | | | Initial checkin of a wrapper infrastructure for the "shuffle and boot" interface, both real and protected mode. This code automatically will figure out the necessary sequence of moves, taking into account swaps and overlaps as necessary.
* Ethersel must use the pci com32 module instead of builtin pci detection codeErwan Velu2007-03-071-0/+11
| | | | | | | | | | | | | | From : Erwan Velu <erwan.velu@free.fr> This patch - remove the pci detection code from ethersel - add a find_pci_device() function in the PCI com32 module - make ethersel using the pci com32 module instead of builtin pci detection code Testing and feedback are welcome. Signed-off-by:Erwan Velu <erwan.velu@free.fr>
* Merge with 3.2x branchH. Peter Anvin2006-09-121-0/+32
|\ | | | | | | | | | | Conflicts: com32/modules/Makefile
| * Introducing a new com32 module to parse pci devices/busessyslinux-3.2xErwan Velu2006-09-121-0/+32
| | | | | | | | | | | | The pcitest module implements an example of use the pci module If you like to use the string name just put a pci.ids file in the root directory (cherry picked from 85bb6facf0100592c89d5c3c5c17b25e7b0006b3 commit)
* | Include file updatesH. Peter Anvin2006-08-281-0/+6
|/
* Across-the-board stealth whitespace cleanupH. Peter Anvin2006-05-031-1/+1
|
* Beginnings of a file-moving APIhpa2005-09-252-1/+10
|
* Out-of-line __intcall and __farcall; better detection mechanism for CM#2hpa2005-08-091-1/+2
|
* Add PCI_CFG_BIOShpa2005-08-031-0/+1
|
* Support PCI configuration space mechanism #2 if necessary.hpa2005-01-051-6/+14
|
* Fix PCI access functionshpa2005-01-041-6/+6
|
* Support timeout in the menusyslinux-2.20-pre12hpa2004-12-211-2/+2
|
* Make the raw input console non-blocking with a timeout, allows handlinghpa2004-12-201-0/+21
| | | | the [Esc] key.
* Very basic operations now work; need to handle line-orientedhpa2004-11-171-0/+43
| | | | versus character-oriented input
* Very first cut at a klibc-derived C library for com32hpa2004-11-104-0/+159