1
0

patch-src_openbsd_pci_c 759 B

1234567891011121314151617181920212223242526
  1. --- libpciaccess-0.13.2.orig/src/openbsd_pci.c 2013-07-21 00:54:34.000000000 +0200
  2. +++ libpciaccess-0.13.2/src/openbsd_pci.c 2014-03-24 13:26:10.484152334 +0100
  3. @@ -412,6 +412,7 @@ pci_device_openbsd_open_legacy_io(struct
  4. ret->base = base;
  5. ret->size = size;
  6. + ret->is_legacy = 1;
  7. return ret;
  8. #elif defined(__amd64__)
  9. struct amd64_iopl_args ia;
  10. @@ -422,6 +423,7 @@ pci_device_openbsd_open_legacy_io(struct
  11. ret->base = base;
  12. ret->size = size;
  13. + ret->is_legacy = 1;
  14. return ret;
  15. #elif defined(PCI_MAGIC_IO_RANGE)
  16. ret->memory = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED,
  17. @@ -431,6 +433,7 @@ pci_device_openbsd_open_legacy_io(struct
  18. ret->base = base;
  19. ret->size = size;
  20. + ret->is_legacy = 1;
  21. return ret;
  22. #else
  23. return NULL;