aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pci.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r--include/linux/pci.h8
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 */
781int pci_user_read_config_byte(struct pci_dev *dev, int where, u8 *val);
782int pci_user_read_config_word(struct pci_dev *dev, int where, u16 *val);
783int pci_user_read_config_dword(struct pci_dev *dev, int where, u32 *val);
784int pci_user_write_config_byte(struct pci_dev *dev, int where, u8 val);
785int pci_user_write_config_word(struct pci_dev *dev, int where, u16 val);
786int pci_user_write_config_dword(struct pci_dev *dev, int where, u32 val);
787
780int __must_check pci_enable_device(struct pci_dev *dev); 788int __must_check pci_enable_device(struct pci_dev *dev);
781int __must_check pci_enable_device_io(struct pci_dev *dev); 789int __must_check pci_enable_device_io(struct pci_dev *dev);
782int __must_check pci_enable_device_mem(struct pci_dev *dev); 790int __must_check pci_enable_device_mem(struct pci_dev *dev);