diff options
author | Mark Kettenis <mark.kettenis@xs4all.nl> | 2008-03-12 21:45:37 +0100 |
---|---|---|
committer | Matthieu Herrb <matthieu@reactor.herrb.net> | 2008-03-12 21:45:37 +0100 |
commit | 06c0372c3a1b45005eb6d50406f77f4e93f1de1e (patch) | |
tree | c4c069e4c73cfa6bbfa3e9f06b3d0430b15d63ca /hw/xfree86/os-support/bsd/i386_video.c | |
parent | 2036851125226065891f13583ade3ce559e7bd37 (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 'hw/xfree86/os-support/bsd/i386_video.c')
-rw-r--r-- | hw/xfree86/os-support/bsd/i386_video.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/xfree86/os-support/bsd/i386_video.c b/hw/xfree86/os-support/bsd/i386_video.c index 0dcff6631..7e4a4d2a3 100644 --- a/hw/xfree86/os-support/bsd/i386_video.c +++ b/hw/xfree86/os-support/bsd/i386_video.c @@ -212,6 +212,9 @@ xf86OSInitVidMem(VidMemInfoPtr pVidMem) pVidMem->mapMem = mapVidMem; pVidMem->unmapMem = unmapVidMem; + if (useDevMem) + pci_system_init_dev_mem(devMemFd); + #ifdef HAS_MTRR_SUPPORT if (useDevMem) { if (cleanMTRR()) { |