Back to index

lshw  02.16
Public Member Functions | Public Attributes
pci_entry Struct Reference
Collaboration diagram for pci_entry:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 pci_entry (const string &description, long u1=-1, long u2=-1, long u3=-1, long u4=-1)
unsigned int matches (long u1=-1, long u2=-1, long u3=-1, long u4=-1)

Public Attributes

long ids [4]
string description

Detailed Description

Definition at line 231 of file pci.cc.


Constructor & Destructor Documentation

pci_entry::pci_entry ( const string &  description,
long  u1 = -1,
long  u2 = -1,
long  u3 = -1,
long  u4 = -1 
)

Definition at line 251 of file pci.cc.

{
  description = d;
  ids[0] = u1;
  ids[1] = u2;
  ids[2] = u3;
  ids[3] = u4;
}

Member Function Documentation

unsigned int pci_entry::matches ( long  u1 = -1,
long  u2 = -1,
long  u3 = -1,
long  u4 = -1 
)

Definition at line 265 of file pci.cc.

{
  unsigned int result = 0;

  if (ids[0] == u1)
  {
    result++;
    if (ids[1] == u2)
    {
      result++;
      if (ids[2] == u3)
      {
        result++;
        if (ids[3] == u4)
          result++;
      }
    }
  }

  return result;
}

Member Data Documentation

Definition at line 234 of file pci.cc.

long pci_entry::ids[4]

Definition at line 233 of file pci.cc.


The documentation for this struct was generated from the following file: