diff options
author | Moritz Fischer <moritzf@google.com> | 2021-03-08 12:02:33 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-08-11 21:49:26 +0000 |
commit | 361356b08003f5e3c606e16eeb6a17fe02ff2726 (patch) | |
tree | d76b2ed596f90a146169dd45fc162b0cd634ea99 /include/pciaccess.h | |
parent | a8abf913ad6b60492ef7b6ae512c4f879604a6a7 (diff) | |
download | xorg-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.h | 1 |
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); |