summaryrefslogtreecommitdiff
path: root/src/openbsd_pci.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@herrb.eu>2014-03-15 22:05:56 +0100
committerMatthieu Herrb <matthieu@herrb.eu>2014-03-15 22:05:56 +0100
commit8b923797ed5b250c993822bec08aa01dd37d875d (patch)
treecab85539f1d3bf22d1f3a2dda0911a9009ecf0f2 /src/openbsd_pci.c
parent851eb6766ac3f477554ae214191d097972b30bda (diff)
parentb9c068896914b4132a24839c9ef7f9fcd6282d88 (diff)
Merge remote-tracking branch 'origin/master' into obsd
Diffstat (limited to 'src/openbsd_pci.c')
-rw-r--r--src/openbsd_pci.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/openbsd_pci.c b/src/openbsd_pci.c
index 37f5cea..5b24a22 100644
--- a/src/openbsd_pci.c
+++ b/src/openbsd_pci.c
@@ -413,6 +413,7 @@ pci_device_openbsd_open_legacy_io(struct pci_io_handle *ret,
ret->base = base;
ret->size = size;
+ ret->is_legacy = 1;
return ret;
#elif defined(__amd64__)
struct amd64_iopl_args ia;
@@ -423,6 +424,7 @@ pci_device_openbsd_open_legacy_io(struct pci_io_handle *ret,
ret->base = base;
ret->size = size;
+ ret->is_legacy = 1;
return ret;
#elif defined(PCI_MAGIC_IO_RANGE)
ret->memory = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED,
@@ -432,6 +434,7 @@ pci_device_openbsd_open_legacy_io(struct pci_io_handle *ret,
ret->base = base;
ret->size = size;
+ ret->is_legacy = 1;
return ret;
#else
return NULL;