Lines Matching refs:c
824 * The example program has been moved from lib/example.c to the top-level
877 * lspci.c, setpci.c: Cleaned up the list of options.
879 * lib/names.c: Fix displaying of errors reported by zlib.
893 * lib/dump.c: Squashed compiler warnings about code with
900 * lspci.c: Added a new switch `-k' which requests printing
928 * lspci.c: All known capabilities have at least their name displayed
935 * lspci.c: Decode the Debug port capability (per EHCI 0.96 spec).
937 * lspci.c: Big code cleanup: re-arranged functions in the code,
954 * lspci.c (show_caps, show_ext_caps): Detect and report loops in
957 * lspci.c, lib/header.h: Finished decoding of the PCI Express
962 * lspci.c, lib/header.h: Decode new bits of traditional registers
967 * lib/fbsd-device.c: Support domains on new FreeBSD's. Contributed
974 * lspci.c: alloca() is declared in <stdlib.h> on BSD's, not <alloca.h>.
988 * lib/names.c (pci_open): When calling gzopen(), use "rb" file mode
996 * lspci.c (show_ht): Added decoding of Hypertransport MSI mapping capability,
1024 * lspci.c (show_express): Added PCI/PCI-X to PCI-Express Bridge type.
1044 * lspci.c: alloca() needs <alloca.h>.
1048 * lib/dump.c: Fixed a couple of bugs in the dump backend which caused
1056 * lspci.c (scan_device): If an error occurs when reading the standard config
1068 * lspci.c (show_machine): In the `-m' mode, do proper shell escaping
1071 * lspci.c (show_machine): Added a `-vmm' mode, which removes the misuse
1086 Added transparent decompression to lib/names.c, modified update-pciids.sh
1113 * lspci.c, lib/header.h: Added support for MSI per-vector masking.
1116 * lspci.c, lib/header.h: Added support for the `bridge subsystem ID'
1119 * lspci.c (show_htype1): Fixed bug in printing of 64-bit prefetchable
1124 * lib/i386-ports.c, lib/i386-io-*: Report failures during port access
1128 * lib/i386-ports.c, lib/i386-io-*: Moved the logic which keeps track of
1134 * lib/i386-ports.c: Define _GNU_SOURCE, it's needed by the Hurd module.
1146 * lib/example.c: Show how to use PCI_FILL_CLASS and used another register
1150 * lib/pci.h, lib/generic.c: Added PCI_FILL_CLASS.
1152 * lib/sysfs.c: Fetch device ID and class from sysfs, because they can
1155 * lspci.c: Use PCI_FILL_CLASS. Thanks to Matthew Willcox for the patch.
1159 * lspci.c: Introduced the -nn switch. Thanks to David N. Welton
1162 * lib/names.c (pci_lookup_name): Introduced PCI_LOOKUP_MIXED and
1165 * lib/names.c (pci_lookup_name): If PCI_LOOKUP_NO_NUMBERS is given,
1168 * lib/names.c (pci_lookup_name): When class is identified and
1173 * setpci.c (main): Don't crash when an invalid width is specified.
1175 * lspci.c, setpci.c, common.c: die() now uses the right program
1186 * lib/configure, lib/fbsd-device.c: Added support for GNU/kFreeBSD.
1193 * lspci.c (scan_device): The -D switch didn't work as intended
1202 * lib/obsd-device.c (and other files in lib/*): Added OpenBSD
1211 * lspci.c (show_slot_name): Avoid the previous changes in default
1222 * lspci.c (show_slot_name, scan_device): If there are multiple PCI
1226 * lspci.c (show_verbose): Report cache line size in bytes.
1232 * lspci.c (show_express_link): Fixed decoding of link status register.
1237 * lib/nbsd-libpci.c: If libpci is used by an ordinary user, allow
1246 * lspci.c (show_machine): Subsystem vendors were printed incorrectly
1251 * lspci.c (new_bus): Fixed a memory leak. Thanks to Paul Sangree for reporting it.
1259 * lib/sysfs.c (sysfs_get_resources): Removed warning about unsupported
1262 * lspci.c (show_bases): Corrected printing of 64-bit addresses
1274 * lspci.c: Removed unnecessary trailing zeros in pci_lookup_name() calls.
1287 * lib/names.c: Rewritten the name database module almost from scratch.
1313 * lspci.c: Another rewrite of config register caching, now also including
1318 * lspci.c (show_pcix_nobridge, show_pcix_bridge): Cleaned up dumping of PCI-X
1322 * lspci.c: Quell warnings about unused parameters.
1324 * lspci.c: Removed C++ comments.
1329 * lspci.c (show_caps): Try to scan extended capabilities only if the
1333 * lib/dump.c (dump_init): Reading of dumps works again. The dump reader
1337 * setpci.man, lspci.c, README: prefer spelling "buses" over "busses".
1339 * lspci.c: If alloca() is not available, use xmalloc(), not malloc().
1345 * lib/filter.c (pci_filter_parse_slot): Fixed parsing of domain filters.
1348 * lspci.c: Corrected spelling of "Hz" (it was "hz" at several places).
1401 * lib/sysfs.c (sysfs_get_resources): We have 7 resources, not 6.
1403 * lspci.c (show_rom): Use the same logic for printing disabled
1406 * lib/generic.c (pci_generic_fill_info): Better reaction to
1410 * lib/generic.c (pci_generic_fill_info): Fill in base addresses
1420 * lspci.c: HyperTransport improvements from Maciej.
1424 * lib/sysfs.c (sysfs_get_resources): Arguments now correspond
1431 * lspci.c (config_fetch): Wanted to merge Matthew's bug fix, but
1437 * lspci.c: More work on PCI Express dumping.
1441 * lib/proc.c (proc_read): Removed bogus warning.
1443 * common.c (xrealloc): Introduced.
1451 * lspci.c (show_msix), lib/header.h: Added dumping of MSI-X cap.
1454 * lspci.c (show_pcix_nobridge, show_pcix_bridge): Handle config_fetch()
1459 * lspci.c (show_express): Added dumping of PCI Express cap.
1465 * lspci.c (check_root): Gone. No explicit checks for root are needed,
1468 * lspci.c: Added dumping of the extended config space on "-xxxx".
1471 * setpci.c (main): Allow access to whole 4096 bytes of the config space.
1473 * lib/sysfs.c, lib/proc.c: Don't print error messages on short reads,
1489 * lib/i386-ports.c: Connected i386-io-windows.h.
1491 * lspci.c (check_root): geteuid() is not available on Windows.
1505 * lspci.c (show_verbose): Header type 1 is probably legal for all
1508 * lspci.c (format_agp_rate): Write "x16", not "x@".
1512 * lspci.c (show_ht_*): Show HyperTransport capability with all its
1519 * lspci.c: Decode all bits of the secondary status word in type 1 headers.
1528 * lib/dump.c (dump_init): Added ability to read domain numbers.
1530 * lspci.c: Devices in domains different from 0 have their slot number
1534 * lib/filter.c: Slot filters understand domains.
1536 * lib/generic.c: Mention the domain in slot numbers in all error messages.
1540 * lib/access.c (pci_get_dev): Added support for domains.
1542 * lib/sysfs.c (sysfs_scan): Read vendor and device ID from the config
1546 * lspci.c (show_pcix): Don't touch pci_dev->hdrtype, it's an internal
1549 * lib/sysfs.c (sysfs_scan), lib/proc.c (proc_scan): Don't read the hdrtype.
1550 lib/generic.c (pci_generic_fill_info): If hdrtype is -1 (unset), read it.
1560 * lib/sysfs.c: Added Linux sysfs access method based on the patch
1563 * lib/proc.c: Renamed the access method name from "/proc/bus/pci" to "Linux-proc".
1568 * lib/proc.c (proc_setup): The return value of snprintf() varies
1587 * lib/fbsd-device.c: I patched another copy of this file by mistake,
1594 * pciutils.h, common.c, lspci.man, setpci.man, lib/internal.h:
1601 * lib/proc.c (proc_setup): Increased path name length limit to 1024.
1611 * lspci.c (show_verbose): "Cache Line Size" should be capitalized.
1613 * lspci.c (show_pcix_nobridge): Added a missing newline.
1615 * lib/proc.c (proc_scan): When reading the header type, don't
1625 * lib/fbsd-device.c: Select the right set of system includes according
1635 * lib/i386-ports.c: Split OS-dependent I/O port access from i386-ports.c.
1653 * lib/proc.c (proc_scan): Use PCIADDR_T_FMT for scanf'ing addresses.
1660 * lib/i386-ports.c: Don't call iopl() on the Hurd.
1666 * lspci.c (show_pcix_bridge, show_pcix_nobridge): Don't forget to call
1670 * lspci.c: Ensure that failure of config_fetch() is handled correctly
1676 * setpci.c (main): Better error messages.
1678 * setpci.c (ex_op): The demo mode should disable only writing, not reading.
1683 * pciutils.h, common.c, setpci.c: Introduced a NONRET macro encapsulating
1694 * lspci.c (main): The error message for `lspci -s' incorrectly mentioned
1697 * lib/generic.c: Removed memory leak in pci_generic_bus_scan().
1709 * setpci.c: Cleaned up mask/value code.
1713 * setpci.c: Individual bits to be set can be specified as <value>:<mask>.
1744 * lib/nbsd-libpci.c: Cleaned up and hopefully made it endian safe.
1746 * lib/generic.c (pci_generic_scan_bus): Added work-around for devices with
1752 * lib/header.h, lspci.c: Dump AGP3 flags and speeds.
1757 * lib/proc.c (proc_scan): Don't forget to initialize hdrtype.
1764 * lspci.c: Mention "-xxx" in the help.
1783 * lib/names.c (parse_name_list): End-of-line comments are no longer
1797 * lspci.c (show_pcix_bridge): Added PCI-X capability display.
1804 * lspci.c (format_agp_rate): Fixed AGP rate reporting.
1806 * lib/filter.c (pci_filter_parse_slot): Allow bus 0xff, slot 0x1f and
1809 * lib/names.c (pci_lookup_name): When printing unknown subsystem vendor
1836 * lspci.c (show_verbose): Min/max latency is now printed in nanoseconds.
1840 * lspci.c (show_verbose): If the header type doesn't match device
1846 * lspci.c (show_pm): Updated according to PCI PM specs 1.1.
1854 * lib/names.c (pci_lookup_name): Fixed the cheat.
1866 * lib/names.c (pci_lookup_name): Added a cheat for case that subsystem ID's
1870 * lib/proc.c: Use UNUSED instead of __attribute__((unused)).
1874 * lib/generic.c (pci_generic_scan_bus): Export.
1876 * lib/configure: Detect AIX. Use "echo '...\c'" instead of
1879 * lspci.c: Avoid using alloca() if not compiled by GCC.
1886 * lib/aix-device.c: Added AIX low-level interface. Contributed
1904 * lib/example.c: Added a simple example of how to use
1921 * setpci.c (main): Don't crash when `-s' or `-d' is given with
1926 * lib/i386-ports.c: Include <asm/io.h> only on systems without
1943 * lspci.c (scan_device): Fixed bug in reading of cardbus extensions.
1945 * lib/proc.c: pread/pwrite fixed again, this time on libc5 :(
1947 * lspci.c (format_agp_rate): Better formatting of AGP rates.
1960 * lspci.c: Alpha IO_FORMAT fix by Andrea Arcangeli.
1962 * lib/access.c: Corrected order of access methods -- it's wonderful how
1969 * lib/names.c (pci_lookup_name): Fixed printing of unknown subsystem ID's.
1977 * setpci.c (exec_op): Don't forget to increment address after writing
1983 * lspci.c (show_terse): If prog-if is zero, but it's present in the
2001 * lspci.c: Resolve prog-if names.
2003 * lib/names.c: Adapted to new pci.ids syntax.
2013 * lspci.c (show_htype1, show_htype2): Don't show `closed' bridge windows
2018 * lspci.c (show_htype2): Don't forget a TAB before the "I/O window" line.
2026 * lspci.c (show_size): Don't show size if it's zero (usually
2037 * lib/Makefile, lib/access.c: Added fbsd-device target.
2047 (install): Use `-c' when calling install.
2049 * lib/fbsd-device.c: Added FreeBSD /dev/pci access module contributed
2052 * lib/proc.c: Rewrote the pread/pwrite things once again. Use pread
2067 * lib/proc.c (proc_scan): HAVE_LONG_ADDRESS instead of HAVE_64BIT_ADDRESS.
2069 * lspci.c: ADDR_FORMAT now depends on both HAVE_64BIT_ADDRESS and
2078 * lspci.c (show_msi): Added dumping of the MSI capability.
2090 * lspci.c (show_htype0): Mask out lowest 2 bits from all capability pointers
2095 * lspci.c (show_size): Added new function for dumping of region sizes.
2124 * lib/names.c (pci_lookup_name): When device ID lookup
2131 * lspci.c (show_agp): Bug fix from Petr Vandrovec
2137 * lib/proc.c (SYS_pread, SYS_pwrite): Use hard-coded
2151 * lspci.c: Display I/O addresses correctly on sparc64.
2159 * lspci.c, lib/proc.c: Alpha compilation fixes from Matthew Jacob
2166 * lspci.c (do_map_bus): Don't dump functions 1--7 if not flagged
2178 * lspci.c (show_bases): Use new address masking macros and pciaddr_t.
2190 * lspci.c: Capability list parser now recognizes both AGP
2195 * lspci.c: Replaced numerous occurrences of (x & flag) ? '+' : '-'
2198 * lspci.c: Added bridge checks to bus mapping code.
2202 * lspci.c: Implemented bus mapping mode (-M).
2204 * lspci.c (scan_devices): Split to scan_devices() and scan_device().
2207 * lib/access.c (pci_init): When a->method == PCI_ACCESS_AUTO,
2212 * lib/generic.c (pci_generic_fill_info): If in buscentric mode,
2229 * lspci.c (show_verbose): Display `Cap' flag in device status.
2231 * lspci.c (show_htype0): Display capability lists wherever
2237 * lspci.c (scan_devices): Use cache instead of buffering.
2239 * lib/buffer.c: Removed (obsoleted by the cache).
2241 * lib/access.c: Added general caching mechanism.
2252 * lspci.c (show_bases): Rewrote displaying of 64-bit addresses.
2255 * lib/i386-ports.c: Include sys/io.h only on glibc systems.
2263 * lib/proc.c (proc_read, proc_write): Distinguish between short
2266 * lspci.c (show_htype{0,1}): Always use d->dev->rom_base_addr since
2269 * lspci.c (show_hex_dump): For CardBus bridges, print out 128
2272 * common.c: pcilib options are now all uppercase. Also moved
2285 * common.c: Moved several functions used in both setpci and lspci
2290 * filter.c, names.c: Moved to library.
2298 * lspci.c (scan_devices): For cardbus bridges, read first 128
2329 * lspci.c (show_htype1): Fixed displaying of prefetchable memory behind
2334 * setpci.c: Don't include <syscall-list.h> with glibc >= 2.1.
2340 * setpci.c: glibc 2.1.x already defines pread() and pwrite().
2344 * lspci.c: Require "-xxx" for full configuration space dump, so that
2351 * lspci.c (show_bases): Better displaying of unassigned and
2357 * setpci.c (pread): Recognize glibc 1.99 numbered as 2.0 on the PPC.
2362 * lspci.c (show_verbose): Print subsystem ID using the new resolver.
2365 * names.c: New name resolution engine supporting subsystem IDs.
2371 * lspci.c (show_htype2 etc.): Displaying of CardBus headers.
2383 * names.c (parse_name_list): Killed an unused variable.
2385 * setpci.c (pread, pwrite): Define SYS_(pread|pwrite) as __NR_\1
2389 * setpci.c (exec_op): Fixed error messages. Thanks, Steve!
2395 * setpci.c: Problems with pread()/pwrite() with glibc on Alpha
2398 * filter.c (filter_parse_slot): Fixed ":x" type filters.
2405 * lspci.c (main), setpci.c (main): Implemented "--version".
2411 * filter.c, names.c: Extraneous #include <linux/pci.h> removed.
2429 * setpci.c: Finished.
2431 * lspci.c: Now able to fetch expansion ROM base from kernel device list
2436 * setpci.c: Added.
2442 * lspci.c: Modified to use the new filtering mechanism (options -f and -d).
2444 * filter.c: Introduced new generic device filter.
2448 * lspci.c (grow_tree, show_tree_dev, print_it): Fixed displaying
2453 * lspci.c (show_machine): Added non-verbose mode of machine-readable
2462 * lspci.c: Added a "-m" switch for dumping machine-readable
2489 * lspci.c (show_verbose): Recognize CardBus bridge header type.