summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@openbsd.org>2014-09-29 22:34:25 +0200
committerMark Kettenis <kettenis@openbsd.org>2014-09-29 22:43:30 +0200
commit9b1bf11c81881c9cc6e6145011cf229978f109f4 (patch)
treefaf8bcf954449109bf81d11d66903ff6ea29b3e2 /configure.ac
parentb7e42643d2ee6521cf23e6dfe49a8369ba4bf9bb (diff)
Use PCIOCREADMASK on OpenBSD.
If the machdep.allowaperture sysctl(8) variable is set to 0, writing to PCI config space is not allowed. So instead of writing 0xffffffff to the BARs in order to determine their size, use the PCIOCREADMASK ioctl(2) which returns the mask of changeable bits that was saved by the kernel when the devices was initially probed. Reviewed-by: Matthieu Herrb <matthieu@herbb.eu> Signed-off-by: Mark Kettenis <kettenis@openbsd.org>
Diffstat (limited to 'configure.ac')
0 files changed, 0 insertions, 0 deletions