Re: [PATCH v2] pci: export class IDs from pci_ids.h

2015-04-07 Thread Martin Mares
Hello! > That's a good idea. Martin, could you please answer the following: > assuming that linux exported linux/pci_ids.h providing class > IDs that are currently in /usr/include/pci/header.h > in a header /usr/include/linux/pci_ids.h, > would libpci be open to replacing part of > /usr/include/pc

Re: [PATCH v2] pci: export class IDs from pci_ids.h

2015-04-05 Thread Michael S. Tsirkin
On Thu, Apr 02, 2015 at 05:32:14PM -0500, Bjorn Helgaas wrote: > [+cc Martin] That's a good idea. Martin, could you please answer the following: assuming that linux exported linux/pci_ids.h providing class IDs that are currently in /usr/include/pci/header.h in a header /usr/include/linux/pci_ids.h

Re: [PATCH v2] pci: export class IDs from pci_ids.h

2015-04-05 Thread Michael S. Tsirkin
On Thu, Apr 02, 2015 at 11:59:21PM +0200, Greg KH wrote: > On Thu, Apr 02, 2015 at 11:28:19PM +0200, Michael S. Tsirkin wrote: > > On Thu, Apr 02, 2015 at 03:53:47PM -0500, Bjorn Helgaas wrote: > > > On Mon, Mar 30, 2015 at 01:33:28PM +0200, Michael S. Tsirkin wrote: > > > > The basic class ID macr

Re: [PATCH v2] pci: export class IDs from pci_ids.h

2015-04-02 Thread Bjorn Helgaas
[+cc Martin] On Thu, Apr 2, 2015 at 4:28 PM, Michael S. Tsirkin wrote: > On Thu, Apr 02, 2015 at 03:53:47PM -0500, Bjorn Helgaas wrote: >> On Mon, Mar 30, 2015 at 01:33:28PM +0200, Michael S. Tsirkin wrote: >> > The basic class ID macros in pci_ids.h are pretty useful for userspace >> > using the

Re: [PATCH v2] pci: export class IDs from pci_ids.h

2015-04-02 Thread Greg KH
On Thu, Apr 02, 2015 at 11:28:19PM +0200, Michael S. Tsirkin wrote: > On Thu, Apr 02, 2015 at 03:53:47PM -0500, Bjorn Helgaas wrote: > > On Mon, Mar 30, 2015 at 01:33:28PM +0200, Michael S. Tsirkin wrote: > > > The basic class ID macros in pci_ids.h are pretty useful for userspace > > > using the p

Re: [PATCH v2] pci: export class IDs from pci_ids.h

2015-04-02 Thread Michael S. Tsirkin
On Thu, Apr 02, 2015 at 03:53:47PM -0500, Bjorn Helgaas wrote: > On Mon, Mar 30, 2015 at 01:33:28PM +0200, Michael S. Tsirkin wrote: > > The basic class ID macros in pci_ids.h are pretty useful for userspace > > using the pci sysfs interface, and they aren't fundamentally different > > from the con

Re: [PATCH v2] pci: export class IDs from pci_ids.h

2015-04-02 Thread Bjorn Helgaas
On Mon, Mar 30, 2015 at 01:33:28PM +0200, Michael S. Tsirkin wrote: > The basic class ID macros in pci_ids.h are pretty useful for userspace > using the pci sysfs interface, and they aren't fundamentally different > from the constants in pci_regs.h - both are defined in the > pci spec. > > At the

[PATCH v2] pci: export class IDs from pci_ids.h

2015-03-30 Thread Michael S. Tsirkin
The basic class ID macros in pci_ids.h are pretty useful for userspace using the pci sysfs interface, and they aren't fundamentally different from the constants in pci_regs.h - both are defined in the pci spec. At the moment userspace is forced to duplicate these macros (e.g. QEMU does this, so do