summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/pci.c
diff options
context:
space:
mode:
authorstas <stas@FreeBSD.org>2009-04-03 10:15:00 +0000
committerstas <stas@FreeBSD.org>2009-04-03 10:15:00 +0000
commitfe4ba0b7543c128972c10ca179fc9f1b58baf5d0 (patch)
tree782ce38e4d4c844a98627641a6be6e612f07e6a6 /sys/dev/pci/pci.c
parent16a8b4ee94b7a9e57e8fc37ad9dd8581bc555caf (diff)
downloadFreeBSD-src-fe4ba0b7543c128972c10ca179fc9f1b58baf5d0.zip
FreeBSD-src-fe4ba0b7543c128972c10ca179fc9f1b58baf5d0.tar.gz
- Correct the comment.
MFC after: 3 days
Diffstat (limited to 'sys/dev/pci/pci.c')
-rw-r--r--sys/dev/pci/pci.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index d90cd6a..85b49da 100644
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -1030,9 +1030,10 @@ pci_get_vpd_readonly_method(device_t dev, device_t child, const char *kw,
}
/*
- * Return the offset in configuration space of the requested extended
- * capability entry or 0 if the specified capability was not found.
- */
+ * Find the requested extended capability and return the offset in
+ * configuration space via the pointer provided. The function returns
+ * 0 on success and error code otherwise.
+*/
int
pci_find_extcap_method(device_t dev, device_t child, int capability,
int *capreg)
OpenPOWER on IntegriCloud