summaryrefslogtreecommitdiff
path: root/src/common_device_name.c
diff options
context:
space:
mode:
authorIan Romanick <idr@localhost.localdomain>2006-07-30 15:35:41 -0700
committerIan Romanick <idr@localhost.localdomain>2006-07-30 15:35:41 -0700
commit27f0ffca71277371a0b6c0cd1a720a9ce9519da5 (patch)
tree23ad2e8150d7c4513deb152cc3170b5d92748e96 /src/common_device_name.c
parentc0e31708e0446b33240d3e1ba3e36c26a618544c (diff)
Added some function preamble comments.
Diffstat (limited to 'src/common_device_name.c')
-rw-r--r--src/common_device_name.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/common_device_name.c b/src/common_device_name.c
index df2212e..96ee0ee 100644
--- a/src/common_device_name.c
+++ b/src/common_device_name.c
@@ -270,6 +270,13 @@ populate_vendor( struct pci_id_leaf * vend, int fill_device_data )
}
+/**
+ * Find the name of the specified device.
+ *
+ * Finds the actual product name of the specified device. If a subvendor ID
+ * and subdevice ID are specified in \c m, the returned name will be the name
+ * of the subdevice.
+ */
static const char *
find_device_name( const struct pci_id_match * m )
{
@@ -307,6 +314,13 @@ find_device_name( const struct pci_id_match * m )
}
+/**
+ * Find the vendor name of the specified device.
+ *
+ * Finds the actual vendor name of the specified device. If a subvendor ID
+ * and subdevice ID are specified in \c m, the returned name will be the name
+ * associated with the subvendor.
+ */
static const char *
find_vendor_name( const struct pci_id_match * m )
{
@@ -343,8 +357,8 @@ pci_get_strings( const struct pci_id_match * m,
const char ** subvendor_name )
{
struct pci_id_match temp;
-
-
+
+
temp = *m;
temp.subvendor_id = PCI_MATCH_ANY;
temp.subdevice_id = PCI_MATCH_ANY;