summaryrefslogtreecommitdiffstats
path: root/pci.c
Commit message (Collapse)AuthorAgeFilesLines
* try harder to reduce number of relocations (most remaining ones are due toThierry Vignaud2007-08-271-2/+2
| | | | | arrays of pointers)
* remove old 8139too/gdth hardcoded rules (already in modules.alias)Olivier Blin2007-08-141-10/+0
|
* (pci_probe) simplifyThierry Vignaud2007-08-041-2/+1
|
* (pci_probe) kill some quirks that are either obsolete now that weThierry Vignaud2007-08-041-30/+1
| | | | | | resolve modalias (which bring wildcard support) or were removed from the kernel (eg: sata_nv do not more probe on class)
* reuse modprobe code in order to resolve modalias (need to be optimized)Thierry Vignaud2007-08-041-1/+1
|
* (pci_probe) typo fix :-(Thierry Vignaud2007-02-261-1/+1
|
* export PCI domainThierry Vignaud2007-02-261-0/+1
|
* (pci_probe) get PCI class as reported by pciutils (might be used by harddrakeThierry Vignaud2007-02-261-1/+3
| | | | | in order to display something nicer than ->{media_type})
* (struct pciusb_entry) rename class_ as class_idThierry Vignaud2007-02-261-6/+6
|
* (pci_probe) remove an extra space wronly added in r125837Thierry Vignaud2007-02-261-1/+1
|
* (pci_probe) replace a couple magic valyes by constants from pciutilsThierry Vignaud2007-02-261-3/+4
|
* stop performing descriptions lookup from pcitable for PCIThierry Vignaud2007-02-261-1/+1
|
* (pci_probe) use pciutils in order to get device description from ↵Thierry Vignaud2007-02-261-0/+5
| | | | /usr/share/pci.ids
* switch to pciutils as PCI listing backendThierry Vignaud2007-02-261-62/+38
|
* always initialize n_pci_domains, stick to 0 on opendir() error and no matchGwenolé Beauchesne2006-01-051-1/+1
|
* add support for pci domainsGwenolé Beauchesne2006-01-051-2/+50
|
* oops: sata_via doesn't support for CLASS probing whereas sata_nv doesThierry Vignaud2005-03-301-2/+2
|
* libify and simplifyPascal Rigaux2005-03-141-3/+1
|
* setting .nb to 0 seems a better idea than setting .entriesPascal Rigaux2005-03-111-1/+2
|
* handle a few more special cases (gdth, snd-vx222, 8139too, and agp bridges)Thierry Vignaud2005-02-171-0/+20
|
* detect VIA SATA controllers since new sata_via.c driver probes themThierry Vignaud2005-02-171-0/+2
| | | | | | this way... (we should really add a class/... matching table like kernel's pcimap is)
* all PCI_CLASS_BRIDGE_CARDBUS cards are yenta_socket (says kudzu)Pascal Rigaux2004-12-071-2/+8
|
* do full-probe by default; remove support for no full-probeThierry Vignaud2003-08-191-8/+2
|
* - detect ohci1394 & ehci-hcd based on the pci classPascal Rigaux2003-07-311-2/+13
| | | | | (as done in RedHat's kudzu)
* Use read() instead of fread() to read from "/proc/bus/pci/%02x/%02x.%d".Pascal Rigaux2003-04-221-4/+8
| | | | | | | | | | | | Thanks a lot to Tom Cox for finding this bug: The proc.c module in the kernel source clearly states that reading more than 64 bytes can cause problems. The pci.c module in the ldetect library uses the buffered fread() function. This function always reads in blocks, so when run as root, the read always tried to read more than the user requested amount.
* no error message when -p is not used and there is neither pci nor usb busPascal Rigaux2002-11-051-8/+11
|
* fix PCI_CLASS_PROG offsetThierry Vignaud2002-08-291-1/+1
|
* - kill last fseekThierry Vignaud2002-08-251-26/+21
| | | | | | - change if(cdt) cascade into if(!cdt) continue - move loop invariant out of loop
* try to not freeze on buggy motherboard by preventing:Thierry Vignaud2002-08-221-5/+6
| | | | | | | | - seeking in /proc/bus/pci/<bus>/<device>.<function> - not reading the whole /proc/bus/pci/<bus>/<device>.<function> we now read 48 linear bytes the same way lspci read 64 linear bytes.
* - usb.c: allocate mem as pci.c doesThierry Vignaud2002-08-161-6/+5
| | | | | | | | | - usb.c: kill dead code - usb.c: give url to get info on /proc/bus/usb/devices format - usb.c: the /proc/bus/usb/devices really is a state machine; use switch to make it clearer - {usb,pci}.c: r.nb is zeroed in all path, let's do it only time
* - don't die when missing /proc/bus/pci/devices (resp. /proc/bus/usb/devices),Pascal Rigaux2002-07-221-2/+4
| | | | | | | since on some boxes, this is *normal*! - free error messages obtained via asprintf - remove debugging message "TOTO"
* no need for unistd.hThierry Vignaud2002-07-161-1/+0
|
* - print error message if unable to open the arguement passed to -u,-pThierry Vignaud2002-07-161-1/+9
| | | | | | - print error message if usb service isn't started (commented for now to follow previous behaviour)
* - pci.c: add the ability to read pci devices list from a file insteadThierry Vignaud2002-07-161-1/+2
| | | | | | | | | of /proc/bus/pci/devices - spec: prepare for next release - add ChangeLog
* - change memory pattern : MAX*sizeof(entry) on stack + REAL_NB*sizeof() in heapThierry Vignaud2002-07-161-23/+23
| | | | | | | to MAX*sizeof(entry) on heap then downsized to real size - make if (test) action clearer by rejecting action singleton in next line
* don't do useless stuff when full probe isn't requires:Thierry Vignaud2002-07-161-2/+2
| | | | | | - allocatestuff on stack - call snprintf
* factorize common constants in private headerThierry Vignaud2002-07-041-1/+1
|
* factorize common constants in private headerThierry Vignaud2002-07-041-1/+1
|
* get rid of more uneeded copiesThierry Vignaud2002-07-031-1/+1
|
* get rid of {pci,usb}_find_modules()Thierry Vignaud2002-07-031-4/+2
|
* indent-regionThierry Vignaud2002-07-031-50/+50
|
* ensure the header file are C++ compliant (do not use "class" for struct ↵Pascal Rigaux2002-06-101-2/+2
| | | | field name)
* in probe_type=1, recognize usb controllers (is either usb-uhci or usb-ohci)Pascal Rigaux2001-12-281-0/+11
|
* if subid can be useful, use them. use probe_type==-1 to ensure no subid is usedPascal Rigaux2001-03-211-12/+10
|
* added pci(bus,device,function) for DrakX.Francois Pons2001-03-151-1/+4
|
* *** empty log message ***Francois Pons2001-03-061-1/+8
|
* fix the fclosePascal Rigaux2001-02-101-1/+1
|
* add some fclose where it shouldPascal Rigaux2001-02-061-0/+1
|
* now detect usbPascal Rigaux2000-12-161-71/+22
|
* creationPascal Rigaux2000-12-151-0/+103