summaryrefslogtreecommitdiff
path: root/src/libbiosdevname.h
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2012-03-16 15:41:29 -0700
committerStephen Hemminger <shemminger@vyatta.com>2012-03-16 15:41:29 -0700
commit3dcf4140386b3e63955790d87093521f021bedee (patch)
tree1d1eeb5723da2b0a9c6cc1e848824010c16fc6bb /src/libbiosdevname.h
parent868f348533d99b05782cd8bfedb18b9f91b393bc (diff)
downloadvyatta-biosdevname-3dcf4140386b3e63955790d87093521f021bedee.tar.gz
vyatta-biosdevname-3dcf4140386b3e63955790d87093521f021bedee.zip
Add option to search for device based on pci-id
To support case where device is not in kernel (userspace networking) need a method for finding device by pci-id. Biosdevname was already building the table, this just adds an alternative lookup algorithm.
Diffstat (limited to 'src/libbiosdevname.h')
-rw-r--r--src/libbiosdevname.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libbiosdevname.h b/src/libbiosdevname.h
index 37eccb1..505b234 100644
--- a/src/libbiosdevname.h
+++ b/src/libbiosdevname.h
@@ -14,6 +14,7 @@ enum namingpolicy {
extern void * setup_bios_devices(int namingpolicy, const char *prefix);
extern void cleanup_bios_devices(void *cookie);
extern char * kern_to_bios(void *cookie, const char *devname);
+extern char * pci_to_bios(void *cookie, const char *spec);
extern void unparse_bios_devices(void *cookie);
extern void unparse_bios_device_by_name(void *cookie, const char *name);