summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2018-01-30 08:54:11 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2018-01-30 08:54:11 +0000
commit88cb7e18e17311473754a7be2d219611ed5a1495 (patch)
treea44a581e8d083712df0f03b99501a82b7d847ad8
parentdb68b09412c096eef4bd514147d17c51118bc005 (diff)
add stubs for pci_clear_master()/pci_save_state()/pci_restore_state()/
pci_set_power_state()
-rw-r--r--sys/dev/pci/drm/drm_linux.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/drm_linux.h b/sys/dev/pci/drm/drm_linux.h
index ecbf54a97cd..ffbea9b5711 100644
--- a/sys/dev/pci/drm/drm_linux.h
+++ b/sys/dev/pci/drm/drm_linux.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: drm_linux.h,v 1.77 2018/01/30 08:50:59 jsg Exp $ */
+/* $OpenBSD: drm_linux.h,v 1.78 2018/01/30 08:54:10 jsg Exp $ */
/*
* Copyright (c) 2013, 2014, 2015 Mark Kettenis
* Copyright (c) 2017 Martin Pieuchot
@@ -1555,6 +1555,10 @@ pci_bus_read_config_byte(struct pci_bus *bus, unsigned int devfn,
}
#define pci_set_master(x)
+#define pci_clear_master(x)
+
+#define pci_save_state(x)
+#define pci_restore_state(x)
#define pci_enable_msi(x)
#define pci_disable_msi(x)
@@ -1570,6 +1574,7 @@ typedef enum {
#define pci_save_state(x)
#define pci_enable_device(x) 0
#define pci_disable_device(x)
+#define pci_set_power_state(d, s)
static inline int
vga_client_register(struct pci_dev *a, void *b, void *c, void *d)