summaryrefslogtreecommitdiff
path: root/src/pciaccess_private.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 /src/pciaccess_private.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 'src/pciaccess_private.h')
-rw-r--r--src/pciaccess_private.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pciaccess_private.h b/src/pciaccess_private.h
index d3b68d4..be5d15d 100644
--- a/src/pciaccess_private.h
+++ b/src/pciaccess_private.h
@@ -76,6 +76,7 @@ struct pci_system_methods {
int (*fill_capabilities)( struct pci_device * dev );
void (*enable)( struct pci_device *dev );
+ void (*disable)( struct pci_device *dev );
int (*boot_vga)( struct pci_device *dev );
int (*has_kernel_driver)( struct pci_device *dev );
struct pci_io_handle *(*open_device_io)( struct pci_io_handle *handle,