diff options
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r-- | include/linux/pci.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index 198d062640b7..e30ceea7345b 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -1395,5 +1395,17 @@ static inline u8 pci_vpd_srdt_size(const u8 *srdt) | |||
1395 | return (*srdt) & PCI_VPD_SRDT_LEN_MASK; | 1395 | return (*srdt) & PCI_VPD_SRDT_LEN_MASK; |
1396 | } | 1396 | } |
1397 | 1397 | ||
1398 | /** | ||
1399 | * pci_vpd_find_tag - Locates the Resource Data Type tag provided | ||
1400 | * @buf: Pointer to buffered vpd data | ||
1401 | * @off: The offset into the buffer at which to begin the search | ||
1402 | * @len: The length of the vpd buffer | ||
1403 | * @rdt: The Resource Data Type to search for | ||
1404 | * | ||
1405 | * Returns the index where the Resource Data Type was found or | ||
1406 | * -ENOENT otherwise. | ||
1407 | */ | ||
1408 | int pci_vpd_find_tag(const u8 *buf, unsigned int off, unsigned int len, u8 rdt); | ||
1409 | |||
1398 | #endif /* __KERNEL__ */ | 1410 | #endif /* __KERNEL__ */ |
1399 | #endif /* LINUX_PCI_H */ | 1411 | #endif /* LINUX_PCI_H */ |