summaryrefslogtreecommitdiff
path: root/include/pciaccess.h
diff options
context:
space:
mode:
authorMoritz Fischer <moritzf@google.com>2021-03-08 12:02:33 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-08-11 21:49:26 +0000
commit361356b08003f5e3c606e16eeb6a17fe02ff2726 (patch)
treed76b2ed596f90a146169dd45fc162b0cd634ea99 /include/pciaccess.h
parenta8abf913ad6b60492ef7b6ae512c4f879604a6a7 (diff)
downloadxorg-lib-libpciaccess-361356b08003f5e3c606e16eeb6a17fe02ff2726.tar.gz
Add pci_device_disable() function
This implements a pci_device_disable() function, currently only for the linux_sysfs() backend. This mirrors the implementation for pci_device_enable() Signed-off-by: Moritz Fischer <moritzf@google.com>
Diffstat (limited to 'include/pciaccess.h')
-rw-r--r--include/pciaccess.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/pciaccess.h b/include/pciaccess.h
index 3865fe1..829e04c 100644
--- a/include/pciaccess.h
+++ b/include/pciaccess.h
@@ -143,6 +143,7 @@ const char *pci_device_get_vendor_name(const struct pci_device *dev);
const char *pci_device_get_subvendor_name(const struct pci_device *dev);
void pci_device_enable(struct pci_device *dev);
+void pci_device_disable(struct pci_device *dev);
int pci_device_cfg_read (struct pci_device *dev, void *data,
pciaddr_t offset, pciaddr_t size, pciaddr_t *bytes_read);