summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMark Kettenis <mark.kettenis@xs4all.nl>2008-03-12 21:29:58 +0100
committerMatthieu Herrb <matthieu@reactor.herrb.net>2008-03-12 21:29:58 +0100
commitd898072e28ac35f5b3569f48f2e90a9ef8eee2ca (patch)
treef4c193a27127a7485e5fed232b5829ea95eedb3a /include
parent4224ff23794500e1455f28fd5689bd0549b72367 (diff)
OpenBSD support for libpciaccess.
xserver and libpciaccess both need to open /dev/xf86, which can only be opened once. I implemented pci_system_init_dev_mem() like Ian suggested. This requires some minor changes to the BSD-specific os-support code. Since pci_system_init_dev_mem() is a no-op on FreeBSD this should be no problem.
Diffstat (limited to 'include')
-rw-r--r--include/pciaccess.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/pciaccess.h b/include/pciaccess.h
index dcc0122..3138877 100644
--- a/include/pciaccess.h
+++ b/include/pciaccess.h
@@ -81,6 +81,8 @@ int pci_device_get_bridge_buses(struct pci_device *dev, int *primary_bus,
int pci_system_init(void);
+void pci_system_init_dev_mem(int fd);
+
void pci_system_cleanup(void);
struct pci_device_iterator *pci_slot_match_iterator_create(