summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorImre Vadász <imrevdsz@gmail.com>2017-07-14 23:12:15 +0200
committerMartin Mares <mj@ucw.cz>2017-11-17 13:56:11 +0100
commitf4dbe10668fb96148b22dcb6ed533d385edaf7d7 (patch)
tree4524f9eab900f20dcccae21d4270e3408ddfa063
parentdf2e141fce690de57cae13562456269cf42926ba (diff)
downloadpciutils-f4dbe10668fb96148b22dcb6ed533d385edaf7d7.tar.gz
fbsd-device: Fix fbsd-device backend on DragonFly BSD.
DragonFly also supports PCI domains same as FreeBSD. Signed-off-by: Imre Vadász <imrevdsz@gmail.com>
-rw-r--r--lib/fbsd-device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/fbsd-device.c b/lib/fbsd-device.c
index ab04954..398fe68 100644
--- a/lib/fbsd-device.c
+++ b/lib/fbsd-device.c
@@ -77,7 +77,7 @@ fbsd_read(struct pci_dev *d, int pos, byte *buf, int len)
if (pos >= 256)
return 0;
-#if __FreeBSD_version >= 700053
+#if __FreeBSD_version >= 700053 || defined(__DragonFly__)
pi.pi_sel.pc_domain = d->domain;
#endif
pi.pi_sel.pc_bus = d->bus;
@@ -120,7 +120,7 @@ fbsd_write(struct pci_dev *d, int pos, byte *buf, int len)
if (pos >= 256)
return 0;
-#if __FreeBSD_version >= 700053
+#if __FreeBSD_version >= 700053 || defined(__DragonFly__)
pi.pi_sel.pc_domain = d->domain;
#endif
pi.pi_sel.pc_bus = d->bus;