]> mj.ucw.cz Git - pciutils.git/log
pciutils.git
15 years agoDo not include <pwd.h> et al. unless PCI_USE_DNS
Martin Mares [Wed, 16 Sep 2009 08:11:58 +0000 (10:11 +0200)]
Do not include <pwd.h> et al. unless PCI_USE_DNS

Solves compilation problems on Windows.

15 years agoMerge branch 'master' of git+ssh://git.ucw.cz/home/mj/GIT/pciutils
Martin Mares [Fri, 21 Aug 2009 09:55:36 +0000 (11:55 +0200)]
Merge branch 'master' of git+ssh://git.ucw.cz/home/mj/GIT/pciutils

15 years agoFix spelling of surprise
Ed Swierk [Thu, 20 Aug 2009 22:35:46 +0000 (15:35 -0700)]
Fix spelling of surprise

It's surprise, not surpise or suprise.

Signed-off-by: Ed Swierk <eswierk@aristanetworks.com>
15 years agoMake Physical Slot work for multifunction cards
Matthew Wilcox [Fri, 14 Aug 2009 12:55:09 +0000 (14:55 +0200)]
Make Physical Slot work for multifunction cards

I have some multifunction cards in a machine which supports physical
slots.  Currently, lspci only displays the Physical Slot for the last
function in the slot.  I believe it should display it for all of them.

Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
15 years agoMended the ChangeLog, so that it is parseable by maint/release v3.1.4
Martin Mares [Fri, 14 Aug 2009 12:41:14 +0000 (14:41 +0200)]
Mended the ChangeLog, so that it is parseable by maint/release

15 years agoReleased as 3.1.4.
Martin Mares [Fri, 14 Aug 2009 12:33:52 +0000 (14:33 +0200)]
Released as 3.1.4.

15 years agoUpdated to the today's snapshot.
Martin Mares [Fri, 14 Aug 2009 12:33:19 +0000 (14:33 +0200)]
Updated to the today's snapshot.

15 years agoAdded a copy of the GPL. Oh, those lawyers...
Martin Mares [Fri, 14 Aug 2009 12:16:57 +0000 (14:16 +0200)]
Added a copy of the GPL. Oh, those lawyers...

15 years agoFixed FILE leak in the dump back-end
Martin Mares [Mon, 10 Aug 2009 14:33:15 +0000 (16:33 +0200)]
Fixed FILE leak in the dump back-end

Closes https://bugzilla.novell.com/show_bug.cgi?id=529469

15 years agolspci: Let the SR-IOV code dump 64-bit addresses even with 32-bit pciaddr_t.
Martin Mares [Sun, 12 Jul 2009 20:48:14 +0000 (22:48 +0200)]
lspci: Let the SR-IOV code dump 64-bit addresses even with 32-bit pciaddr_t.

15 years agolspci: Whitespace cleanup of the previous SR-IOV patch.
Martin Mares [Sun, 12 Jul 2009 20:41:01 +0000 (22:41 +0200)]
lspci: Whitespace cleanup of the previous SR-IOV patch.

15 years agolspci: Show SR-IOV VF BARs
Chris Wright [Sat, 11 Jul 2009 00:55:26 +0000 (17:55 -0700)]
lspci: Show SR-IOV VF BARs

When decoding the PCIe SR-IOV capability, cap_sriov() doesn't show the
VF BARs.  This patch shows basic information about the VF BARs (doesn't
include size, for example).

Signed-off-by: Chris Wright <chrisw@sous-sol.org>
15 years agoReleased as 3.1.3. v3.1.3
Martin Mares [Sat, 4 Jul 2009 16:10:03 +0000 (18:10 +0200)]
Released as 3.1.3.

15 years agoUpdated pci.ids to the daily snapshot.
Martin Mares [Sat, 4 Jul 2009 16:09:27 +0000 (18:09 +0200)]
Updated pci.ids to the daily snapshot.

15 years agolspci.man: Improved description of -M
Martin Mares [Sat, 4 Jul 2009 14:08:18 +0000 (16:08 +0200)]
lspci.man: Improved description of -M

15 years agolspci: Warn against using -M with the sysfs back-end
Martin Mares [Sat, 4 Jul 2009 14:05:56 +0000 (16:05 +0200)]
lspci: Warn against using -M with the sysfs back-end

15 years agoFixed compilation of GNU/kFreeBSD
Martin Mares [Sat, 4 Jul 2009 13:54:54 +0000 (15:54 +0200)]
Fixed compilation of GNU/kFreeBSD

LIBRESOLV should be used on GNU/kFreeBSD.

Thanks to Petr Salinger for noticing that.

15 years agofile timestamp not needed in pci.ids.gz
Gilles Espinasse [Fri, 26 Jun 2009 09:37:47 +0000 (11:37 +0200)]
file timestamp not needed in pci.ids.gz

File timestamp (and file name) have no use for pci.ids.gz
This allow to produce the exact same file even when compiled at different times.
That make paranoid happy.

Even gzip-1.2.4 from 1993 support -n option

Concerning the fact that -n did not include file name, that does not matter
unless the compressed file is moved under a different name and later -N option
 is used to open the file.

[chroot-i486] root:/$ gzip -9 /usr/share/pci.ids
[chroot-i486] root:/$ gzip -l /usr/share/pci.ids.gz
         compressed        uncompressed  ratio uncompressed_name
             161106              590309  72.7% /usr/share/pci.ids
[chroot-i486] root:/$ mv /usr/share/pci.ids.gz /usr/share/pci.foo.gz
[chroot-i486] root:/$ gzip -lN /usr/share/pci.foo.gz
         compressed        uncompressed  ratio uncompressed_name
             161106              590309  72.7% /usr/share/pci.ids
[chroot-i486] root:/$ gzip -dN /usr/share/pci.foo.gz
[chroot-i486] root:/$ ls -l /usr/share/pci.ids
-rw-r--r-- 1 root root 590309 Jun 26 07:59 /usr/share/pci.ids

[chroot-i486] root:/$ gzip -9n /usr/share/pci.ids
[chroot-i486] root:/$ mv /usr/share/pci.ids.gz /usr/share/pci.foo.gz
[chroot-i486] root:/$ gzip -lN /usr/share/pci.foo.gz
         compressed        uncompressed  ratio uncompressed_name
             161098              590309  72.7% /usr/share/pci.foo

Signed-off-by: Gilles Espinasse <g.esp@free.fr>
15 years agoAdded a test case for the PCI AF capability
Yu Zhao [Fri, 26 Jun 2009 02:45:36 +0000 (10:45 +0800)]
Added a test case for the PCI AF capability

(an integrated USB controller on Intel DX58SO motherboard)

Signed-off-by: Yu Zhao <yu.zhao@intel.com>
15 years agoMerge branch 'master' of git+ssh://git.ucw.cz/home/mj/GIT/pciutils
Martin Mares [Sat, 4 Jul 2009 13:44:23 +0000 (15:44 +0200)]
Merge branch 'master' of git+ssh://git.ucw.cz/home/mj/GIT/pciutils

15 years agolspci: support PCI Advanced Features capability
Yu Zhao [Fri, 26 Jun 2009 02:45:35 +0000 (10:45 +0800)]
lspci: support PCI Advanced Features capability

The capability is defined by
http://www.pcisig.com/specifications/conventional/pci_30/ECN_Conventional_Adv_Caps_27Jul06.pdf

Signed-off-by: Yu Zhao <yu.zhao@intel.com>
15 years agolspci -t: Only show the domain at the root of the tree
Matthew Wilcox [Sat, 4 Jul 2009 13:42:06 +0000 (15:42 +0200)]
lspci -t: Only show the domain at the root of the tree

Children always have the same domain as their parents, so it's redundant
information, and it makes the tree display too wide.

15 years agoImprove the VPD fix to warn the user that VPD decoding was aborted.
Martin Mares [Sat, 4 Jul 2009 13:33:31 +0000 (15:33 +0200)]
Improve the VPD fix to warn the user that VPD decoding was aborted.

15 years agoStop early if the VPD is corrupt
Matthew Wilcox [Wed, 13 May 2009 21:44:46 +0000 (15:44 -0600)]
Stop early if the VPD is corrupt

I have several cards which report more-or-less garbage in their VPD.
It can take an extraordinarily long time to read all their VPD and none
of it is of interest.  Instead, if we find an unknown resource type,
just stop trying to read any more.

Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
15 years agoImprove MSI and MSI-X display
Matthew Wilcox [Wed, 13 May 2009 21:43:53 +0000 (15:43 -0600)]
Improve MSI and MSI-X display

There are several ways I think the MSI and MSI-X capabilities could be
reported better in lspci.

Enable is at the beginning of the MSI-X report, but the end of the
MSI report.  Because Enabled is perhaps the most important thing,
I moved it to the start.

The TabSize reported for MSI-X is perhaps a little obscure.  I feel
'Count' works better (and is then the same as MSI).  We can't readily
tell which of the MSI-X capabilities have been programmed, so we can't
report how many have been enabled.

Both capabilities report 'Mask'.  Unfortunately, in MSI, it indicates
whether the device supports per-vector masking, and in MSI-X it indicates
whether all the vectors are masked.  This patch changes both; MSI reports
'Maskable' and MSI-X reports 'Masked'.

All these changes combine to turn the report from this:

        Capabilities: [60] MSI: Mask+ 64bit+ Count=1/8 Enable-
        Capabilities: [78] MSI-X: Enable+ Mask- TabSize=8

to this:

        Capabilities: [60] MSI: Enable- Count=1/8 Maskable+ 64bit+
        Capabilities: [78] MSI-X: Enable+ Count=8 Masked-

which I find much less confusing when juxtaposed.

Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
15 years agoproc: Work around broken /proc/bus/pci/ on some architectures.
Martin Mares [Mon, 29 Jun 2009 17:55:24 +0000 (19:55 +0200)]
proc: Work around broken /proc/bus/pci/ on some architectures.

Several architectures (e.g., sparc64) use domains in proc directory
names, which is inconsistent, because /proc/bus/pci/devices is still
unable to represent domains.

Work around it, so that the proc back-end works at least on single-domain
machines.

Suggested by Matthew Wilcox.

15 years agosysfs: Avoid warnings when the slot address is missing.
Matthew Wilcox [Mon, 29 Jun 2009 11:07:41 +0000 (05:07 -0600)]
sysfs: Avoid warnings when the slot address is missing.

15 years agolspci: Print vendor-/system-specific VPD item ids correctly
Ben Hutchings [Mon, 29 Jun 2009 16:41:56 +0000 (17:41 +0100)]
lspci: Print vendor-/system-specific VPD item ids correctly

Vendor- and system-specific VPD items are matched only by their first
character, so we cannot read the item id from the matching structure.
There is a similar issue with unknown VPD items, which is handled by
creating a matching structure dynamically.

We can handle both cases using the static matching structure and the
actual item id, so do that.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
15 years agoMake MSI-X table size match the spec
Michael S. Tsirkin [Sun, 3 May 2009 07:13:09 +0000 (10:13 +0300)]
Make MSI-X table size match the spec

MSI-X table size is 11 bits, not 10. See also PCI_MSIX_FLAGS_QSIZE
in linux/pci_regs.h. Make PCI_MSIX_TABSIZE match that.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
15 years agoDocument that pci_dev->base_addr[] contains addresses with flags.
Martin Mares [Mon, 13 Apr 2009 18:39:03 +0000 (20:39 +0200)]
Document that pci_dev->base_addr[] contains addresses with flags.

15 years agoCorrect Device Serial Number output
Matthew Wilcox [Fri, 27 Feb 2009 13:20:04 +0000 (06:20 -0700)]
Correct Device Serial Number output

We are currently printing the Device Serial Number backwards.  Ben
Hutchings noticed that the DSN was an EUI-64 (derived from a MAC
address), but printed backwards.  Before:

        Capabilities: [140] Device Serial Number 97-62-84-ff-ff-3b-1f-00

After:
        Capabilities: [140] Device Serial Number 00-1f-3b-ff-ff-84-62-97

The MAC address is:

wlan0     Link encap:Ethernet  HWaddr 00:1f:3b:84:62:97

Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
15 years agoSupport PM No_Soft_Reset bit in lspci
Yu Zhao [Tue, 24 Feb 2009 09:29:40 +0000 (17:29 +0800)]
Support PM No_Soft_Reset bit in lspci

Signed-off-by: Yu Zhao <yu.zhao@intel.com>
15 years agoReleased as 3.1.2. v3.1.2
Martin Mares [Sun, 1 Feb 2009 16:49:32 +0000 (17:49 +0100)]
Released as 3.1.2.

15 years agoOne more fix for the syntax error checks in setpci argument parser.
Martin Mares [Sun, 1 Feb 2009 14:52:19 +0000 (15:52 +0100)]
One more fix for the syntax error checks in setpci argument parser.

15 years agoReleased as 3.1.1. v3.1.1
Martin Mares [Fri, 30 Jan 2009 13:25:28 +0000 (14:25 +0100)]
Released as 3.1.1.

15 years agoUpdated pci.ids to the today's snapshot.
Martin Mares [Fri, 30 Jan 2009 13:19:07 +0000 (14:19 +0100)]
Updated pci.ids to the today's snapshot.

15 years agoconfigure: Set LC_ALL globally.
Martin Mares [Fri, 30 Jan 2009 13:07:15 +0000 (14:07 +0100)]
configure: Set LC_ALL globally.

Fixes problems with character ranges in calls to `tr' spotted in some
locales by Mike Frysinger.

15 years agosetpci: Fixed a typo in parsing of values, causing SIGSEGV on some bad inputs.
Martin Mares [Fri, 30 Jan 2009 13:05:13 +0000 (14:05 +0100)]
setpci: Fixed a typo in parsing of values, causing SIGSEGV on some bad inputs.

Patch by Andreas Wiese.

15 years ago$(PCILIB): respect $(LDFLAGS) when linking
Mike Frysinger [Thu, 29 Jan 2009 18:50:31 +0000 (13:50 -0500)]
$(PCILIB): respect $(LDFLAGS) when linking

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agoFixed a typo in the ChangeLog.
Martin Mares [Sun, 18 Jan 2009 22:18:17 +0000 (23:18 +0100)]
Fixed a typo in the ChangeLog.

15 years agoReleased as 3.1.0. v3.1.0
Martin Mares [Sun, 18 Jan 2009 22:11:31 +0000 (23:11 +0100)]
Released as 3.1.0.

15 years agoUpdated pci.ids to the snapshot of the day.
Martin Mares [Sun, 18 Jan 2009 22:10:56 +0000 (23:10 +0100)]
Updated pci.ids to the snapshot of the day.

15 years agoUpdated ChangeLog.
Martin Mares [Sun, 18 Jan 2009 22:08:41 +0000 (23:08 +0100)]
Updated ChangeLog.

15 years agoDisplay some PCIe extended capabilities only when verbose level >= 2
Yu Zhao [Sun, 4 Jan 2009 08:13:51 +0000 (16:13 +0800)]
Display some PCIe extended capabilities only when verbose level >= 2

Signed-off-by: Yu Zhao <yu.zhao@intel.com>
15 years agoDon't display 'disabled' for a virtual base address
Yu Zhao [Sun, 4 Jan 2009 08:10:39 +0000 (16:10 +0800)]
Don't display 'disabled' for a virtual base address

Don't display 'disabled' for the virtual base address since the resource
is reported by the OS not the hardware, which means the IO/MEM enable bits
in the command register may be invalid.

Signed-off-by: Yu Zhao <yu.zhao@intel.com>
15 years agoRemove 64-bit BAR handling code for bus centric view
Yu Zhao [Sun, 4 Jan 2009 08:09:08 +0000 (16:09 +0800)]
Remove 64-bit BAR handling code for bus centric view

Remove the redundant 64-bit BAR handling code, since it's already taken
care of by generic/proc/sysfs methods code.

Signed-off-by: Yu Zhao <yu.zhao@intel.com>
15 years agoFix inconsistent bus centric view between the sysfs and proc methods
Yu Zhao [Sun, 4 Jan 2009 08:03:45 +0000 (16:03 +0800)]
Fix inconsistent bus centric view between the sysfs and proc methods

The vendor and device IDs may be different when using sysfs and proc
methods with bus centric view enabled. The sysfs method reads the IDs
from the configuration space rather than uses the values from sysfs
entries. But the proc method always uses values from the proc files.
This fix makes the proc method use the values from the configuration
space too for bus centric view.

Signed-off-by: Yu Zhao <yu.zhao@intel.com>
15 years agoFixed configure to work with Cygwin on Windows Vista.
Martin Mares [Fri, 16 Jan 2009 19:06:41 +0000 (20:06 +0100)]
Fixed configure to work with Cygwin on Windows Vista.

Thanks to Jonathan Kotta.

15 years agoUpdated test cases from Yu Zhao.
Martin Mares [Tue, 30 Dec 2008 16:15:49 +0000 (17:15 +0100)]
Updated test cases from Yu Zhao.

15 years agoPCIUtils: fix SR-IOV capability error in lspci
Yu Zhao [Tue, 16 Dec 2008 08:03:35 +0000 (16:03 +0800)]
PCIUtils: fix SR-IOV capability error in lspci

Fix wrong 'VF Migration' info when displaying SR-IOV capability.

Signed-off-by: Yu Zhao <yu.zhao@intel.com>
15 years agoFix base address flags when using sysfs method
Yu Zhao [Fri, 26 Dec 2008 01:59:28 +0000 (09:59 +0800)]
Fix base address flags when using sysfs method

The base address flags are ignored when using sysfs method, while
the proc and generic methods combined the flags into 'base_addr'.
This inconsistency may fail some applications using libpci.

Signed-off-by: Yu Zhao <yu.zhao@intel.com>
15 years agoReleased -alpha4.
Martin Mares [Sat, 13 Dec 2008 12:17:45 +0000 (13:17 +0100)]
Released -alpha4.

15 years agoA fix of the previous cleanup.
Martin Mares [Sat, 13 Dec 2008 12:14:28 +0000 (13:14 +0100)]
A fix of the previous cleanup.

15 years agosysfs: Cleaned up caching of file descriptors.
Martin Mares [Sat, 13 Dec 2008 12:11:29 +0000 (13:11 +0100)]
sysfs: Cleaned up caching of file descriptors.

The previous code opened the VPD descriptor even if no VPD access
was requested and it forgot to close it afterwards.

15 years agoCleaned up detection of physical slots.
Martin Mares [Sat, 13 Dec 2008 12:00:50 +0000 (13:00 +0100)]
Cleaned up detection of physical slots.

Improved error handling. If the kernel does not support the slots directory at
all, we do not complain. Parse errors are now reported as warnings.

Also, the PCI_FILL_PHYS_SLOT is set for all devices whenever we try to detect
the slots, no matter how successful the detection was.

15 years agoSlots: use strcpy instead of sprintf.
Martin Mares [Sat, 13 Dec 2008 11:42:46 +0000 (12:42 +0100)]
Slots: use strcpy instead of sprintf.

15 years agoUpdated the ChangeLog.
Martin Mares [Sat, 13 Dec 2008 11:36:25 +0000 (12:36 +0100)]
Updated the ChangeLog.

15 years agoReleased as -alpha3. v3.1-alpha3
Martin Mares [Fri, 12 Dec 2008 23:17:56 +0000 (00:17 +0100)]
Released as -alpha3.

15 years agoMan: Mention that the sysfs backend supports physical slots.
Martin Mares [Fri, 12 Dec 2008 23:14:52 +0000 (00:14 +0100)]
Man: Mention that the sysfs backend supports physical slots.

15 years agoDisplay physical slot information in lspci -v
Alex Chiang [Wed, 3 Dec 2008 19:30:21 +0000 (12:30 -0700)]
Display physical slot information in lspci -v

We've been exposing slot information in /sys/bus/pci/slots for a
long time now (as long as a hotplug driver or slot detection
driver like pci_slot is loaded).

Let's make life better for our users and display that information
in lspci. If slot entries appear in /sys/bus/pci/slots/,
correlate them to PCI devices, and display the information when
lspci -v is issued.

If no slot entries appear in sysfs (due to no modules loaded), do
nothing.

Now you'll see sample output like the following:

23:01.1 Class 0c04: Device 10df:fd00 (rev 01)
Subsystem: Device 10df:fd00
Physical Slot: 3
Flags: bus master, 66MHz, medium devsel, latency 248, IRQ 60
...

Signed-off-by: Alex Chiang <achiang@hp.com>
15 years agolspci: fix "suprise" typo
Bjorn Helgaas [Mon, 8 Dec 2008 21:11:19 +0000 (14:11 -0700)]
lspci: fix "suprise" typo

This patch corrects the spelling of "surprise."

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
15 years agoFix ATS capability error in lspci
Yu Zhao [Tue, 1 Jan 2002 19:31:58 +0000 (03:31 +0800)]
Fix ATS capability error in lspci

Fix the wrong position of the ATS enable bit.

Signed-off-by: Yu Zhao <yu.zhao@intel.com>
15 years agoIgnore NUL character at the end of VPD strings.
Martin Mares [Sat, 22 Nov 2008 21:20:33 +0000 (22:20 +0100)]
Ignore NUL character at the end of VPD strings.

Broadcom Ethernet controllers have been observed to use NUL-terminated strings.

15 years agoAccompany VPD items with human-readable names.
Martin Mares [Sat, 22 Nov 2008 21:19:19 +0000 (22:19 +0100)]
Accompany VPD items with human-readable names.

15 years agoCopyright is held by Solarflare, not Ben personally
Martin Mares [Sat, 22 Nov 2008 19:40:00 +0000 (20:40 +0100)]
Copyright is held by Solarflare, not Ben personally

(Changed at Ben's request.)

15 years agoUpdated Matthew's address.
Martin Mares [Sat, 22 Nov 2008 19:22:38 +0000 (20:22 +0100)]
Updated Matthew's address.

15 years agoDecode VPD fully only with -vv or higher.
Martin Mares [Fri, 21 Nov 2008 21:43:49 +0000 (22:43 +0100)]
Decode VPD fully only with -vv or higher.

This brings the behavior in line with the other capabilities.

15 years agoReleased as -alpha2. v3.1-alpha2
Martin Mares [Fri, 21 Nov 2008 21:37:38 +0000 (22:37 +0100)]
Released as -alpha2.

15 years agoSplit lspci to multiple source files.
Martin Mares [Fri, 21 Nov 2008 21:35:59 +0000 (22:35 +0100)]
Split lspci to multiple source files.

15 years agoIn verbose mode, display contents of VPD if possible
Ben Hutchings [Tue, 18 Nov 2008 20:25:46 +0000 (20:25 +0000)]
In verbose mode, display contents of VPD if possible

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
15 years agoAdd implementation of read_vpd() method for sysfs
Ben Hutchings [Tue, 18 Nov 2008 20:25:29 +0000 (20:25 +0000)]
Add implementation of read_vpd() method for sysfs

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
15 years agoAdd PCI 2.2 VPD register definitions
Ben Hutchings [Tue, 18 Nov 2008 20:25:07 +0000 (20:25 +0000)]
Add PCI 2.2 VPD register definitions

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
15 years agoAdd pci_read_vpd() function and internal read_vpd() method
Ben Hutchings [Tue, 18 Nov 2008 20:24:19 +0000 (20:24 +0000)]
Add pci_read_vpd() function and internal read_vpd() method

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
15 years agoAdded a test case for the ATS capability.
Yu Zhao [Wed, 12 Nov 2008 09:15:11 +0000 (10:15 +0100)]
Added a test case for the ATS capability.

15 years agoReleased as 3.1.0-alpha1. v3.1-alpha1
Martin Mares [Tue, 11 Nov 2008 11:09:36 +0000 (12:09 +0100)]
Released as 3.1.0-alpha1.

15 years agoUpdated library ABI with proper versioning.
Martin Mares [Tue, 11 Nov 2008 11:09:20 +0000 (12:09 +0100)]
Updated library ABI with proper versioning.

15 years agosetpci: Document the new syntax.
Martin Mares [Tue, 11 Nov 2008 10:21:42 +0000 (11:21 +0100)]
setpci: Document the new syntax.

The table of known registers is gone. The man page refers to the --dumpregs
option instead.

15 years agosetpci: Fixed a silly bug in parsing of options.
Martin Mares [Tue, 11 Nov 2008 10:15:40 +0000 (11:15 +0100)]
setpci: Fixed a silly bug in parsing of options.

15 years agosetpci: Cleaned up reporting of parse errors.
Martin Mares [Tue, 11 Nov 2008 09:30:36 +0000 (10:30 +0100)]
setpci: Cleaned up reporting of parse errors.

The full usage is no longer printed with each parse error,
only a suggestion to call `setpci --help' for help.

15 years agosetpci: Decorate trace() with PCI_PRINTF.
Martin Mares [Tue, 11 Nov 2008 09:22:01 +0000 (10:22 +0100)]
setpci: Decorate trace() with PCI_PRINTF.

15 years agosetpci: Even better tracing messages.
Martin Mares [Tue, 11 Nov 2008 09:21:28 +0000 (10:21 +0100)]
setpci: Even better tracing messages.

15 years agosetpci: Do not request read-write access when in demo mode.
Martin Mares [Tue, 11 Nov 2008 09:13:32 +0000 (10:13 +0100)]
setpci: Do not request read-write access when in demo mode.

15 years agosetpci: Better tracing and reporting of runtime errors.
Martin Mares [Tue, 11 Nov 2008 09:12:37 +0000 (10:12 +0100)]
setpci: Better tracing and reporting of runtime errors.

15 years agoUse PCI_CAP_xxx internally in setpci.
Martin Mares [Tue, 11 Nov 2008 08:53:11 +0000 (09:53 +0100)]
Use PCI_CAP_xxx internally in setpci.

15 years agoRenumbered PCI_CAP_xxx to start with 1.
Martin Mares [Tue, 11 Nov 2008 08:52:43 +0000 (09:52 +0100)]
Renumbered PCI_CAP_xxx to start with 1.

15 years agoImplemented `setpci --dumpregs'.
Martin Mares [Tue, 11 Nov 2008 00:14:35 +0000 (01:14 +0100)]
Implemented `setpci --dumpregs'.

15 years agoExit correctly after `setpci --version'.
Martin Mares [Tue, 11 Nov 2008 00:09:49 +0000 (01:09 +0100)]
Exit correctly after `setpci --version'.

15 years agoLet setpci support capabilities.
Martin Mares [Mon, 10 Nov 2008 23:11:14 +0000 (00:11 +0100)]
Let setpci support capabilities.

Changed syntax of register addresses. They now consist of a base and an offset,
where the base is either a fixed address or a name/ID of a capability.

Needs lots of polish (see TODO).

15 years agoMoved the new field at the end of struct pci_dev to keep the ABI.
Martin Mares [Mon, 10 Nov 2008 23:08:49 +0000 (00:08 +0100)]
Moved the new field at the end of struct pci_dev to keep the ABI.

15 years agoAdded library functions for accessing PCI capabilities.
Martin Mares [Mon, 10 Nov 2008 23:03:01 +0000 (00:03 +0100)]
Added library functions for accessing PCI capabilities.

15 years agoAdded xstrdup() to the common utility functions.
Martin Mares [Mon, 10 Nov 2008 23:01:55 +0000 (00:01 +0100)]
Added xstrdup() to the common utility functions.

15 years agoMore splitting of the argument parser.
Martin Mares [Mon, 10 Nov 2008 17:34:34 +0000 (18:34 +0100)]
More splitting of the argument parser.

15 years agoCoding style cleanup: `for(...)' wants a space.
Martin Mares [Mon, 10 Nov 2008 17:22:04 +0000 (18:22 +0100)]
Coding style cleanup: `for(...)' wants a space.

15 years agoSplit parsing of options in setpci to multiple functions.
Martin Mares [Mon, 10 Nov 2008 17:20:17 +0000 (18:20 +0100)]
Split parsing of options in setpci to multiple functions.

15 years agoAdded dumping of the Address Translation Services capability.
Yu Zhao [Mon, 10 Nov 2008 11:24:55 +0000 (12:24 +0100)]
Added dumping of the Address Translation Services capability.

15 years agoLet the maintainer script use plain Git instead of Cogito.
Martin Mares [Sun, 9 Nov 2008 20:31:35 +0000 (21:31 +0100)]
Let the maintainer script use plain Git instead of Cogito.

15 years agoReleased as 3.0.3. v3.0.3
Martin Mares [Sun, 9 Nov 2008 20:28:42 +0000 (21:28 +0100)]
Released as 3.0.3.

15 years agoUpdated pci.ids to the current snapshot.
Martin Mares [Sun, 9 Nov 2008 20:19:47 +0000 (21:19 +0100)]
Updated pci.ids to the current snapshot.

15 years agoLet `lspci -k' display subsystem names.
Martin Mares [Sun, 9 Nov 2008 20:16:14 +0000 (21:16 +0100)]
Let `lspci -k' display subsystem names.

Several users have requested a `quick overview' mode that would display
everything needed to identify a device and its drivers. I believe that it
is better to extend the `-k' mode to include subsystems than to introduce
yet another mode.

15 years agoFixed building on Cygwin.
Martin Mares [Sun, 9 Nov 2008 19:50:58 +0000 (20:50 +0100)]
Fixed building on Cygwin.

It got broken by the introduction of WITH_LIBS.

Thanks to Steve Elliott for reporting that.