diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2008-12-18 12:17:16 -0500 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-01-07 14:13:17 -0500 |
commit | 287d19ce2e67c15e79a187b3bdcbbea1a0a51a7d (patch) | |
tree | 128d9c67557a4fe5e5e910b8ca2d50aedee31b7c /include/linux/pci.h | |
parent | 1120f8b8169fb2cb51219d326892d963e762edb6 (diff) |
PCI: revise VPD access interface
Change PCI VPD API which was only used by sysfs to something usable
in drivers.
* move iteration over multiple words to the low level
* use conventional types for arguments
* add exportable wrapper
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r-- | include/linux/pci.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index 170f9ae2d8a0..76079e106895 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -687,6 +687,10 @@ int pci_back_from_sleep(struct pci_dev *dev); | |||
687 | /* Functions for PCI Hotplug drivers to use */ | 687 | /* Functions for PCI Hotplug drivers to use */ |
688 | int pci_bus_find_capability(struct pci_bus *bus, unsigned int devfn, int cap); | 688 | int pci_bus_find_capability(struct pci_bus *bus, unsigned int devfn, int cap); |
689 | 689 | ||
690 | /* Vital product data routines */ | ||
691 | ssize_t pci_read_vpd(struct pci_dev *dev, loff_t pos, size_t count, void *buf); | ||
692 | ssize_t pci_write_vpd(struct pci_dev *dev, loff_t pos, size_t count, const void *buf); | ||
693 | |||
690 | /* Helper functions for low-level code (drivers/pci/setup-[bus,res].c) */ | 694 | /* Helper functions for low-level code (drivers/pci/setup-[bus,res].c) */ |
691 | void pci_bus_assign_resources(struct pci_bus *bus); | 695 | void pci_bus_assign_resources(struct pci_bus *bus); |
692 | void pci_bus_size_bridges(struct pci_bus *bus); | 696 | void pci_bus_size_bridges(struct pci_bus *bus); |