diff options
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r-- | include/linux/pci.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index dd7af0f37b3a..9d04599c6bd9 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -777,6 +777,14 @@ static inline int pci_write_config_dword(const struct pci_dev *dev, int where, | |||
777 | return pci_bus_write_config_dword(dev->bus, dev->devfn, where, val); | 777 | return pci_bus_write_config_dword(dev->bus, dev->devfn, where, val); |
778 | } | 778 | } |
779 | 779 | ||
780 | /* user-space driven config access */ | ||
781 | int pci_user_read_config_byte(struct pci_dev *dev, int where, u8 *val); | ||
782 | int pci_user_read_config_word(struct pci_dev *dev, int where, u16 *val); | ||
783 | int pci_user_read_config_dword(struct pci_dev *dev, int where, u32 *val); | ||
784 | int pci_user_write_config_byte(struct pci_dev *dev, int where, u8 val); | ||
785 | int pci_user_write_config_word(struct pci_dev *dev, int where, u16 val); | ||
786 | int pci_user_write_config_dword(struct pci_dev *dev, int where, u32 val); | ||
787 | |||
780 | int __must_check pci_enable_device(struct pci_dev *dev); | 788 | int __must_check pci_enable_device(struct pci_dev *dev); |
781 | int __must_check pci_enable_device_io(struct pci_dev *dev); | 789 | int __must_check pci_enable_device_io(struct pci_dev *dev); |
782 | int __must_check pci_enable_device_mem(struct pci_dev *dev); | 790 | int __must_check pci_enable_device_mem(struct pci_dev *dev); |