diff options
author | Mark Kettenis <kettenis@openbsd.org> | 2014-09-29 22:34:25 +0200 |
---|---|---|
committer | Mark Kettenis <kettenis@openbsd.org> | 2014-09-29 22:43:30 +0200 |
commit | 9b1bf11c81881c9cc6e6145011cf229978f109f4 (patch) | |
tree | faf8bcf954449109bf81d11d66903ff6ea29b3e2 /configure.ac | |
parent | b7e42643d2ee6521cf23e6dfe49a8369ba4bf9bb (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