Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
vpd.c File Reference
#include <linux/pci.h>
#include <linux/export.h>

Go to the source code of this file.

Functions

int pci_vpd_find_tag (const u8 *buf, unsigned int off, unsigned int len, u8 rdt)
 
 EXPORT_SYMBOL_GPL (pci_vpd_find_tag)
 
int pci_vpd_find_info_keyword (const u8 *buf, unsigned int off, unsigned int len, const char *kw)
 
 EXPORT_SYMBOL_GPL (pci_vpd_find_info_keyword)
 

Function Documentation

EXPORT_SYMBOL_GPL ( pci_vpd_find_tag  )
EXPORT_SYMBOL_GPL ( pci_vpd_find_info_keyword  )
int pci_vpd_find_info_keyword ( const u8 buf,
unsigned int  off,
unsigned int  len,
const char kw 
)

pci_vpd_find_info_keyword - Locates an information field keyword in the VPD : Pointer to buffered vpd data : The offset into the buffer at which to begin the search : The length of the buffer area, relative to off, in which to search : The keyword to search for

Returns the index where the information field keyword was found or -ENOENT otherwise.

Definition at line 46 of file vpd.c.

int pci_vpd_find_tag ( const u8 buf,
unsigned int  off,
unsigned int  len,
u8  rdt 
)

pci_vpd_find_tag - Locates the Resource Data Type tag provided : Pointer to buffered vpd data : The offset into the buffer at which to begin the search : The length of the vpd buffer : The Resource Data Type to search for

Returns the index where the Resource Data Type was found or -ENOENT otherwise.

Definition at line 11 of file vpd.c.